Passed
Push — master ( 8f50d0...6b8118 )
by Darío
01:40
created
src/Mvc/AbstractModule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      */
169 169
     public function getConfig()
170 170
     {
171
-        return include($this->modulePath .'/' . $this->getModuleName() . '/config/module.config.php');
171
+        return include($this->modulePath . '/' . $this->getModuleName() . '/config/module.config.php');
172 172
     }
173 173
 
174 174
     /**
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
         $nm = explode('\\', $name);
184 184
         $module = array_shift($nm);
185 185
 
186
-        $class = $this->modulePath ."/". $module . "/source/" . implode("/", $nm) . ".php";
186
+        $class = $this->modulePath . "/" . $module . "/source/" . implode("/", $nm) . ".php";
187 187
 
188 188
         if (file_exists($class))
189 189
             include $class;
Please login to merge, or discard this patch.
src/Mvc/Layout.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -193,8 +193,8 @@  discard block
 block discarded – undo
193 193
     {
194 194
         foreach ($params as $param => $value)
195 195
         {
196
-            if (property_exists(__CLASS__, strtolower($param)) && method_exists($this, 'set'.$param))
197
-                $this->{'set'.$param}($value);
196
+            if (property_exists(__CLASS__, strtolower($param)) && method_exists($this, 'set' . $param))
197
+                $this->{'set' . $param}($value);
198 198
         }
199 199
     }
200 200
 
@@ -218,11 +218,11 @@  discard block
 block discarded – undo
218 218
             $view = "";
219 219
 
220 220
             if (!is_null($controller->getModule()))
221
-                $view .= $controller->getModule()->getModulePath() .'/'. $controller->getModule()->getModuleName();
221
+                $view .= $controller->getModule()->getModulePath() . '/' . $controller->getModule()->getModuleName();
222 222
 
223 223
             $view .=
224
-                    '/'. $controller->getModule()->getModulePath() . '/'. basename(str_replace('\\','/',get_class($controller))) .
225
-                    '/'. $controller->getMethod() . '.phtml';
224
+                    '/' . $controller->getModule()->getModulePath() . '/' . basename(str_replace('\\', '/', get_class($controller))) .
225
+                    '/' . $controller->getMethod() . '.phtml';
226 226
 
227 227
             $this->view = $view;
228 228
         }
Please login to merge, or discard this patch.
src/Mvc/AbstractController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -313,7 +313,7 @@
 block discarded – undo
313 313
         if ($_SERVER['REQUEST_METHOD'] != 'JSON')
314 314
             throw new \LogicException("Request method is not JSON");
315 315
 
316
-        $input =  file_get_contents('php://input');
316
+        $input = file_get_contents('php://input');
317 317
         $array = explode("&", $input);
318 318
 
319 319
         $result = [];
Please login to merge, or discard this patch.