Passed
Push — dependabot/composer/symfony/se... ( 9dd8e0 )
by
unknown
21:25 queued 15:54
created
src/Renderer/Layout.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,8 +113,8 @@
 block discarded – undo
113 113
             case PageType::TERM:
114 114
                 $layouts = [
115 115
                     // "taxonomy/$term.$format.twig", // ie: taxonomy/velo.html.twig
116
-                    "_default/term.$format.twig",     // ie: _default/term.html.twig
117
-                    "_default/list.$format.twig",     // ie: _default/list.html.twig
116
+                    "_default/term.$format.twig", // ie: _default/term.html.twig
117
+                    "_default/list.$format.twig", // ie: _default/list.html.twig
118 118
                 ];
119 119
                 if ($page->getVariable('term')) {
120 120
                     $layouts = array_merge(
Please login to merge, or discard this patch.
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/Step/MenusCreate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
         $count = 0;
107 107
 
108 108
         $filteredPages = $this->builder->getPages()
109
-            ->filter(function (Page $page) {
109
+            ->filter(function(Page $page) {
110 110
                 if ($page->getVariable('menu')) {
111 111
                     return true;
112 112
                 }
Please login to merge, or discard this patch.
src/Step/DataLoad.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         foreach ($files as $file) {
68 68
             $count++;
69 69
             set_error_handler(
70
-                function ($severity, $message, $file, $line) {
70
+                function($severity, $message, $file, $line) {
71 71
                     throw new \ErrorException($message, 0, $severity, $file, $line, null);
72 72
                 }
73 73
             );
Please login to merge, or discard this patch.
src/Renderer/Site.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
      */
112 112
     public function getPages(): \Cecil\Collection\Page\Collection
113 113
     {
114
-        return $this->builder->getPages()->filter(function (Page $page) {
114
+        return $this->builder->getPages()->filter(function(Page $page) {
115 115
             return $page->getVariable('published');
116 116
         });
117 117
     }
Please login to merge, or discard this patch.
src/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
          * Overrides configuration with environment variables.
57 57
          */
58 58
         $data = $this->getData();
59
-        $applyEnv = function ($array) use ($data) {
59
+        $applyEnv = function($array) use ($data) {
60 60
             $iterator = new \RecursiveIteratorIterator(
61 61
                 new \RecursiveArrayIterator($array),
62 62
                 \RecursiveIteratorIterator::SELF_FIRST
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/Pagination.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 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 */
Please login to merge, or discard this patch.