Passed
Push — fix/meta-generator ( 66b381 )
by Arnaud
05:12
created
src/Renderer/Twig/Extension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
      */
201 201
     public function filterBy(PagesCollection $pages, string $variable, string $value): CollectionInterface
202 202
     {
203
-        $filteredPages = $pages->filter(function (Page $page) use ($variable, $value) {
203
+        $filteredPages = $pages->filter(function(Page $page) use ($variable, $value) {
204 204
             $notVirtual = false;
205 205
             if (!$page->isVirtual()) {
206 206
                 $notVirtual = true;
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
      */
243 243
     public function sortByWeight(\Traversable $collection): array
244 244
     {
245
-        $callback = function ($a, $b) {
245
+        $callback = function($a, $b) {
246 246
             if (!isset($a['weight'])) {
247 247
                 $a['weight'] = 0;
248 248
             }
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
      */
272 272
     public function sortByDate(\Traversable $collection): array
273 273
     {
274
-        $callback = function ($a, $b) {
274
+        $callback = function($a, $b) {
275 275
             if (!isset($a['date'])) {
276 276
                 return -1;
277 277
             }
Please login to merge, or discard this patch.