| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 73 | protected static function getTracePath() |
||
| 74 | {
|
||
| 75 | // detects where the route path is coming from |
||
| 76 | // and returns this data in the static path. |
||
| 77 | $trace = Utils::trace(2,'file'); |
||
| 78 | |||
| 79 | // the trace is returned if the variable is available |
||
| 80 | // in the path data, otherwise it returns null. |
||
| 81 | return static::getPath()[$trace] ?? null; |
||
| 82 | } |
||
| 83 | } |