| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 48 | protected static function resolveFacadeInstance($facade): object |
||
| 49 | { |
||
| 50 | if (is_object($facade)) { |
||
| 51 | return $facade; |
||
| 52 | } |
||
| 53 | if (isset(static::$resolved_instance[$facade])) { |
||
| 54 | return static::$resolved_instance[$facade]; |
||
| 55 | } |
||
| 56 | |||
| 57 | return static::$resolved_instance[$facade] = new $facade(); |
||
| 58 | } |
||
| 60 |