Conditions | 3 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
24 | public function decrypt($payload, $unserialize = true) |
||
25 | { |
||
26 | $decrypted = $this->encrypter->decrypt($payload, false); |
||
27 | |||
28 | $unserialized = @unserialize($decrypted); |
||
29 | if ($unserialized === false && $decrypted !== 'b:0;') { |
||
30 | return $decrypted; |
||
31 | } |
||
32 | |||
33 | return $unserialized; |
||
34 | } |
||
51 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.