@@ -136,7 +136,7 @@ |
||
136 | 136 | */ |
137 | 137 | protected function collectPages(): void |
138 | 138 | { |
139 | - $filteredPages = $this->builder->getPages()->filter(function (Page $page) { |
|
139 | + $filteredPages = $this->builder->getPages()->filter(function(Page $page) { |
|
140 | 140 | return $page->hasVariable('menu') && $page->getVariable('published'); |
141 | 141 | }); |
142 | 142 |
@@ -93,7 +93,7 @@ |
||
93 | 93 | protected function collectTermsFromPages(): void |
94 | 94 | { |
95 | 95 | /** @var Page $page */ |
96 | - $pages = $this->builder->getPages()->filter(function (Page $page) { |
|
96 | + $pages = $this->builder->getPages()->filter(function(Page $page) { |
|
97 | 97 | return $page->getVariable('published'); |
98 | 98 | })->sortByDate(); |
99 | 99 | foreach ($pages as $page) { |
@@ -37,7 +37,7 @@ |
||
37 | 37 | public static function fileGetContents(string $filename, bool $userAgent = false) |
38 | 38 | { |
39 | 39 | set_error_handler( |
40 | - function ($severity, $message, $file, $line) { |
|
40 | + function($severity, $message, $file, $line) { |
|
41 | 41 | throw new \ErrorException($message, 0, $severity, $file, $line, null); |
42 | 42 | } |
43 | 43 | ); |
@@ -46,7 +46,7 @@ |
||
46 | 46 | { |
47 | 47 | $this->generate(); |
48 | 48 | |
49 | - $this->generatedPages->map(function (\Cecil\Collection\Page\Page $page) { |
|
49 | + $this->generatedPages->map(function(\Cecil\Collection\Page\Page $page) { |
|
50 | 50 | if (!$page->hasVariable('language')) { |
51 | 51 | $page->setVariable('language', $this->config->getLanguageDefault()); |
52 | 52 | } |
@@ -332,7 +332,7 @@ |
||
332 | 332 | throw new Exception('GD extension is required to use images resize.'); |
333 | 333 | } |
334 | 334 | $img = ImageManager::make($this->data['source']); |
335 | - $img->resize($size, null, function (\Intervention\Image\Constraint $constraint) { |
|
335 | + $img->resize($size, null, function(\Intervention\Image\Constraint $constraint) { |
|
336 | 336 | $constraint->aspectRatio(); |
337 | 337 | $constraint->upsize(); |
338 | 338 | }); |