@@ -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 { |
@@ -53,8 +53,8 @@ |
||
| 53 | 53 | $this->name = substr($this->name, 0, $extPos); |
| 54 | 54 | } |
| 55 | 55 | // path |
| 56 | - $fileRelativePath = $this->getBuilder($output)->getConfig()->get('content.dir') . '/' . $this->name . '.md'; |
|
| 57 | - $filePath = $this->getPath() . '/' . $fileRelativePath; |
|
| 56 | + $fileRelativePath = $this->getBuilder($output)->getConfig()->get('content.dir').'/'.$this->name.'.md'; |
|
| 57 | + $filePath = $this->getPath().'/'.$fileRelativePath; |
|
| 58 | 58 | |
| 59 | 59 | // file already exists? |
| 60 | 60 | if ($this->fs->exists($filePath) && !$this->force) { |