@@ -78,7 +78,7 @@ |
||
| 78 | 78 | * Apply environment variables. |
| 79 | 79 | */ |
| 80 | 80 | $data = $this->getData(); |
| 81 | - $applyEnv = function ($array) use ($data) { |
|
| 81 | + $applyEnv = function($array) use ($data) { |
|
| 82 | 82 | $iterator = new \RecursiveIteratorIterator( |
| 83 | 83 | new \RecursiveArrayIterator($array), |
| 84 | 84 | \RecursiveIteratorIterator::SELF_FIRST |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | // filter pages: home, sections and terms |
| 30 | - $filteredPages = $this->pagesCollection->filter(function (Page $page) { |
|
| 30 | + $filteredPages = $this->pagesCollection->filter(function(Page $page) { |
|
| 31 | 31 | return in_array($page->getType(), [Type::HOMEPAGE, Type::SECTION, Type::TERM]); |
| 32 | 32 | }); |
| 33 | 33 | /* @var $page Page */ |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | */ |
| 89 | 89 | public function messageCallback(OutputInterface $output) |
| 90 | 90 | { |
| 91 | - return function ($code, $message = '', $itemsCount = 0, $itemsMax = 0) use ($output) { |
|
| 91 | + return function($code, $message = '', $itemsCount = 0, $itemsMax = 0) use ($output) { |
|
| 92 | 92 | if ($this->quiet) { |
| 93 | 93 | return; |
| 94 | 94 | } else { |
@@ -31,17 +31,17 @@ |
||
| 31 | 31 | protected function execute(InputInterface $input, OutputInterface $output) |
| 32 | 32 | { |
| 33 | 33 | $outputDir = $this->getBuilder($output)->getConfig()->get('output.dir'); |
| 34 | - if ($this->fs->exists($this->getPath() . '/' . Serve::$tmpDir . '/output')) { |
|
| 35 | - $outputDir = file_get_contents($this->getPath() . '/' . Serve::$tmpDir . '/output'); |
|
| 34 | + if ($this->fs->exists($this->getPath().'/'.Serve::$tmpDir.'/output')) { |
|
| 35 | + $outputDir = file_get_contents($this->getPath().'/'.Serve::$tmpDir.'/output'); |
|
| 36 | 36 | } |
| 37 | 37 | // delete output dir |
| 38 | - if ($this->fs->exists($this->getPath() . '/' . $outputDir)) { |
|
| 39 | - $this->fs->remove($this->getPath() . '/' . $outputDir); |
|
| 38 | + if ($this->fs->exists($this->getPath().'/'.$outputDir)) { |
|
| 39 | + $this->fs->remove($this->getPath().'/'.$outputDir); |
|
| 40 | 40 | $output->writeln(sprintf("Output directory '%s' removed.", $outputDir)); |
| 41 | 41 | } |
| 42 | 42 | // delete local server temp files |
| 43 | - if ($this->fs->exists($this->getPath() . '/' . Serve::$tmpDir)) { |
|
| 44 | - $this->fs->remove($this->getPath() . '/' . Serve::$tmpDir); |
|
| 43 | + if ($this->fs->exists($this->getPath().'/'.Serve::$tmpDir)) { |
|
| 44 | + $this->fs->remove($this->getPath().'/'.Serve::$tmpDir); |
|
| 45 | 45 | $output->writeln('Temporary files deleted.'); |
| 46 | 46 | } |
| 47 | 47 | |