Conditions | 4 |
Paths | 6 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 4.0312 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
47 | 1 | protected static function createFacade($class='', $args=[]) |
|
48 | { |
||
49 | 1 | $class=$class ?: static::class; |
|
50 | 1 | $facadeClass=static::getFacadeClass(); |
|
|
|||
51 | 1 | if ($facadeClass) { |
|
52 | $class=$facadeClass; |
||
53 | 1 | } elseif (isset(self::$bind[$class])) { |
|
54 | 1 | $class=self::$bind[$class]; |
|
55 | } |
||
56 | 1 | return Container::getInstance()->make($class, $args); |
|
57 | } |
||
58 | |||
79 | } |
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.