Passed
Push — dependabot/composer/phpstan/ph... ( 7ec445 )
by
unknown
05:23
created
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.
src/Command/AbstractCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
     /**
156 156
      * Returns the configuration file name or path, if file exists, otherwise default name or false.
157 157
      */
158
-    protected function findConfigFile(string $nameOrPath): string|false
158
+    protected function findConfigFile(string $nameOrPath): string | false
159 159
     {
160 160
         $config = [
161 161
             'name' => self::CONFIG_FILE[0],
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' => [],
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
     ],
@@ -113,9 +113,9 @@  discard block
 block discarded – undo
113 113
                 ],
114 114
                 'external' => [
115 115
                     'blank'      => false, // if true open external link in new tab
116
-                    'noopener'   => true,  // add "noopener" to `rel`  attribute
117
-                    'noreferrer' => true,  // add "noreferrer" to `rel`  attribute
118
-                    'nofollow'   => true,  // add "nofollow" to `rel`  attribute
116
+                    'noopener'   => true, // add "noopener" to `rel`  attribute
117
+                    'noreferrer' => true, // add "noreferrer" to `rel`  attribute
118
+                    'nofollow'   => true, // add "nofollow" to `rel`  attribute
119 119
                 ]
120 120
             ],
121 121
             'excerpt' => [
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
                 'capture'   => 'before', // part to capture, `before` or `after` the separator (`before` by default)
124 124
             ],
125 125
         ],
126
-        'generators' => [ // list of pages generators class, ordered by weight
126
+        'generators' => [// list of pages generators class, ordered by weight
127 127
             10 => 'Cecil\Generator\DefaultPages',
128 128
             20 => 'Cecil\Generator\VirtualPages',
129 129
             30 => 'Cecil\Generator\ExternalBody',
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
             80 => 'Cecil\Generator\Alias',
135 135
             90 => 'Cecil\Generator\Redirect',
136 136
         ],
137
-        'default' => [ // default generated pages
137
+        'default' => [// default generated pages
138 138
             'index' => [
139 139
                 'path'      => '',
140 140
                 'title'     => 'Home',
@@ -233,9 +233,9 @@  discard block
 block discarded – undo
233 233
             ],
234 234
             'formats' => [], // `html` filter: creates and adds formats images as `source` (empty by default)
235 235
             'cdn' => [
236
-                'enabled'   => false,  // enables Image CDN (`false` by default)
237
-                'canonical' => true,   // is `image_url` must be canonical or not (`true` by default)
238
-                'remote'    => true,   // includes remote images (`true` by default)
236
+                'enabled'   => false, // enables Image CDN (`false` by default)
237
+                'canonical' => true, // is `image_url` must be canonical or not (`true` by default)
238
+                'remote'    => true, // includes remote images (`true` by default)
239 239
                 //'account'   => 'xxxx', // provider account
240 240
                 // Cloudinary
241 241
                 //'url'       => 'https://res.cloudinary.com/%account%/image/fetch/c_limit,w_%width%,q_%quality%,f_%format%,d_default/%image_url%',
@@ -254,14 +254,14 @@  discard block
 block discarded – undo
254 254
         'internal' => [
255 255
             'dir' => 'resources/layouts', // internal templates directory
256 256
         ],
257
-        'translations' => [ // i18n
257
+        'translations' => [// i18n
258 258
             'dir'      => 'translations', // translations files directory (`translations` by default)
259 259
             'formats'  => ['yaml', 'mo'], // translations supported formats (`yaml` and `mo`)
260 260
             'internal' => [
261 261
                 'dir' => 'resources/translations', // internal translations directory
262 262
             ],
263 263
         ],
264
-        'extensions' => [ // list of Twig extensions class
264
+        'extensions' => [// list of Twig extensions class
265 265
             //'Name' => 'Cecil\Renderer\Extension\Class',
266 266
         ],
267 267
     ],
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
     ],
272 272
     'output' => [
273 273
         'dir'      => '_site', // output directory (`_site` by default)
274
-        'formats'  => [ // https://cecil.app/documentation/configuration/#formats
274
+        'formats'  => [// https://cecil.app/documentation/configuration/#formats
275 275
             // e.g.: blog/post-1/index.html
276 276
             -1 => [
277 277
                 'name'      => 'html',
@@ -367,14 +367,14 @@  discard block
 block discarded – undo
367 367
                 'exclude'   => ['redirect', 'paginated'],
368 368
             ],
369 369
         ],
370
-        'pagetypeformats' => [ // formats applied by page type
370
+        'pagetypeformats' => [// formats applied by page type
371 371
             'page'       => ['html'],
372 372
             'homepage'   => ['html', 'atom'],
373 373
             'section'    => ['html', 'atom'],
374 374
             'vocabulary' => ['html'],
375 375
             'term'       => ['html', 'atom'],
376 376
         ],
377
-        'postprocessors' => [ // list of output post processors class
377
+        'postprocessors' => [// list of output post processors class
378 378
             'GeneratorMetaTag' => 'Cecil\Renderer\PostProcessor\GeneratorMetaTag',
379 379
             'HtmlExcerpt'      => 'Cecil\Renderer\PostProcessor\HtmlExcerpt',
380 380
             'MarkdownLink'     => 'Cecil\Renderer\PostProcessor\MarkdownLink',
Please login to merge, or discard this patch.