Completed
Pull Request — master (#165)
by Paul
03:28
created
src/Router/Wrapper/AuraRouterWrapper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     {
88 88
         $ret = $this->router->generate($name, $parameters);
89 89
         if ($ret === false) {
90
-            throw new RouteNotFoundException('Unable to generate route for: ' . $name);
90
+            throw new RouteNotFoundException('Unable to generate route for: '.$name);
91 91
         }
92 92
 
93 93
         return $ret;
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 
137 137
         // The 'action' key always exists and defaults to the Route Name, so we check accordingly
138 138
         if (!isset($routeParams['controller']) && $routeParams['action'] === $matchedRoute->name) {
139
-            throw new \Exception('Matched the route: ' . $matchedRoute->name . ' but unable to locate
139
+            throw new \Exception('Matched the route: '.$matchedRoute->name.' but unable to locate
140 140
             any controller/action params to dispatch');
141 141
         }
142 142
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
             } elseif (isset($routeParams['action'])) {
148 148
                 $routeParams['_controller'] = $routeParams['action'];
149 149
             } else {
150
-                throw new \Exception('Unable to determine the controller from route: ' . $matchedRoute->name);
150
+                throw new \Exception('Unable to determine the controller from route: '.$matchedRoute->name);
151 151
             }
152 152
         }
153 153
 
Please login to merge, or discard this patch.
src/ServiceManager/Factory/RouterFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         $logger = $serviceLocator->has('Logger') ? $serviceLocator->get('Logger') : null;
51 51
 
52 52
         $chainRouter = new ChainRouter($logger);
53
-        if($serviceLocator->has('RoutingCache')) {
53
+        if ($serviceLocator->has('RoutingCache')) {
54 54
             $chainRouter->setCache($serviceLocator->get('RoutingCache'));
55 55
         }
56 56
 
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
                     break;
92 92
 
93 93
                 default:
94
-                    throw new \Exception('Unexpected routes value return from module: ' . $moduleName .
95
-                        '. found value of type: ' . gettype($moduleRoutingResponse));
94
+                    throw new \Exception('Unexpected routes value return from module: '.$moduleName.
95
+                        '. found value of type: '.gettype($moduleRoutingResponse));
96 96
             }
97 97
         }
98 98
 
Please login to merge, or discard this patch.
src/App.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
 
238 238
 
239 239
         // cache liie a mother fucker
240
-        if(!$this->hasRouteInCache($request)) {
240
+        if (!$this->hasRouteInCache($request)) {
241 241
             $routeParams = $this->handleRouting($request);
242 242
             $this->setRouteInCache($request, $routeParams);
243 243
             // @todo - move these 2 lines to setRouteInCache()
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
     public function getRootDir()
354 354
     {
355 355
         if (null === $this->rootDir) {
356
-            $this->rootDir = realpath(getcwd() . '/app');
356
+            $this->rootDir = realpath(getcwd().'/app');
357 357
         }
358 358
 
359 359
         return $this->rootDir;
@@ -442,7 +442,7 @@  discard block
 block discarded – undo
442 442
      */
443 443
     public function getCacheDir()
444 444
     {
445
-        return $this->rootDir . '/cache/' . $this->environment;
445
+        return $this->rootDir.'/cache/'.$this->environment;
446 446
     }
447 447
 
448 448
     /**
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
      */
455 455
     public function getLogDir()
456 456
     {
457
-        return $this->rootDir . '/logs';
457
+        return $this->rootDir.'/logs';
458 458
     }
459 459
 
460 460
     /**
@@ -477,8 +477,8 @@  discard block
 block discarded – undo
477 477
     public function getConfigManager()
478 478
     {
479 479
         if (null === $this->configManager) {
480
-            $cachePath = $this->getCacheDir() . '/application-config-cache.' . $this->getName() . '.php';
481
-            $this->configManager = new ConfigManager($cachePath, !$this->debug, $this->rootDir . '/config');
480
+            $cachePath = $this->getCacheDir().'/application-config-cache.'.$this->getName().'.php';
481
+            $this->configManager = new ConfigManager($cachePath, !$this->debug, $this->rootDir.'/config');
482 482
         }
483 483
 
484 484
         return $this->configManager;
Please login to merge, or discard this patch.