Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
16 | public function setupTravisIdentityToGit() |
||
17 | { |
||
18 | if (getenv('TRAVIS')) { |
||
19 | $this->runScript('git config --global user.email "[email protected]"'); |
||
20 | $this->runScript('git config --global user.name "Travis"'); |
||
21 | } |
||
22 | } |
||
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: