| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 14 | public function __construct( |
|
| 27 | ExcludedSniffDataCollector $excludedSniffDataCollector, |
||
| 28 | SniffPropertyValueDataCollector $customSniffPropertyDataCollector |
||
| 29 | ) { |
||
| 30 | 14 | $this->excludedSniffDataCollector = $excludedSniffDataCollector; |
|
| 31 | 14 | $this->sniffPropertyValueDataCollector = $customSniffPropertyDataCollector; |
|
| 32 | 14 | } |
|
| 33 | |||
| 59 |
This check marks implicit conversions of arrays to boolean values in a comparison. While in PHP an empty array is considered to be equal (but not identical) to false, this is not always apparent.
Consider making the comparison explicit by using
empty(..)or! empty(...)instead.