@@ -87,7 +87,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | public function getRootDir() |
344 | 344 | { |
345 | 345 | if (null === $this->rootDir) { |
346 | - $this->rootDir = realpath(getcwd() . '/app'); |
|
346 | + $this->rootDir = realpath(getcwd().'/app'); |
|
347 | 347 | } |
348 | 348 | |
349 | 349 | return $this->rootDir; |
@@ -432,7 +432,7 @@ discard block |
||
432 | 432 | */ |
433 | 433 | public function getCacheDir() |
434 | 434 | { |
435 | - return $this->rootDir . '/cache/' . $this->environment; |
|
435 | + return $this->rootDir.'/cache/'.$this->environment; |
|
436 | 436 | } |
437 | 437 | |
438 | 438 | /** |
@@ -444,7 +444,7 @@ discard block |
||
444 | 444 | */ |
445 | 445 | public function getLogDir() |
446 | 446 | { |
447 | - return $this->rootDir . '/logs'; |
|
447 | + return $this->rootDir.'/logs'; |
|
448 | 448 | } |
449 | 449 | |
450 | 450 | /** |
@@ -467,8 +467,8 @@ discard block |
||
467 | 467 | public function getConfigManager() |
468 | 468 | { |
469 | 469 | if (null === $this->configManager) { |
470 | - $cachePath = $this->getCacheDir() . '/application-config-cache.' . $this->getName() . '.php'; |
|
471 | - $this->configManager = new ConfigManager($cachePath, !$this->debug, $this->rootDir . '/config'); |
|
470 | + $cachePath = $this->getCacheDir().'/application-config-cache.'.$this->getName().'.php'; |
|
471 | + $this->configManager = new ConfigManager($cachePath, !$this->debug, $this->rootDir.'/config'); |
|
472 | 472 | } |
473 | 473 | |
474 | 474 | return $this->configManager; |
@@ -50,7 +50,7 @@ discard block |
||
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 |
||
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 |
@@ -90,7 +90,7 @@ |
||
90 | 90 | $controller->setServiceLocator($this->serviceManager); |
91 | 91 | } |
92 | 92 | |
93 | - if($controller instanceof ContainerAwareInterface) { |
|
93 | + if ($controller instanceof ContainerAwareInterface) { |
|
94 | 94 | $controller->setContainer($this->serviceManager->get('SymfonyContainer')); |
95 | 95 | } |
96 | 96 |