Passed
Push — fix/homepage ( 727ce5 )
by Arnaud
09:03 queued 04:10
created
src/Util/File.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     public static function fileGetContents($filename, $userAgent = false)
43 43
     {
44 44
         set_error_handler(
45
-            function ($severity, $message, $file, $line) {
45
+            function($severity, $message, $file, $line) {
46 46
                 throw new \ErrorException($message, 0, $severity, $file, $line, null);
47 47
             }
48 48
         );
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
@@ -136,8 +136,8 @@
 block discarded – undo
136 136
             case PageType::TERM:
137 137
                 $layouts = [
138 138
                     // "taxonomy/$term.$format.$ext", // ie: taxonomy/velo.html.twig
139
-                    "_default/term.$format.$ext",     // ie: _default/term.html.twig
140
-                    "_default/list.$format.$ext",     // ie: _default/list.html.twig
139
+                    "_default/term.$format.$ext", // ie: _default/term.html.twig
140
+                    "_default/list.$format.$ext", // ie: _default/list.html.twig
141 141
                 ];
142 142
                 if ($page->getVariable('term')) {
143 143
                     $layouts = array_merge(
Please login to merge, or discard this patch.
src/Collection/Page/Collection.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public function all(): self
26 26
     {
27
-        $filteredPages = $this->filter(function (Page $page) {
27
+        $filteredPages = $this->filter(function(Page $page) {
28 28
             if ($page->isVirtual() === false && $page->getVariable('exclude') !== true) {
29 29
                 return true;
30 30
             }
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function sortByDate(): self
42 42
     {
43
-        return $this->usort(function ($a, $b) {
43
+        return $this->usort(function($a, $b) {
44 44
             if ($a['date'] == $b['date']) {
45 45
                 return 0;
46 46
             }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function sortByTitle(): self
58 58
     {
59
-        return $this->usort(function ($a, $b) {
59
+        return $this->usort(function($a, $b) {
60 60
             return strnatcmp($a['title'], $b['title']);
61 61
         });
62 62
     }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     public function sortByWeight(): self
70 70
     {
71
-        return $this->usort(function ($a, $b) {
71
+        return $this->usort(function($a, $b) {
72 72
             if ($a['weight'] == $b['weight']) {
73 73
                 return 0;
74 74
             }
Please login to merge, or discard this patch.
src/Generator/Homepage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function generate(): void
25 25
     {
26
-        $subPages = $this->builder->getPages()->filter(function (Page $page) {
26
+        $subPages = $this->builder->getPages()->filter(function(Page $page) {
27 27
             return $page->getType() == TYPE::PAGE
28 28
                 && $page->isVirtual() === false // excludes virtual pages
29 29
                 && $page->getVariable('exclude') !== true;
Please login to merge, or discard this patch.