| Total Complexity | 6 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class TextReporter extends AbstractReporter |
||
| 15 | { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Returns reporter name. |
||
| 19 | * |
||
| 20 | * @return string |
||
| 21 | */ |
||
| 22 | public function getName() |
||
| 23 | { |
||
| 24 | return 'text'; |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Generates report. |
||
| 29 | * |
||
| 30 | * @param array $bc_breaks BC breaks. |
||
| 31 | * |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function generate(array $bc_breaks) |
||
| 62 | } |
||
| 63 | |||
| 65 |
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.