| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 89 | 20 | protected function findFullPath($view) |
|
| 90 | { |
||
| 91 | 20 | $paths = $this->container->make('config')->get('menu.paths'); |
|
| 92 | |||
| 93 | 20 | foreach ($paths as $path) { |
|
| 94 | 20 | $template = $path . '/' . $view . '.php'; |
|
| 95 | 20 | if (file_exists($template)) { |
|
| 96 | 5 | return $template; |
|
| 97 | } |
||
| 98 | 20 | } |
|
| 99 | |||
| 100 | 20 | return false; |
|
| 101 | } |
||
| 102 | |||
| 111 | } |