@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $options = (array) $options; |
46 | 46 | |
47 | 47 | // N'est-il pas namespaced ? on cherche le dossier en fonction du controleur |
48 | - if (! str_contains($view, '\\')) { |
|
48 | + if (!str_contains($view, '\\')) { |
|
49 | 49 | $reflection = new ReflectionClass(static::class); |
50 | 50 | ['dirname' => $dirname, 'filename' => $filename] = pathinfo($reflection->getFileName()); |
51 | 51 | $dirname = str_ireplace('Controllers', 'Views', $dirname); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $dirname = implode('Views', $parts); |
60 | 60 | $path = implode(DS, [$dirname, $filename]) . DS; |
61 | 61 | |
62 | - if (! is_dir($path)) { |
|
62 | + if (!is_dir($path)) { |
|
63 | 63 | $path = implode(DS, [$dirname]) . DS; |
64 | 64 | } |
65 | 65 | } |
@@ -72,12 +72,12 @@ discard block |
||
72 | 72 | $viewer->layout($this->layout); |
73 | 73 | } |
74 | 74 | |
75 | - if (! empty($this->viewDatas) && is_array($this->viewDatas)) { |
|
75 | + if (!empty($this->viewDatas) && is_array($this->viewDatas)) { |
|
76 | 76 | $viewer->addData($this->viewDatas); |
77 | 77 | } |
78 | 78 | |
79 | 79 | if (empty($data['title'])) { |
80 | - if (! is_string($controllerName = Dispatcher::getController(false))) { |
|
80 | + if (!is_string($controllerName = Dispatcher::getController(false))) { |
|
81 | 81 | $controllerName = static::class; |
82 | 82 | } |
83 | 83 | $controllerName = str_ireplace(['App\Controllers', 'Controller'], '', $controllerName); |