| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2.0185 |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | 8 | public static function exitScope($scope) |
|
| 48 | { |
||
| 49 | 8 | $current = array_pop(self::$scope); |
|
| 50 | 8 | $call = array_pop(self::$scopeChange); |
|
| 51 | 8 | if ($scope !== $current) { |
|
| 52 | throw new \LogicException("The current scope '$current' was not closed properly, while trying to close '$scope', which was opened at {$call['file']}@{$call['line']}"); |
||
| 53 | } |
||
| 54 | 8 | } |
|
| 55 | } |
||
| 56 |