Completed
Branch master (d43477)
by Bohuslav
15:04 queued 48s
created
src/Enum/Enum.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,6 +53,6 @@
 block discarded – undo
53 53
      */
54 54
     public static function isInEnum($value) {
55 55
         $allItems = array_flip(self::toArray());
56
-        return isset($allItems[$value]) ? true:false;
56
+        return isset($allItems[$value]) ? true : false;
57 57
     }
58 58
 }
Please login to merge, or discard this patch.
src/Dispatchers/DispatcherController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             }
147 147
 
148 148
             return [$transformed['controler'], $transformed['action']];   
149
-        } else if  ($this->_isPlaceholder($action)) {
149
+        } else if ($this->_isPlaceholder($action)) {
150 150
             $matches = array_values($matches);     
151 151
 
152 152
             $transformed = [];
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
                 }
163 163
             }
164 164
                         
165
-            return [$this->_resolveNamespace($parameters, $handler, $matches).'\\'.$controler, $transformed['action']];  // naive solution...    
165
+            return [$this->_resolveNamespace($parameters, $handler, $matches).'\\'.$controler, $transformed['action']]; // naive solution...    
166 166
         } else {
167 167
             return [$this->_resolveNamespace($parameters, $handler, $matches).'\\'.$controler, $action];
168 168
         }
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
     private function _resolveNamespace($parameters, $handler, $matches) {
181 181
         if (isset($handler['module'])) {
182 182
             $moduleName = $handler['module'];
183
-            if  ($this->_isPlaceholder($moduleName)) {
183
+            if ($this->_isPlaceholder($moduleName)) {
184 184
                 $transformed = [];
185 185
                 foreach ($handler as $target => $placeholder) {
186 186
                     foreach ($parameters as $key => $parameterName) {
Please login to merge, or discard this patch.