Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
16 | 1 | public function setupTravisIdentityToGit() |
|
17 | { |
||
18 | 1 | if (getenv('TRAVIS')) { |
|
19 | 1 | $this->runScript('git config --global user.email "[email protected]"'); |
|
20 | 1 | $this->runScript('git config --global user.name "Travis"'); |
|
21 | } |
||
22 | 1 | } |
|
23 | |||
59 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: