Passed
Push — master ( 06a482...ce00a2 )
by Arnaud
05:09
created
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/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.
src/Assets/Url.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,8 @@
 block discarded – undo
61 61
 
62 62
         // handles options
63 63
         $canonical = null; // if true, add prefix URL with baseurl
64
-        $format = null;    // set output format
65
-        $language = null;  // force language
64
+        $format = null; // set output format
65
+        $language = null; // force language
66 66
         extract(is_array($options) ? $options : [], EXTR_IF_EXISTS);
67 67
 
68 68
         // canonical URL?
Please login to merge, or discard this patch.
src/Assets/Asset.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -77,21 +77,21 @@
 block discarded – undo
77 77
             }
78 78
         });
79 79
         $this->data = [
80
-            'file'           => '',    // absolute file path
81
-            'files'          => [],    // bundle: files path
82
-            'filename'       => '',    // filename
83
-            'path_source'    => '',    // public path to the file, before transformations
84
-            'path'           => '',    // public path to the file, after transformations
80
+            'file'           => '', // absolute file path
81
+            'files'          => [], // bundle: files path
82
+            'filename'       => '', // filename
83
+            'path_source'    => '', // public path to the file, before transformations
84
+            'path'           => '', // public path to the file, after transformations
85 85
             'missing'        => false, // if file not found, but missing ollowed 'missing' is true
86
-            'ext'            => '',    // file extension
87
-            'type'           => '',    // file type (e.g.: image, audio, video, etc.)
88
-            'subtype'        => '',    // file media type (e.g.: image/png, audio/mp3, etc.)
89
-            'size'           => 0,     // file size (in bytes)
90
-            'content_source' => '',    // file content, before transformations
91
-            'content'        => '',    // file content, after transformations
92
-            'width'          => 0,     // width (in pixels) in case of an image
93
-            'height'         => 0,     // height (in pixels) in case of an image
94
-            'exif'           => [],    // exif data
86
+            'ext'            => '', // file extension
87
+            'type'           => '', // file type (e.g.: image, audio, video, etc.)
88
+            'subtype'        => '', // file media type (e.g.: image/png, audio/mp3, etc.)
89
+            'size'           => 0, // file size (in bytes)
90
+            'content_source' => '', // file content, before transformations
91
+            'content'        => '', // file content, after transformations
92
+            'width'          => 0, // width (in pixels) in case of an image
93
+            'height'         => 0, // height (in pixels) in case of an image
94
+            'exif'           => [], // exif data
95 95
         ];
96 96
 
97 97
         // handles options
Please login to merge, or discard this patch.
src/Step/StaticFiles/Load.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
                 $staticFiles[$count]['exif'] = Util\File::readExif($file->getRealPath());
79 79
             }
80 80
             if ($type == 'audio') {
81
-                $staticFiles[$count]['audio'] =  new Mp3Info($file->getRealPath());
81
+                $staticFiles[$count]['audio'] = new Mp3Info($file->getRealPath());
82 82
             }
83 83
             $count++;
84 84
 
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
@@ -16,14 +16,14 @@  discard block
 block discarded – undo
16 16
     'title'        => 'Site title',
17 17
     //'baseline'     => 'Site baseline',
18 18
     'baseurl'      => 'http://localhost:8000/',
19
-    'canonicalurl' => false,   // if true 'url()' function preprends URL wirh 'baseurl'
19
+    'canonicalurl' => false, // if true 'url()' function preprends URL wirh 'baseurl'
20 20
     'description'  => 'Site description',
21
-    'taxonomies'   => [        // default taxonomies
21
+    'taxonomies'   => [// default taxonomies
22 22
         'tags'       => 'tag', // can be disabled with 'disabled' value
23 23
         'categories' => 'category',
24 24
     ],
25 25
     'pagination' => [
26
-        'max'  => 5,      // number of pages on each paginated pages
26
+        'max'  => 5, // number of pages on each paginated pages
27 27
         'path' => 'page', // path to paginated pages. ie: '/blog/page/2/'
28 28
     ],
29 29
     'date' => [
@@ -189,19 +189,19 @@  discard block
 block discarded – undo
189 189
         'format' => 'yaml', // front matter format `yaml`, `ini`, `toml` or `json` (`yaml` by default)
190 190
     ],
191 191
     'body' => [
192
-        'format'    => 'md',         // page body format (only Markdown is supported)
192
+        'format'    => 'md', // page body format (only Markdown is supported)
193 193
         'toc'       => ['h2', 'h3'], // headers used to build the table of contents
194 194
         'highlight' => [
195
-            'enabled' => false,      // enables code syntax highlighting (`false` by default)
195
+            'enabled' => false, // enables code syntax highlighting (`false` by default)
196 196
         ],
197 197
         'images' => [
198 198
             'lazy' => [
199
-                'enabled' => true,  // adds `loading="lazy"` attribute (`true` by default)
199
+                'enabled' => true, // adds `loading="lazy"` attribute (`true` by default)
200 200
             ],
201 201
             'decoding' => [
202
-                'enabled' => true,  // adds `decoding="async"` attribute (`true` by default)
202
+                'enabled' => true, // adds `decoding="async"` attribute (`true` by default)
203 203
             ],
204
-            'class' => '',          // put default class to each image (empty by default)
204
+            'class' => '', // put default class to each image (empty by default)
205 205
             'resize' => [
206 206
                 'enabled' => false, // enables image resizing by using the `width` extra attribute (`false` by default)
207 207
             ],
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
                 'enabled'  => true, // turns remote images to Asset to handling them (`true` by default)
219 219
                 'fallback' => [
220 220
                     'enabled' => false, // enables a fallback if image is not found (`false` by default)
221
-                    'path'    => '',    // path to the fallback image, stored in assets dir (empty by default)
221
+                    'path'    => '', // path to the fallback image, stored in assets dir (empty by default)
222 222
                 ],
223 223
             ],
224 224
         ],
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
         ],
236 236
         'excerpt' => [
237 237
             'separator' => 'excerpt|break', // string to use as separator (`excerpt|break` by default)
238
-            'capture'   => 'before',        // part to capture, `before` or `after` the separator (`before` by default)
238
+            'capture'   => 'before', // part to capture, `before` or `after` the separator (`before` by default)
239 239
         ],
240 240
     ],
241 241
     // data files
@@ -271,17 +271,17 @@  discard block
 block discarded – undo
271 271
     ],
272 272
     'assets' => [
273 273
         'dir'     => 'assets',
274
-        'compile' => [ // Compile Saas
274
+        'compile' => [// Compile Saas
275 275
             'enabled'   => true,
276 276
             'style'     => 'expanded', // 'expanded' or 'compressed',
277 277
             'import'    => ['sass', 'scss', 'node_modules'],
278 278
             'sourcemap' => false, // works in debug mode only
279 279
             //'variables' => ['var' => 'value']
280 280
         ],
281
-        'minify' => [ // Minify CSS and JS
281
+        'minify' => [// Minify CSS and JS
282 282
             'enabled' => true,
283 283
         ],
284
-        'fingerprint' => [ // Add fingerprint
284
+        'fingerprint' => [// Add fingerprint
285 285
             'enabled' => true,
286 286
         ],
287 287
         'target' => 'assets', // target directory of remote and resized assets
Please login to merge, or discard this patch.