Passed
Push — fix/exclude ( 0aa06c...aacaee )
by Arnaud
09:51 queued 06:19
created
src/Util.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public static function joinPath(string ...$path): string
46 46
     {
47
-        array_walk($path, function (&$value, $key) {
47
+        array_walk($path, function(&$value, $key) {
48 48
             $value = str_replace('\\', '/', $value);
49 49
             $value = rtrim($value, '/');
50 50
             $value = $key == 0 ? $value : ltrim($value, '/');
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public static function joinFile(string ...$path): string
64 64
     {
65
-        array_walk($path, function (&$value, $key) use (&$path) {
65
+        array_walk($path, function(&$value, $key) use (&$path) {
66 66
             $value = str_replace(['\\', '/'], [DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR], $value);
67 67
             $value = rtrim($value, DIRECTORY_SEPARATOR);
68 68
             $value = $key == 0 ? $value : ltrim($value, DIRECTORY_SEPARATOR);
Please login to merge, or discard this patch.
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.