Total Complexity | 12 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | trait StringExtended |
||
8 | { |
||
9 | /** |
||
10 | * Format a number according to the nubmer of decimals provided and culture. |
||
11 | * @param mixed... number, decimals, culture. |
||
12 | */ |
||
13 | // phpcs:disable |
||
14 | public static function mysql_format() |
||
32 | } |
||
33 | } |
||
34 | |||
35 | // phpcs:disable |
||
36 | public static function mysql_lpad($string, $length, $pad) |
||
48 |
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.