| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2.0116 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 8 | public static function enterScope($scope) |
|
| 32 | { |
||
| 33 | 8 | if (!is_scalar($scope)) { |
|
| 34 | throw new \InvalidArgumentException("Only scalars allowed as scope identifiers"); |
||
| 35 | } |
||
| 36 | 8 | array_push(self::$scope, $scope); |
|
| 37 | 8 | list($call) = debug_backtrace(0); |
|
| 38 | 8 | array_push(self::$scopeChange, $call); |
|
| 39 | 8 | } |
|
| 40 | |||
| 56 |