@@ -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 | |
@@ -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 | |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | return $this; |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | - if($this->isDebug()) { |
|
| 175 | + if ($this->isDebug()) { |
|
| 176 | 176 | ExceptionHandler::register(true, 'UTF-8', 'PPI Framework', self::VERSION, true); |
| 177 | 177 | } |
| 178 | 178 | |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | $response = $this->dispatch($request, $response); |
| 231 | 231 | } catch (ResourceNotFoundException $e) { |
| 232 | 232 | |
| 233 | - if($this->symfonyKernel === null) { |
|
| 233 | + if ($this->symfonyKernel === null) { |
|
| 234 | 234 | throw $e; |
| 235 | 235 | } |
| 236 | 236 | $response = $this->symfonyKernel->handle($cleanRequest); |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | public function getRootDir() |
| 377 | 377 | { |
| 378 | 378 | if (null === $this->rootDir) { |
| 379 | - $this->rootDir = realpath(getcwd() . '/app'); |
|
| 379 | + $this->rootDir = realpath(getcwd().'/app'); |
|
| 380 | 380 | } |
| 381 | 381 | |
| 382 | 382 | return $this->rootDir; |
@@ -465,7 +465,7 @@ discard block |
||
| 465 | 465 | */ |
| 466 | 466 | public function getCacheDir() |
| 467 | 467 | { |
| 468 | - return $this->rootDir . '/cache/' . $this->environment; |
|
| 468 | + return $this->rootDir.'/cache/'.$this->environment; |
|
| 469 | 469 | } |
| 470 | 470 | |
| 471 | 471 | /** |
@@ -477,7 +477,7 @@ discard block |
||
| 477 | 477 | */ |
| 478 | 478 | public function getLogDir() |
| 479 | 479 | { |
| 480 | - return $this->rootDir . '/logs'; |
|
| 480 | + return $this->rootDir.'/logs'; |
|
| 481 | 481 | } |
| 482 | 482 | |
| 483 | 483 | /** |
@@ -500,8 +500,8 @@ discard block |
||
| 500 | 500 | public function getConfigManager() |
| 501 | 501 | { |
| 502 | 502 | if (null === $this->configManager) { |
| 503 | - $cachePath = $this->getCacheDir() . '/application-config-cache.' . $this->getName() . '.php'; |
|
| 504 | - $this->configManager = new ConfigManager($cachePath, !$this->debug, $this->rootDir . '/config'); |
|
| 503 | + $cachePath = $this->getCacheDir().'/application-config-cache.'.$this->getName().'.php'; |
|
| 504 | + $this->configManager = new ConfigManager($cachePath, !$this->debug, $this->rootDir.'/config'); |
|
| 505 | 505 | } |
| 506 | 506 | |
| 507 | 507 | return $this->configManager; |