Passed
Push — figcaption ( 0b8c0c...10fd5a )
by Arnaud
08:26 queued 05:24
created
src/Collection/Collection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     protected function searchItem(string $id): ?array
68 68
     {
69
-        return array_filter($this->items, function (ItemInterface $item) use ($id) {
69
+        return array_filter($this->items, function(ItemInterface $item) use ($id) {
70 70
             return $item->getId() == $id;
71 71
         });
72 72
     }
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
      */
241 241
     public function usort(\Closure $callback = null): CollectionInterface
242 242
     {
243
-        $callback ? usort($this->items, $callback) : usort($this->items, function ($a, $b) {
243
+        $callback ? usort($this->items, $callback) : usort($this->items, function($a, $b) {
244 244
             if ($a == $b) {
245 245
                 return 0;
246 246
             }
Please login to merge, or discard this patch.
src/Command/ShowContent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         $dataDir = (string) $this->getBuilder()->getConfig()->get('data.dir');
52 52
 
53 53
         // formating output
54
-        $unicodeTreePrefix = function (RecursiveTreeIterator $tree) {
54
+        $unicodeTreePrefix = function(RecursiveTreeIterator $tree) {
55 55
             $prefixParts = [
56 56
                 RecursiveTreeIterator::PREFIX_LEFT         => ' ',
57 57
                 RecursiveTreeIterator::PREFIX_MID_HAS_NEXT => '│ ',
Please login to merge, or discard this patch.
src/Generator/ExternalBody.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function generate(): void
27 27
     {
28
-        $filteredPages = $this->builder->getPages()->filter(function (Page $page) {
28
+        $filteredPages = $this->builder->getPages()->filter(function(Page $page) {
29 29
             return null !== $page->getVariable('external');
30 30
         });
31 31
 
Please login to merge, or discard this patch.
src/Generator/Redirect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function generate(): void
24 24
     {
25
-        $filteredPages = $this->builder->getPages()->filter(function (Page $page) {
25
+        $filteredPages = $this->builder->getPages()->filter(function(Page $page) {
26 26
             return null !== $page->getVariable('redirect')
27 27
                 && $page->getVariable('layout') != 'redirect';
28 28
         });
Please login to merge, or discard this patch.
src/Generator/Pagination.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         }
30 30
 
31 31
         // filters pages: home, sections and terms
32
-        $filteredPages = $this->builder->getPages()->filter(function (Page $page) {
32
+        $filteredPages = $this->builder->getPages()->filter(function(Page $page) {
33 33
             return in_array($page->getType(), [Type::HOMEPAGE, Type::SECTION, Type::TERM]);
34 34
         });
35 35
         /** @var Page $page */
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
                     $paginationPath = $pagePagination['path'];
59 59
                 }
60 60
             }
61
-            $pages = $pages->filter(function (Page $page) {
61
+            $pages = $pages->filter(function(Page $page) {
62 62
                 return $page->getVariable('published');
63 63
             });
64 64
             $pagesTotal = count($pages);
Please login to merge, or discard this patch.
src/Generator/Section.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
                     /** @var \Cecil\Collection\Page\Page $page */
62 62
                     if ($page->hasVariable('cascade')) {
63 63
                         $cascade = $page->getVariable('cascade');
64
-                        $pages->map(function (Page $page) use ($cascade) {
64
+                        $pages->map(function(Page $page) use ($cascade) {
65 65
                             foreach ($cascade as $key => $value) {
66 66
                                 if (!$page->hasVariable($key)) {
67 67
                                     $page->setVariable($key, $value);
Please login to merge, or discard this patch.
src/Step/Taxonomies/Create.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
          * Overrides configuration with environment variables.
63 63
          */
64 64
         $data = $this->getData();
65
-        $applyEnv = function ($array) use ($data) {
65
+        $applyEnv = function($array) use ($data) {
66 66
             $iterator = new \RecursiveIteratorIterator(
67 67
                 new \RecursiveArrayIterator($array),
68 68
                 \RecursiveIteratorIterator::SELF_FIRST
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
             throw new RuntimeException(\sprintf('The default language "%s" is not listed in "languages" key configuration.', $this->getLanguageDefault()));
445 445
         }
446 446
 
447
-        $languages = array_filter($languages, function ($language) {
447
+        $languages = array_filter($languages, function($language) {
448 448
             return !(isset($language['enabled']) && $language['enabled'] === false);
449 449
         });
450 450
 
Please login to merge, or discard this patch.
src/Renderer/Layout.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -141,8 +141,8 @@
 block discarded – undo
141 141
             case PageType::TERM:
142 142
                 $layouts = [
143 143
                     // "taxonomy/$term.$format.$ext", // ie: taxonomy/velo.html.twig
144
-                    "_default/term.$format.$ext",     // ie: _default/term.html.twig
145
-                    "_default/list.$format.$ext",     // ie: _default/list.html.twig
144
+                    "_default/term.$format.$ext", // ie: _default/term.html.twig
145
+                    "_default/list.$format.$ext", // ie: _default/list.html.twig
146 146
                 ];
147 147
                 if ($page->hasVariable('term')) {
148 148
                     $layouts = array_merge(
Please login to merge, or discard this patch.