Passed
Push — serve ( 2d92dd...605e3f )
by Arnaud
04:11 queued 11s
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.
config/default.php 1 patch
Spacing   +8 added lines, -8 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
     ],
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
                 'capture'   => 'before', // part to capture, `before` or `after` the separator (`before` by default)
119 119
             ],
120 120
         ],
121
-        'generators' => [ // list of pages generators class, ordered by weight
121
+        'generators' => [// list of pages generators class, ordered by weight
122 122
             10 => 'Cecil\Generator\DefaultPages',
123 123
             20 => 'Cecil\Generator\VirtualPages',
124 124
             30 => 'Cecil\Generator\ExternalBody',
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
             80 => 'Cecil\Generator\Alias',
130 130
             90 => 'Cecil\Generator\Redirect',
131 131
         ],
132
-        'default' => [ // default generated pages
132
+        'default' => [// default generated pages
133 133
             'index' => [
134 134
                 'path'      => '',
135 135
                 'title'     => 'Home',
@@ -251,14 +251,14 @@  discard block
 block discarded – undo
251 251
         'internal' => [
252 252
             'dir' => 'resources/layouts', // internal templates directory
253 253
         ],
254
-        'translations' => [ // i18n
254
+        'translations' => [// i18n
255 255
             'dir'      => 'translations', // translations files directory (`translations` by default)
256 256
             'formats'  => ['yaml', 'mo'], // translations supported formats (`yaml` and `mo`)
257 257
             'internal' => [
258 258
                 'dir' => 'resources/translations', // internal translations directory
259 259
             ],
260 260
         ],
261
-        'extensions' => [ // list of Twig extensions class
261
+        'extensions' => [// list of Twig extensions class
262 262
             //'Name' => 'Cecil\Renderer\Extension\Class',
263 263
         ],
264 264
     ],
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
     ],
269 269
     'output' => [
270 270
         'dir'      => '_site', // output directory (`_site` by default)
271
-        'formats'  => [ // https://cecil.app/documentation/configuration/#formats
271
+        'formats'  => [// https://cecil.app/documentation/configuration/#formats
272 272
             // e.g.: blog/post-1/index.html
273 273
             -1 => [
274 274
                 'name'      => 'html',
@@ -364,14 +364,14 @@  discard block
 block discarded – undo
364 364
                 'exclude'   => ['redirect', 'paginated'],
365 365
             ],
366 366
         ],
367
-        'pagetypeformats' => [ // formats applied by page type
367
+        'pagetypeformats' => [// formats applied by page type
368 368
             'page'       => ['html'],
369 369
             'homepage'   => ['html', 'atom'],
370 370
             'section'    => ['html', 'atom'],
371 371
             'vocabulary' => ['html'],
372 372
             'term'       => ['html', 'atom'],
373 373
         ],
374
-        'postprocessors' => [ // list of output post processors class
374
+        'postprocessors' => [// list of output post processors class
375 375
             'GeneratorMetaTag' => 'Cecil\Renderer\PostProcessor\GeneratorMetaTag',
376 376
             'HtmlExcerpt'      => 'Cecil\Renderer\PostProcessor\HtmlExcerpt',
377 377
             'MarkdownLink'     => 'Cecil\Renderer\PostProcessor\MarkdownLink',
Please login to merge, or discard this patch.