@@ -128,7 +128,7 @@ |
||
128 | 128 | // file as a prefix? |
129 | 129 | if (false !== self::getPrefix($this->fileId)) { |
130 | 130 | // prefix is a valid date? |
131 | - $isValidDate = function ($date, $format = 'Y-m-d') { |
|
131 | + $isValidDate = function($date, $format = 'Y-m-d') { |
|
132 | 132 | $d = \DateTime::createFromFormat($format, $date); |
133 | 133 | |
134 | 134 | return $d && $d->format($format) === $date; |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | */ |
117 | 117 | public function filterBy(PageCollection $pages, string $variable, string $value): CollectionInterface |
118 | 118 | { |
119 | - $filteredPages = $pages->filter(function (Page $page) use ($variable, $value) { |
|
119 | + $filteredPages = $pages->filter(function(Page $page) use ($variable, $value) { |
|
120 | 120 | // dedicated getter? |
121 | 121 | $method = 'get'.ucfirst($variable); |
122 | 122 | if (method_exists($page, $method) && $page->$method() == $value) { |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | */ |
159 | 159 | public function sortByWeight($array) |
160 | 160 | { |
161 | - $callback = function ($a, $b) { |
|
161 | + $callback = function($a, $b) { |
|
162 | 162 | if (!isset($a['weight'])) { |
163 | 163 | return 1; |
164 | 164 | } |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | */ |
192 | 192 | public function sortByDate($array) |
193 | 193 | { |
194 | - $callback = function ($a, $b) { |
|
194 | + $callback = function($a, $b) { |
|
195 | 195 | if (!isset($a['date'])) { |
196 | 196 | return -1; |
197 | 197 | } |