@@ -1,12 +1,12 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of the PPI Framework. |
|
4 | - * |
|
5 | - * @copyright Copyright (c) 2011-2013 Paul Dragoonis <[email protected]> |
|
6 | - * @license http://opensource.org/licenses/mit-license.php MIT |
|
7 | - * |
|
8 | - * @link http://www.ppi.io |
|
9 | - */ |
|
3 | + * This file is part of the PPI Framework. |
|
4 | + * |
|
5 | + * @copyright Copyright (c) 2011-2013 Paul Dragoonis <[email protected]> |
|
6 | + * @license http://opensource.org/licenses/mit-license.php MIT |
|
7 | + * |
|
8 | + * @link http://www.ppi.io |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace PPI\Framework\Console\Command; |
12 | 12 | |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | rename( |
241 | 241 | $moduleDir . DIRECTORY_SEPARATOR . $routingFiles[0], |
242 | 242 | str_replace('IndexInvoke', 'Index', $moduleDir . DIRECTORY_SEPARATOR . $routingFiles[0] |
243 | - )); |
|
243 | + )); |
|
244 | 244 | } |
245 | 245 | |
246 | 246 | // Success |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | $tokenizedFiles[] = $coreFile; |
197 | 197 | } |
198 | 198 | |
199 | - if(!$this->isValidTemplatingEngine($this->tplEngine)) { |
|
199 | + if (!$this->isValidTemplatingEngine($this->tplEngine)) { |
|
200 | 200 | throw new \Exception('Invalid templating engine: ' . $this->tplEngine); |
201 | 201 | } |
202 | 202 | |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | $tokens['[TPL_ENGINE_EXT]'] = $this->tplEngine; |
216 | 216 | |
217 | 217 | // ROUTING |
218 | - if(!$this->isValidRoutingEngine($this->routingEngine)) { |
|
218 | + if (!$this->isValidRoutingEngine($this->routingEngine)) { |
|
219 | 219 | throw new \Exception('Invalid routing engine: ' . $this->routingEngine); |
220 | 220 | } |
221 | 221 | |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | $this->replaceTokensInFiles($moduleDir, $tokenizedFiles, $tokens); |
237 | 237 | |
238 | 238 | |
239 | - if($this->routingEngine === self::ROUTING_ENGINE_FASTROUTE) { |
|
239 | + if ($this->routingEngine === self::ROUTING_ENGINE_FASTROUTE) { |
|
240 | 240 | rename( |
241 | 241 | $moduleDir . DIRECTORY_SEPARATOR . $routingFiles[0], |
242 | 242 | str_replace('IndexInvoke', 'Index', $moduleDir . DIRECTORY_SEPARATOR . $routingFiles[0] |
@@ -385,16 +385,16 @@ discard block |
||
385 | 385 | private function checkRouters(InputInterface $input, OutputInterface $output) |
386 | 386 | { |
387 | 387 | // Aura Check |
388 | - if($this->routingEngine == self::ROUTING_ENGINE_AURA && !class_exists('\Aura\Router\Router')) { |
|
388 | + if ($this->routingEngine == self::ROUTING_ENGINE_AURA && !class_exists('\Aura\Router\Router')) { |
|
389 | 389 | $output->writeln("<comment>Aura Router doesn't appear to be loaded. Run: <info>composer require ppi/aura-router</info></comment>"); |
390 | 390 | } |
391 | 391 | |
392 | 392 | // Laravel check |
393 | - if($this->routingEngine == self::ROUTING_ENGINE_LARAVEL && !class_exists('\PPI\LaravelRouting\LaravelRouter')) { |
|
393 | + if ($this->routingEngine == self::ROUTING_ENGINE_LARAVEL && !class_exists('\PPI\LaravelRouting\LaravelRouter')) { |
|
394 | 394 | $output->writeln("<comment>Laravel Router doesn't appear to be loaded. Run: <info>composer require ppi/laravel-router</info></comment>"); |
395 | 395 | } |
396 | 396 | |
397 | - if($this->routingEngine == self::ROUTING_ENGINE_FASTROUTE && !class_exists('\PPI\FastRoute\Wrapper\FastRouteWrapper')) { |
|
397 | + if ($this->routingEngine == self::ROUTING_ENGINE_FASTROUTE && !class_exists('\PPI\FastRoute\Wrapper\FastRouteWrapper')) { |
|
398 | 398 | $output->writeln("<comment>FastRoute Router doesn't appear to be loaded. Run: <info>composer require ppi/fast-route</info></comment>"); |
399 | 399 | } |
400 | 400 |