Passed
Push — dependabot/composer/phpstan/ph... ( 16f46e )
by
unknown
14:32
created
src/Renderer/Extension/Core.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -282,7 +282,7 @@
 block discarded – undo
282 282
      *
283 283
      * @return Asset
284 284
      */
285
-    public function asset($path, array|null $options = null): Asset
285
+    public function asset($path, array | null $options = null): Asset
286 286
     {
287 287
         if (!\is_string($path) && !\is_array($path)) {
288 288
             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.
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',
@@ -234,9 +234,9 @@  discard block
 block discarded – undo
234 234
             ],
235 235
             'formats' => [], // `html` filter: creates and adds formats images as `source` (empty by default)
236 236
             'cdn' => [
237
-                'enabled'   => false,  // enables Image CDN (`false` by default)
238
-                'canonical' => true,   // is `image_url` must be canonical or not (`true` by default)
239
-                'remote'    => true,   // includes remote images (`true` by default)
237
+                'enabled'   => false, // enables Image CDN (`false` by default)
238
+                'canonical' => true, // is `image_url` must be canonical or not (`true` by default)
239
+                'remote'    => true, // includes remote images (`true` by default)
240 240
                 //'account'   => 'xxxx', // provider account
241 241
                 // Cloudinary
242 242
                 //'url'       => 'https://res.cloudinary.com/%account%/image/fetch/c_limit,w_%width%,q_%quality%,f_%format%,d_default/%image_url%',
@@ -255,14 +255,14 @@  discard block
 block discarded – undo
255 255
         'internal' => [
256 256
             'dir' => 'resources/layouts', // internal templates directory
257 257
         ],
258
-        'translations' => [ // i18n
258
+        'translations' => [// i18n
259 259
             'dir'      => 'translations', // translations files directory (`translations` by default)
260 260
             'formats'  => ['yaml', 'mo'], // translations supported formats (`yaml` and `mo`)
261 261
             'internal' => [
262 262
                 'dir' => 'resources/translations', // internal translations directory
263 263
             ],
264 264
         ],
265
-        'extensions' => [ // list of Twig extensions class
265
+        'extensions' => [// list of Twig extensions class
266 266
             //'Name' => 'Cecil\Renderer\Extension\Class',
267 267
         ],
268 268
     ],
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
     // output formats and post process
278 278
     'output' => [
279 279
         'dir'      => '_site', // output directory (`_site` by default)
280
-        'formats'  => [ // https://cecil.app/documentation/configuration/#formats
280
+        'formats'  => [// https://cecil.app/documentation/configuration/#formats
281 281
             // e.g.: blog/post-1/index.html
282 282
             -1 => [
283 283
                 'name'      => 'html',
@@ -373,14 +373,14 @@  discard block
 block discarded – undo
373 373
                 'exclude'   => ['redirect', 'paginated'],
374 374
             ],
375 375
         ],
376
-        'pagetypeformats' => [ // formats applied by page type
376
+        'pagetypeformats' => [// formats applied by page type
377 377
             'page'       => ['html'],
378 378
             'homepage'   => ['html', 'atom'],
379 379
             'section'    => ['html', 'atom'],
380 380
             'vocabulary' => ['html'],
381 381
             'term'       => ['html', 'atom'],
382 382
         ],
383
-        'postprocessors' => [ // list of output post processors class
383
+        'postprocessors' => [// list of output post processors class
384 384
             'GeneratorMetaTag' => 'Cecil\Renderer\PostProcessor\GeneratorMetaTag',
385 385
             'HtmlExcerpt'      => 'Cecil\Renderer\PostProcessor\HtmlExcerpt',
386 386
             'MarkdownLink'     => 'Cecil\Renderer\PostProcessor\MarkdownLink',
Please login to merge, or discard this patch.