Passed
Push — main ( ba44ab...7c468b )
by Dimitri
15:54
created
src/Controllers/ApplicationController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.