@@ -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 */ |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | array $config = ['debug' => false], |
55 | 55 | array $options = ['verbosity' => Builder::VERBOSITY_NORMAL] |
56 | 56 | ) { |
57 | - if (!file_exists($this->getPath() . '/' . self::CONFIG_FILE)) { |
|
57 | + if (!file_exists($this->getPath().'/'.self::CONFIG_FILE)) { |
|
58 | 58 | throw new \Exception(sprintf('Config file not found in "%s"!', $this->getPath())); |
59 | 59 | } |
60 | 60 | // verbosity: verbose |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | try { |
70 | - $configFile = Yaml::parse(file_get_contents($this->getPath() . '/' . self::CONFIG_FILE)); |
|
70 | + $configFile = Yaml::parse(file_get_contents($this->getPath().'/'.self::CONFIG_FILE)); |
|
71 | 71 | $config = array_replace_recursive($configFile, $config); |
72 | 72 | $this->builder = (new Builder($config, $this->messageCallback($output))) |
73 | 73 | ->setSourceDir($this->getPath()) |
@@ -88,7 +88,7 @@ discard block |
||
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 { |