Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Tests | 18 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
8 | 1 | public static function mcryptCiphers() |
|
9 | { |
||
10 | return array( |
||
11 | 1 | MCRYPT_3DES, |
|
12 | 1 | MCRYPT_BLOWFISH, |
|
13 | 1 | MCRYPT_BLOWFISH_COMPAT, |
|
14 | 1 | MCRYPT_DES, |
|
15 | 1 | MCRYPT_LOKI97, |
|
16 | 1 | MCRYPT_CAST_128, |
|
17 | 1 | MCRYPT_CAST_256, |
|
18 | 1 | MCRYPT_RC2, |
|
19 | 1 | MCRYPT_RIJNDAEL_128, |
|
20 | 1 | MCRYPT_RIJNDAEL_192, |
|
21 | 1 | MCRYPT_RIJNDAEL_256, |
|
22 | 1 | MCRYPT_SAFERPLUS, |
|
23 | 1 | MCRYPT_SERPENT, |
|
24 | 1 | MCRYPT_TRIPLEDES, |
|
25 | 1 | MCRYPT_TWOFISH, |
|
26 | 1 | MCRYPT_XTEA, |
|
27 | 1 | ); |
|
28 | } |
||
29 | |||
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.