Total Complexity | 2 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | trait TNoUnserializeClassBehaviorTrait |
||
28 | { |
||
29 | /** |
||
30 | * This is raised when an owner is completed its unserialize() method call to |
||
31 | * __wakeup. This method removes its behavior from the owner. |
||
32 | * @param object $owner The owner of he behavior raising the dynamic event. |
||
33 | * @param TCallChain $chain The chain of dynamic event method handlers. |
||
34 | */ |
||
35 | public function dyWakeUp(object $owner, TCallChain $chain) |
||
43 |
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()
can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.