Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 9 |
Ratio | 100 % |
Tests | 4 |
CRAP Score | 2.032 |
Changes | 0 |
1 | <?php |
||
69 | 1 | View Code Duplication | private function getInterfaceName() |
70 | { |
||
71 | 1 | $namePosition = $this->file->findNext(T_STRING, $this->position); |
|
72 | 1 | if ( ! $namePosition) { |
|
|
|||
73 | return FALSE; |
||
74 | } |
||
75 | |||
76 | 1 | return $this->file->getTokens()[$namePosition]['content']; |
|
77 | } |
||
78 | |||
80 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
integer
values, zero is a special case, in particular the following results might be unexpected: