Total Complexity | 16 |
Total Lines | 63 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class BreakFilter |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * Removes ignored BC breaks. |
||
19 | * |
||
20 | * @param array $bc_breaks BC breaks. |
||
21 | * @param array $rules Rules. |
||
22 | * |
||
23 | * @return array |
||
24 | */ |
||
25 | 6 | public function removeMatching(array $bc_breaks, array $rules) |
|
36 | } |
||
37 | |||
38 | /** |
||
39 | * Determines if BC break is ignored. |
||
40 | * |
||
41 | * @param array $break_data Break data. |
||
42 | * @param array $rules Rules. |
||
43 | * |
||
44 | * @return boolean |
||
45 | */ |
||
46 | 6 | protected function isMatching(array $break_data, array $rules) |
|
80 |
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.