@@ -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 */ |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | } |
| 58 | 58 | $this->path = realpath($this->getPath()); |
| 59 | 59 | $this->path = str_replace(DIRECTORY_SEPARATOR, '/', $this->getPath()); |
| 60 | - if (!file_exists($this->getPath() . '/' . self::CONFIG_FILE)) { |
|
| 60 | + if (!file_exists($this->getPath().'/'.self::CONFIG_FILE)) { |
|
| 61 | 61 | $message = sprintf('Cecil could not find "%s" file in "%s"', self::CONFIG_FILE, $this->getPath()); |
| 62 | 62 | |
| 63 | 63 | throw new \InvalidArgumentException($message); |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | */ |
| 179 | 179 | public function messageCallback(OutputInterface $output) |
| 180 | 180 | { |
| 181 | - return function ($code, $message = '', $itemsCount = 0, $itemsMax = 0) use ($output) { |
|
| 181 | + return function($code, $message = '', $itemsCount = 0, $itemsMax = 0) use ($output) { |
|
| 182 | 182 | if ($this->quiet) { |
| 183 | 183 | return; |
| 184 | 184 | } else { |