Completed
Push — master ( 066784...351105 )
by Joao Gilberto
02:29
created
src/RouteHandler.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@  discard block
 block discarded – undo
27 27
 
28 28
     protected $_defaultMethods = [
29 29
         // Service
30
-        [ "method" => ['GET', 'POST', 'PUT', 'DELETE'], "pattern" => '/{version}/{module}/{action}/{id:[0-9]+}/{secondid}.{output}' ],
31
-        [ "method" => ['GET', 'POST', 'PUT', 'DELETE'], "pattern" => '/{version}/{module}/{action}/{id:[0-9]+}.{output}' ],
32
-        [ "method" => ['GET', 'POST', 'PUT', 'DELETE'], "pattern" => '/{version}/{module}/{id:[0-9]+}/{action}.{output}' ],
33
-        [ "method" => ['GET', 'POST', 'PUT', 'DELETE'], "pattern" => '/{version}/{module}/{id:[0-9]+}.{output}' ],
34
-        [ "method" => ['GET', 'POST', 'PUT', 'DELETE'], "pattern" => '/{version}/{module}/{action}.{output}' ],
35
-        [ "method" => ['GET', 'POST', 'PUT', 'DELETE'], "pattern" => '/{version}/{module}.{output}' ]
30
+        ["method" => ['GET', 'POST', 'PUT', 'DELETE'], "pattern" => '/{version}/{module}/{action}/{id:[0-9]+}/{secondid}.{output}'],
31
+        ["method" => ['GET', 'POST', 'PUT', 'DELETE'], "pattern" => '/{version}/{module}/{action}/{id:[0-9]+}.{output}'],
32
+        ["method" => ['GET', 'POST', 'PUT', 'DELETE'], "pattern" => '/{version}/{module}/{id:[0-9]+}/{action}.{output}'],
33
+        ["method" => ['GET', 'POST', 'PUT', 'DELETE'], "pattern" => '/{version}/{module}/{id:[0-9]+}.{output}'],
34
+        ["method" => ['GET', 'POST', 'PUT', 'DELETE'], "pattern" => '/{version}/{module}/{action}.{output}'],
35
+        ["method" => ['GET', 'POST', 'PUT', 'DELETE'], "pattern" => '/{version}/{module}.{output}']
36 36
     ];
37 37
     protected $_moduleAlias = [];
38 38
     protected $_defaultRestVersion = '1.0';
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
          * you can request only:
264 264
          * http://somehost/module/somealias
265 265
          */
266
-        foreach ((array) $moduleAlias as $alias => $module) {
266
+        foreach ((array)$moduleAlias as $alias => $module) {
267 267
             $route->addModuleAlias($alias, $module);
268 268
         }
269 269
 
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
             && file_exists($_SERVER['SCRIPT_FILENAME'])
302 302
             && basename($_SERVER['SCRIPT_FILENAME']) !== "route.php"
303 303
             && basename($_SERVER['SCRIPT_FILENAME']) !== $routeIndex
304
-        )  {
304
+        ) {
305 305
             $file = $_SERVER['SCRIPT_FILENAME'];
306 306
             if (strpos($file, '.php') !== false) {
307 307
                 require_once($file);
Please login to merge, or discard this patch.