Passed
Push — dependabot/composer/voku/html-... ( 3d5af6 )
by
unknown
05:20
created
src/Config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
          * Overrides configuration with environment variables.
63 63
          */
64 64
         $data = $this->getData();
65
-        $applyEnv = function ($array) use ($data) {
65
+        $applyEnv = function($array) use ($data) {
66 66
             $iterator = new \RecursiveIteratorIterator(
67 67
                 new \RecursiveArrayIterator($array),
68 68
                 \RecursiveIteratorIterator::SELF_FIRST
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
             throw new RuntimeException(\sprintf('The default language "%s" is not listed in "languages" key configuration.', $this->getLanguageDefault()));
445 445
         }
446 446
 
447
-        $languages = array_filter($languages, function ($language) {
447
+        $languages = array_filter($languages, function($language) {
448 448
             return !(isset($language['enabled']) && $language['enabled'] === false);
449 449
         });
450 450
 
Please login to merge, or discard this patch.
src/Renderer/Layout.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -141,8 +141,8 @@
 block discarded – undo
141 141
             case PageType::TERM:
142 142
                 $layouts = [
143 143
                     // "taxonomy/$term.$format.$ext", // ie: taxonomy/velo.html.twig
144
-                    "_default/term.$format.$ext",     // ie: _default/term.html.twig
145
-                    "_default/list.$format.$ext",     // ie: _default/list.html.twig
144
+                    "_default/term.$format.$ext", // ie: _default/term.html.twig
145
+                    "_default/list.$format.$ext", // ie: _default/list.html.twig
146 146
                 ];
147 147
                 if ($page->hasVariable('term')) {
148 148
                     $layouts = array_merge(
Please login to merge, or discard this patch.
src/Generator/Homepage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             $page = clone $this->builder->getPages()->get('index');
32 32
         }
33 33
         // collects all pages
34
-        $subPages = $this->builder->getPages()->filter(function (Page $page) {
34
+        $subPages = $this->builder->getPages()->filter(function(Page $page) {
35 35
             return $page->getType() == TYPE::PAGE
36 36
                 && $page->isVirtual() === false // excludes virtual pages
37 37
                 && $page->getVariable('exclude') !== true;
Please login to merge, or discard this patch.
src/Util/File.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         }
43 43
 
44 44
         set_error_handler(
45
-            function ($severity, $message, $file, $line) {
45
+            function($severity, $message, $file, $line) {
46 46
                 throw new \ErrorException($message, 0, $severity, $file, $line, null);
47 47
             }
48 48
         );
Please login to merge, or discard this patch.
config/default.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@  discard block
 block discarded – undo
13 13
     'title'        => 'Site title',
14 14
     'baseline'     => 'Site baseline',
15 15
     'baseurl'      => 'http://localhost:8000/',
16
-    'canonicalurl' => false,   // if true 'url()' function preprends URL wirh 'baseurl'
16
+    'canonicalurl' => false, // if true 'url()' function preprends URL wirh 'baseurl'
17 17
     'description'  => 'Site description',
18
-    'taxonomies'   => [        // default taxonomies
18
+    'taxonomies'   => [// default taxonomies
19 19
         'tags'       => 'tag', // can be disabled with 'disabled' value
20 20
         'categories' => 'category',
21 21
     ],
22 22
     'pagination' => [
23
-        'max'  => 5,      // number of pages on each paginated pages
23
+        'max'  => 5, // number of pages on each paginated pages
24 24
         'path' => 'page', // path to paginated pages. ie: '/blog/page/2/'
25 25
     ],
26 26
     'date' => [
@@ -155,11 +155,11 @@  discard block
 block discarded – undo
155 155
         'format' => 'yaml',
156 156
     ],
157 157
     'body' => [
158
-        'format' => 'md',         // page body format (only Markdown is supported)
158
+        'format' => 'md', // page body format (only Markdown is supported)
159 159
         'toc'    => ['h2', 'h3'], // headers used to build the table of contents
160 160
         'images' => [
161 161
             'lazy' => [
162
-                'enabled' => true,  // enables lazy loading (`true` by default)
162
+                'enabled' => true, // enables lazy loading (`true` by default)
163 163
             ],
164 164
             'caption' => [
165 165
                 'enabled' => false, // adds <figcaption> to images with a title (`false` by default)
@@ -200,17 +200,17 @@  discard block
 block discarded – undo
200 200
     ],
201 201
     'assets' => [
202 202
         'dir'     => 'assets',
203
-        'compile' => [     // Compile Saas
203
+        'compile' => [// Compile Saas
204 204
             'enabled'   => true,
205 205
             'style'     => 'expanded', // 'expanded' or 'compressed',
206 206
             'import'    => ['sass', 'scss', 'node_modules'],
207 207
             'sourcemap' => false, // works in debug mode only
208 208
             //'variables' => ['var' => 'value']
209 209
         ],
210
-        'minify' => [      // Minify CSS and JS
210
+        'minify' => [// Minify CSS and JS
211 211
             'enabled' => true,
212 212
         ],
213
-        'fingerprint' => [ // Add fingerprint
213
+        'fingerprint' => [// Add fingerprint
214 214
             'enabled' => true,
215 215
         ],
216 216
         'target' => 'assets', // target directory of remote and resized assets
@@ -218,13 +218,13 @@  discard block
 block discarded – undo
218 218
             'optimize' => [
219 219
                 'enabled' => false, // enables images optimization with JpegOptim, Optipng, Pngquant 2, SVGO 1, Gifsicle, cwebp (`false` by default)
220 220
             ],
221
-            'quality'    => 85,     // JPEG and PNG image quality after optimization or resize (`85` by default)
221
+            'quality'    => 85, // JPEG and PNG image quality after optimization or resize (`85` by default)
222 222
             'responsive' => [
223 223
                 'enabled' => false, // creates responsive images with `html` filter (`false` by default)
224 224
                 'width'   => [
225
-                    'steps' => 5,     // number of steps from `min` to `max` (`5` by default)
226
-                    'min'   => 320,   // minimum width (`320` by default)
227
-                    'max'   => 1280,  // maximum width (`1280` by default)
225
+                    'steps' => 5, // number of steps from `min` to `max` (`5` by default)
226
+                    'min'   => 320, // minimum width (`320` by default)
227
+                    'max'   => 1280, // maximum width (`1280` by default)
228 228
                 ],
229 229
                 'sizes' => [
230 230
                     'default' => '100vw', // `sizes` attribute (`100vw` by default)
Please login to merge, or discard this patch.