Completed
Push — master ( 054cbe...a5512e )
by Mahmoud
09:15
created
app/Port/Routes/Traits/RoutesServiceProviderTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                 $apiVersionNumber = $this->getRouteFileVersionNumber($fileNameWithoutExtension);
55 55
 
56 56
                 $this->apiRouter->version('v' . $apiVersionNumber,
57
-                    function (DingoApiRouter $router) use ($file, $containerPath, $containersNamespace) {
57
+                    function(DingoApiRouter $router) use ($file, $containerPath, $containersNamespace) {
58 58
 
59 59
                         $controllerNamespace = $containersNamespace . '\\Containers\\' . basename($containerPath) . '\\UI\API\Controllers';
60 60
 
@@ -62,12 +62,12 @@  discard block
 block discarded – undo
62 62
                             // Routes Namespace
63 63
                             'namespace'  => $controllerNamespace,
64 64
                             // Enable: API Rate Limiting
65
-                            'middleware' => ['api.throttle','mobile.requests.monitor'],
65
+                            'middleware' => ['api.throttle', 'mobile.requests.monitor'],
66 66
                             // The API limit time.
67 67
                             'limit'      => Config::get('api.limit'),
68 68
                             // The API limit expiry time.
69 69
                             'expires'    => Config::get('api.limit_expires'),
70
-                        ], function ($router) use ($file) {
70
+                        ], function($router) use ($file) {
71 71
 
72 72
                             require $file->getPathname();
73 73
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             foreach ($files as $file) {
101 101
                 $this->webRouter->group([
102 102
                     'namespace' => $controllerNamespace,
103
-                ], function (LaravelRouter $router) use ($file) {
103
+                ], function(LaravelRouter $router) use ($file) {
104 104
                     require $file->getPathname();
105 105
                 });
106 106
             }
Please login to merge, or discard this patch.