| 1 | <?php |
||
| 5 | class TestSupport |
||
| 6 | { |
||
| 7 | |||
| 8 | public static function mcryptCiphers() |
||
| 29 | |||
| 30 | public static function mcryptModes() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Change a random byte, randomly. This function is used in unit testing |
||
| 43 | * only and never in the namespaced areas of code. |
||
| 44 | * |
||
| 45 | * @param string $inp |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | public static function swaprandbyte($inp) |
||
| 65 | |||
| 66 | } |
||
| 67 |
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.