Conditions | 1 |
Paths | 1 |
Total Lines | 4 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
45 | public static function deserialize($data) { |
||
46 | $parser = new LuaParser(new LuaTokenStream(new LuaInputStream($data))); |
||
47 | return LuaToPhpConverter::convertToPhpValue($parser->parse()); |
||
1 ignored issue
–
show
|
|||
48 | } |
||
49 | } |
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: