| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function needsTwig($controllerName, $controllerMethod, $path = null): bool |
||
| 32 | { |
||
| 33 | $path = $path ?? self::VIEWS_PREFIX; |
||
| 34 | if (null === $this->loadTwig) { |
||
| 35 | $this->loadTwig = file_exists( |
||
| 36 | $path . |
||
| 37 | $controllerName . |
||
| 38 | DIRECTORY_SEPARATOR . |
||
| 39 | $controllerMethod . '.html.twig' |
||
| 40 | ); |
||
| 41 | } |
||
| 42 | return $this->loadTwig; |
||
| 43 | } |
||
| 44 | |||
| 73 |