Conditions | 4 |
Paths | 6 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | protected static function createFacade($class = '', $args = []) |
||
40 | { |
||
41 | $class = $class ?: static::class; |
||
42 | $facadeClass = static::getFacadeClass(); |
||
|
|||
43 | if ($facadeClass) { |
||
44 | $class = $facadeClass; |
||
45 | } elseif (isset(self::$bind[$class])) { |
||
46 | $class = self::$bind[$class]; |
||
47 | } |
||
48 | return Container::getInstance()->make($class, $args); |
||
49 | } |
||
50 | |||
80 | } |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.