1 | <?php |
||
27 | class Support |
||
28 | { |
||
29 | |||
30 | /** |
||
31 | * Turns an integer into a 4 byte binary representation |
||
32 | * |
||
33 | * @param int $dec Integer to convert to binary |
||
34 | * |
||
35 | * @return string |
||
36 | */ |
||
37 | 5 | protected static function dec2bin($dec) |
|
41 | |||
42 | /** |
||
43 | * Reverses dec2bin |
||
44 | * |
||
45 | * @param string $bin Binary string to convert to decimal |
||
46 | * |
||
47 | * @return string |
||
48 | */ |
||
49 | 3 | protected static function bin2dec($bin) |
|
53 | |||
54 | /** |
||
55 | * An internal hex2bin implementation for PHP 5.3 |
||
56 | * |
||
57 | * @param string $hexstr |
||
58 | * @codeCoverageIgnore |
||
59 | * @return string |
||
60 | */ |
||
61 | protected static function hex2bin($hexstr) |
||
79 | |||
80 | } |
||
81 |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.