Passed
Push — nested-sections ( 2d40b2...7dbf34 )
by Arnaud
12:03 queued 05:37
created
src/Renderer/Layout.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,8 +131,8 @@
 block discarded – undo
131 131
                 $layouts = [
132 132
                     // "taxonomy/$term.$format.$ext",     // e.g.: taxonomy/velo.html.twig
133 133
                     // "taxonomy/$singular.$format.$ext", // e.g.: taxonomy/tag.html.twig
134
-                    "_default/term.$format.$ext",         // e.g.: _default/term.html.twig
135
-                    "_default/list.$format.$ext",         // e.g.: _default/list.html.twig
134
+                    "_default/term.$format.$ext", // e.g.: _default/term.html.twig
135
+                    "_default/list.$format.$ext", // e.g.: _default/list.html.twig
136 136
                 ];
137 137
                 if ($page->hasVariable('term')) {
138 138
                     $layouts = array_merge(["taxonomy/{$page->getVariable('term')}.$format.$ext"], $layouts);
Please login to merge, or discard this patch.
src/Logger/PrintLogger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     /**
47 47
      * {@inheritdoc}
48 48
      */
49
-    public function log($level, string|\Stringable $message, array $context = []): void
49
+    public function log($level, string | \Stringable $message, array $context = []): void
50 50
     {
51 51
         if (!isset($this->verbosityLevelMap[$level])) {
52 52
             throw new InvalidArgumentException(sprintf('The log level "%s" does not exist.', $level));
Please login to merge, or discard this patch.
src/Logger/ConsoleLogger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     /**
61 61
      * {@inheritdoc}
62 62
      */
63
-    public function log($level, string|\Stringable $message, array $context = []): void
63
+    public function log($level, string | \Stringable $message, array $context = []): void
64 64
     {
65 65
         $output = $this->output;
66 66
         $output->getFormatter()->setStyle('text', new OutputFormatterStyle('white'));
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
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
     /**
142 142
      * Adds navigation (next and prev) to section subpages.
143 143
      */
144
-    protected function addNavigationLinks(PagesCollection $pages, string|null $sortBy = null, bool $circular = false): void
144
+    protected function addNavigationLinks(PagesCollection $pages, string | null $sortBy = null, bool $circular = false): void
145 145
     {
146 146
         $pagesAsArray = $pages->toArray();
147 147
         if ($sortBy === null || $sortBy == 'date' || $sortBy == 'updated') {
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
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     /**
50 50
      * Sorts pages by.
51 51
      */
52
-    public function sortBy(array|string|null $options): self
52
+    public function sortBy(array | string | null $options): self
53 53
     {
54 54
         /*
55 55
          * $options: date|updated|title|weight
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     /**
71 71
      * Sorts pages by date (or 'updated'): the most recent first.
72 72
      */
73
-    public function sortByDate(array|string|null $options = null): self
73
+    public function sortByDate(array | string | null $options = null): self
74 74
     {
75 75
         $opt = [];
76 76
         // backward compatibility (i.e. $options = 'updated')
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     /**
105 105
      * Sorts pages by title (natural sort).
106 106
      */
107
-    public function sortByTitle(array|string|null $options = null): self
107
+    public function sortByTitle(array | string | null $options = null): self
108 108
     {
109 109
         $opt = [];
110 110
         // options
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     /**
119 119
      * Sorts by weight (the heaviest first).
120 120
      */
121
-    public function sortByWeight(array|string|null $options = null): self
121
+    public function sortByWeight(array | string | null $options = null): self
122 122
     {
123 123
         $opt = [];
124 124
         // options
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
@@ -387,7 +387,7 @@
 block discarded – undo
387 387
      *
388 388
      * @throws RuntimeException
389 389
      */
390
-    public function getOutputFormatProperty(string $name, string $property): string|array|null
390
+    public function getOutputFormatProperty(string $name, string $property): string | array | null
391 391
     {
392 392
         $properties = array_column((array) $this->get('output.formats'), $property, 'name');
393 393
 
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
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
     /**
185 185
      * Returns the property value(s) of an output format.
186 186
      */
187
-    public function getOutputProperty(string $name, string $property): string|array|null
187
+    public function getOutputProperty(string $name, string $property): string | array | null
188 188
     {
189 189
         return $this->config->getOutputFormatProperty($name, $property);
190 190
     }
Please login to merge, or discard this patch.
src/Assets/Asset.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      *
60 60
      * @throws RuntimeException
61 61
      */
62
-    public function __construct(Builder $builder, string|array $paths, array|null $options = null)
62
+    public function __construct(Builder $builder, string | array $paths, array | null $options = null)
63 63
     {
64 64
         $this->builder = $builder;
65 65
         $this->config = $builder->getConfig();
@@ -76,22 +76,22 @@  discard block
 block discarded – undo
76 76
             }
77 77
         });
78 78
         $this->data = [
79
-            'file'           => '',    // absolute file path
80
-            'files'          => [],    // array of files path (if bundle)
81
-            'filename'       => '',    // filename
82
-            'path_source'    => '',    // public path to the file, before transformations
83
-            'path'           => '',    // public path to the file, after transformations
84
-            'url'            => null,  // URL of a remote image
79
+            'file'           => '', // absolute file path
80
+            'files'          => [], // array of files path (if bundle)
81
+            'filename'       => '', // filename
82
+            'path_source'    => '', // public path to the file, before transformations
83
+            'path'           => '', // public path to the file, after transformations
84
+            'url'            => null, // URL of a remote image
85 85
             'missing'        => false, // if file not found, but missing ollowed 'missing' is true
86
-            'ext'            => '',    // file extension
87
-            'type'           => '',    // file type (e.g.: image, audio, video, etc.)
88
-            'subtype'        => '',    // file media type (e.g.: image/png, audio/mp3, etc.)
89
-            'size'           => 0,     // file size (in bytes)
90
-            'content_source' => '',    // file content, before transformations
91
-            'content'        => '',    // file content, after transformations
92
-            'width'          => 0,     // width (in pixels) in case of an image
93
-            'height'         => 0,     // height (in pixels) in case of an image
94
-            'exif'           => [],    // exif data
86
+            'ext'            => '', // file extension
87
+            'type'           => '', // file type (e.g.: image, audio, video, etc.)
88
+            'subtype'        => '', // file media type (e.g.: image/png, audio/mp3, etc.)
89
+            'size'           => 0, // file size (in bytes)
90
+            'content_source' => '', // file content, before transformations
91
+            'content'        => '', // file content, after transformations
92
+            'width'          => 0, // width (in pixels) in case of an image
93
+            'height'         => 0, // height (in pixels) in case of an image
94
+            'exif'           => [], // exif data
95 95
         ];
96 96
 
97 97
         // handles options
Please login to merge, or discard this patch.
src/Renderer/Extension/Core.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -280,7 +280,7 @@
 block discarded – undo
280 280
      *
281 281
      * @return Asset
282 282
      */
283
-    public function asset($path, array|null $options = null): Asset
283
+    public function asset($path, array | null $options = null): Asset
284 284
     {
285 285
         if (!\is_string($path) && !\is_array($path)) {
286 286
             throw new RuntimeException(sprintf('Argument of "%s()" must a string or an array.', \Cecil\Util::formatMethodName(__METHOD__)));
Please login to merge, or discard this patch.