Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public static function getSavegameValidation($data) |
||
15 | { |
||
16 | $br = new BinaryReader($data); |
||
17 | |||
18 | $br->setPosition(0); |
||
19 | |||
20 | $datalength = $br->readInt8(); |
||
21 | $returned = $br->readString($datalength); |
||
|
|||
22 | |||
23 | if ($returned == 'LcfSaveData') { |
||
24 | return true; |
||
25 | } else { |
||
26 | return false; |
||
27 | } |
||
28 | } |
||
29 | |||
93 |
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.