| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | protected static function getReflection(&$func) |
||
| 52 | { |
||
| 53 | if (!\is_string($func)) { |
||
| 54 | throw new \BadFunctionCallException('Try to call undefined Function'); |
||
| 55 | } |
||
| 56 | try { |
||
| 57 | $func = new \reflectionFunction($func); |
||
| 58 | } catch (\ReflectionException $e) { |
||
| 59 | throw new \BadFunctionCallException('Try to call undefined Function'); |
||
| 60 | } |
||
| 64 |