Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 8 |
Ratio | 100 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
31 | View Code Duplication | public function testEmptyNonVariable($line) |
|
32 | { |
||
33 | $file = $this->sniffFile(self::TEST_FILE, '5.4'); |
||
34 | $this->assertError($file, $line, 'Only variables can be passed to empty() prior to PHP 5.5.'); |
||
35 | |||
36 | $file = $this->sniffFile(self::TEST_FILE, '5.5'); |
||
37 | $this->assertNoViolation($file, $line); |
||
38 | } |
||
39 | |||
137 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.