Passed
Push — feat/svg-dimensions ( 9c4bf5 )
by Arnaud
04:58 queued 11s
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.
src/Builder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
         $this->options = array_merge([
133 133
             'drafts'  => false, // build drafts or not
134 134
             'dry-run' => false, // if dry-run is true, generated files are not saved
135
-            'page'    => '',    // specific page to build
135
+            'page'    => '', // specific page to build
136 136
         ], $options);
137 137
 
138 138
         // process each step
Please login to merge, or discard this patch.
config/default.php 1 patch
Spacing   +13 added lines, -13 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)
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
             ],
176 176
         ],
177 177
         'notes' => [
178
-            'enabled' => false,  // enables Notes blocks (`false` by default)
178
+            'enabled' => false, // enables Notes blocks (`false` by default)
179 179
         ],
180 180
     ],
181 181
     // data files
@@ -203,17 +203,17 @@  discard block
 block discarded – undo
203 203
     ],
204 204
     'assets' => [
205 205
         'dir'     => 'assets',
206
-        'compile' => [     // Compile Saas
206
+        'compile' => [// Compile Saas
207 207
             'enabled'   => true,
208 208
             'style'     => 'expanded', // 'expanded' or 'compressed',
209 209
             'import'    => ['sass', 'scss', 'node_modules'],
210 210
             'sourcemap' => false, // works in debug mode only
211 211
             //'variables' => ['var' => 'value']
212 212
         ],
213
-        'minify' => [      // Minify CSS and JS
213
+        'minify' => [// Minify CSS and JS
214 214
             'enabled' => true,
215 215
         ],
216
-        'fingerprint' => [ // Add fingerprint
216
+        'fingerprint' => [// Add fingerprint
217 217
             'enabled' => true,
218 218
         ],
219 219
         'target' => 'assets', // target directory of remote and resized assets
@@ -221,13 +221,13 @@  discard block
 block discarded – undo
221 221
             'optimize' => [
222 222
                 'enabled' => false, // enables images optimization with JpegOptim, Optipng, Pngquant 2, SVGO 1, Gifsicle, cwebp (`false` by default)
223 223
             ],
224
-            'quality'    => 85,     // JPEG and PNG image quality after optimization or resize (`85` by default)
224
+            'quality'    => 85, // JPEG and PNG image quality after optimization or resize (`85` by default)
225 225
             'responsive' => [
226 226
                 'enabled' => false, // creates responsive images with `html` filter (`false` by default)
227 227
                 'width'   => [
228
-                    'steps' => 5,     // number of steps from `min` to `max` (`5` by default)
229
-                    'min'   => 320,   // minimum width (`320` by default)
230
-                    'max'   => 1280,  // maximum width (`1280` by default)
228
+                    'steps' => 5, // number of steps from `min` to `max` (`5` by default)
229
+                    'min'   => 320, // minimum width (`320` by default)
230
+                    'max'   => 1280, // maximum width (`1280` by default)
231 231
                 ],
232 232
                 'sizes' => [
233 233
                     'default' => '100vw', // `sizes` attribute (`100vw` by default)
Please login to merge, or discard this patch.