Passed
Push — configuration ( 924d1e...7c80f4 )
by Arnaud
13:18 queued 09:25
created
Category
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.
config/default.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         ],
48 48
     ],
49 49
     'theme' => [], // no theme(s) by default
50
-    'taxonomies'   => [ // default taxonomies
50
+    'taxonomies'   => [// default taxonomies
51 51
         'tags'       => 'tag',
52 52
         'categories' => 'category', // can be disabled with the special "disabled" value
53 53
     ],
@@ -114,9 +114,9 @@  discard block
 block discarded – undo
114 114
                 ],
115 115
                 'external' => [
116 116
                     'blank'      => false, // if true open external link in new tab
117
-                    'noopener'   => true,  // add "noopener" to `rel`  attribute
118
-                    'noreferrer' => true,  // add "noreferrer" to `rel`  attribute
119
-                    'nofollow'   => true,  // add "nofollow" to `rel`  attribute
117
+                    'noopener'   => true, // add "noopener" to `rel`  attribute
118
+                    'noreferrer' => true, // add "noreferrer" to `rel`  attribute
119
+                    'nofollow'   => true, // add "nofollow" to `rel`  attribute
120 120
                 ]
121 121
             ],
122 122
             'excerpt' => [
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                 'capture'   => 'before', // part to capture, `before` or `after` the separator (`before` by default)
125 125
             ],
126 126
         ],
127
-        'generators' => [ // list of pages generators class, ordered by weight
127
+        'generators' => [// list of pages generators class, ordered by weight
128 128
             10 => 'Cecil\Generator\DefaultPages',
129 129
             20 => 'Cecil\Generator\VirtualPages',
130 130
             30 => 'Cecil\Generator\ExternalBody',
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
             80 => 'Cecil\Generator\Alias',
136 136
             90 => 'Cecil\Generator\Redirect',
137 137
         ],
138
-        'default' => [ // default generated pages
138
+        'default' => [// default generated pages
139 139
             'index' => [
140 140
                 'path'      => '',
141 141
                 'title'     => 'Home',
@@ -232,9 +232,9 @@  discard block
 block discarded – undo
232 232
             ],
233 233
             'formats' => [], // `html` filter: creates and adds formats images as `source` (empty by default)
234 234
             'cdn' => [
235
-                'enabled'   => false,  // enables Image CDN (`false` by default)
236
-                'canonical' => true,   // is `image_url` must be canonical or not (`true` by default)
237
-                'remote'    => true,   // includes remote images (`true` by default)
235
+                'enabled'   => false, // enables Image CDN (`false` by default)
236
+                'canonical' => true, // is `image_url` must be canonical or not (`true` by default)
237
+                'remote'    => true, // includes remote images (`true` by default)
238 238
                 //'account'   => 'xxxx', // provider account
239 239
                 // Cloudinary
240 240
                 //'url'       => 'https://res.cloudinary.com/%account%/image/fetch/c_limit,w_%width%,q_%quality%,f_%format%,d_default/%image_url%',
@@ -253,14 +253,14 @@  discard block
 block discarded – undo
253 253
         'internal' => [
254 254
             'dir' => 'resources/layouts', // internal templates directory
255 255
         ],
256
-        'translations' => [ // i18n
256
+        'translations' => [// i18n
257 257
             'dir'      => 'translations', // translations files directory (`translations` by default)
258 258
             'formats'  => ['yaml', 'mo'], // translations supported formats (`yaml` and `mo`)
259 259
             'internal' => [
260 260
                 'dir' => 'resources/translations', // internal translations directory
261 261
             ],
262 262
         ],
263
-        'extensions' => [ // list of Twig extensions class
263
+        'extensions' => [// list of Twig extensions class
264 264
             //'Name' => 'Cecil\Renderer\Extension\Class',
265 265
         ],
266 266
     ],
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
     // output formats and post process
276 276
     'output' => [
277 277
         'dir'      => '_site', // output directory (`_site` by default)
278
-        'formats'  => [ // https://cecil.app/documentation/configuration/#formats
278
+        'formats'  => [// https://cecil.app/documentation/configuration/#formats
279 279
             // e.g.: blog/post-1/index.html
280 280
             [
281 281
                 'name'      => 'html',
@@ -371,14 +371,14 @@  discard block
 block discarded – undo
371 371
                 'exclude'   => ['redirect', 'paginated'],
372 372
             ],
373 373
         ],
374
-        'pagetypeformats' => [ // formats applied by page type
374
+        'pagetypeformats' => [// formats applied by page type
375 375
             'page'       => ['html'],
376 376
             'homepage'   => ['html', 'atom'],
377 377
             'section'    => ['html', 'atom'],
378 378
             'vocabulary' => ['html'],
379 379
             'term'       => ['html', 'atom'],
380 380
         ],
381
-        'postprocessors' => [ // list of output post processors class
381
+        'postprocessors' => [// list of output post processors class
382 382
             'GeneratorMetaTag' => 'Cecil\Renderer\PostProcessor\GeneratorMetaTag',
383 383
             'HtmlExcerpt'      => 'Cecil\Renderer\PostProcessor\HtmlExcerpt',
384 384
             'MarkdownLink'     => 'Cecil\Renderer\PostProcessor\MarkdownLink',
Please login to merge, or discard this patch.
src/Renderer/Twig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
             switch ($name) {
117 117
                 case 'localizeddate':
118 118
                     return new \Twig\TwigFilter($name, function (?\DateTime $value = null) {
119
-                        return date($this->builder->getConfig()->get('date.format', default: 'F j, Y'), $value->getTimestamp());
119
+                        return date($this->builder->getConfig()->get('date.format', default : 'F j, Y'), $value->getTimestamp());
120 120
                     });
121 121
             }
122 122
 
Please login to merge, or discard this patch.
src/Step/Pages/Convert.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
      */
106 106
     public function convertPage(Builder $builder, Page $page, ?string $format = null, ?ConverterInterface $converter = null): Page
107 107
     {
108
-        $format = $format ?? (string) $builder->getConfig()->get('pages.frontmatter.format', default: 'yaml');
108
+        $format = $format ?? (string) $builder->getConfig()->get('pages.frontmatter.format', default : 'yaml');
109 109
         $converter = $converter ?? new Converter($builder);
110 110
 
111 111
         // converts front matter
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
@@ -333,7 +333,7 @@
 block discarded – undo
333 333
      *
334 334
      * @throws ConfigException
335 335
      */
336
-    public function getOutputFormatProperty(string $name, string $property): string|array|null
336
+    public function getOutputFormatProperty(string $name, string $property): string | array | null
337 337
     {
338 338
         $properties = array_column((array) $this->get('output.formats'), $property, 'name');
339 339
 
Please login to merge, or discard this patch.