@@ -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 */ |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | $message = sprintf('"%s" theme: no config file', $theme); |
| 45 | 45 | if (Util::getFS()->exists($themeConfigFile)) { |
| 46 | 46 | set_error_handler( |
| 47 | - function ($severity, $message, $file, $line) { |
|
| 47 | + function($severity, $message, $file, $line) { |
|
| 48 | 48 | throw new \ErrorException($message, 0, $severity, $file, $line, null); |
| 49 | 49 | } |
| 50 | 50 | ); |
@@ -114,7 +114,7 @@ |
||
| 114 | 114 | { |
| 115 | 115 | if (!Util::getFS()->exists($this->destination)) { |
| 116 | 116 | $img = ImageManager::make($this->source); |
| 117 | - $img->resize($this->size, null, function (\Intervention\Image\Constraint $constraint) { |
|
| 117 | + $img->resize($this->size, null, function(\Intervention\Image\Constraint $constraint) { |
|
| 118 | 118 | $constraint->aspectRatio(); |
| 119 | 119 | $constraint->upsize(); |
| 120 | 120 | }); |