@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | */ |
127 | 127 | public function filterBy(PagesCollection $pages, string $variable, string $value): CollectionInterface |
128 | 128 | { |
129 | - $filteredPages = $pages->filter(function (Page $page) use ($variable, $value) { |
|
129 | + $filteredPages = $pages->filter(function(Page $page) use ($variable, $value) { |
|
130 | 130 | $notVirtual = false; |
131 | 131 | // not virtual only |
132 | 132 | if (!$page->isVirtual()) { |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | */ |
174 | 174 | public function sortByWeight($collection): array |
175 | 175 | { |
176 | - $callback = function ($a, $b) { |
|
176 | + $callback = function($a, $b) { |
|
177 | 177 | if (!isset($a['weight'])) { |
178 | 178 | return 1; |
179 | 179 | } |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | */ |
207 | 207 | public function sortByDate($collection): array |
208 | 208 | { |
209 | - $callback = function ($a, $b) { |
|
209 | + $callback = function($a, $b) { |
|
210 | 210 | if (!isset($a['date'])) { |
211 | 211 | return -1; |
212 | 212 | } |
@@ -88,7 +88,7 @@ |
||
88 | 88 | // resize |
89 | 89 | if (!Util::getFS()->exists($destination)) { |
90 | 90 | $img = ImageManager::make($source); |
91 | - $img->resize($size, null, function (\Intervention\Image\Constraint $constraint) { |
|
91 | + $img->resize($size, null, function(\Intervention\Image\Constraint $constraint) { |
|
92 | 92 | $constraint->aspectRatio(); |
93 | 93 | $constraint->upsize(); |
94 | 94 | }); |