Passed
Push — main ( aa68b0...40dc38 )
by Dimitri
03:05
created
src/View/Adapters/AbstractAdapter.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -73,12 +73,10 @@  discard block
 block discarded – undo
73 73
         if (! empty($viewPathLocator)) {
74 74
             if (is_string($viewPathLocator)) {
75 75
                 $this->viewPath = rtrim($viewPathLocator, '\\/ ') . DS;
76
-            }
77
-            else if ($viewPathLocator instanceof Locator) {
76
+            } else if ($viewPathLocator instanceof Locator) {
78 77
                 $this->locator = $viewPathLocator;
79 78
             }
80
-        }
81
-        else {
79
+        } else {
82 80
             $this->locator = Services::locator();
83 81
         }
84 82
     }
@@ -225,8 +223,7 @@  discard block
 block discarded – undo
225 223
         $viewPath = $options['viewPath'] ?? $this->viewPath;
226 224
         if (! empty($viewPath)) {
227 225
             $file = str_replace('/', DS, rtrim($viewPath, '/\\') . DS . ltrim($view, '/\\'));
228
-        }
229
-        else {
226
+        } else {
230 227
             $file = $view;
231 228
         }
232 229
         
Please login to merge, or discard this patch.