| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3.0416 |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 46 | 261 | protected static function resolveFacadeInstance($facade): object |
|
| 47 | { |
||
| 48 | 261 | if (is_object($facade)) { |
|
| 49 | return $facade; |
||
| 50 | } |
||
| 51 | |||
| 52 | 261 | if (isset(static::$resolved_instance[$facade])) { |
|
| 53 | 149 | return static::$resolved_instance[$facade]; |
|
| 54 | } |
||
| 55 | |||
| 56 | 261 | return static::$resolved_instance[$facade] = new $facade(); |
|
| 57 | } |
||
| 59 |