Completed
Push — analysis-NAM7dp ( e72b09 )
by Arnaud
05:38
created
src/Step/PagesRender.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
         // collect published pages
57 57
         /* @var $page Page */
58
-        $filteredPages = $this->builder->getPages()->filter(function (Page $page) {
58
+        $filteredPages = $this->builder->getPages()->filter(function(Page $page) {
59 59
             return !empty($page->getVariable('published'));
60 60
         });
61 61
         $max = count($filteredPages);
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
         // https://regex101.com/r/dZ02zO/5
268 268
         $rendered = preg_replace_callback(
269 269
             '/href="([A-Za-z0-9_\.\-\/]+)\.md(\#[A-Za-z0-9\-]+)?"/is',
270
-            function ($matches) {
270
+            function($matches) {
271 271
                 return \sprintf('href="../%s/%s"', Page::slugify(PrefixSuffix::sub($matches[1])), $matches[2] ?? '');
272 272
             },
273 273
             $rendered
Please login to merge, or discard this patch.
src/Assets/Image.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
         // image object
95 95
         try {
96 96
             $img = ImageManager::make($this->source);
97
-            $img->resize($this->size, null, function (\Intervention\Image\Constraint $constraint) {
97
+            $img->resize($this->size, null, function(\Intervention\Image\Constraint $constraint) {
98 98
                 $constraint->aspectRatio();
99 99
                 $constraint->upsize();
100 100
             });
Please login to merge, or discard this patch.
config/default.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@
 block discarded – undo
13 13
     'title'        => 'My Website',
14 14
     'baseline'     => 'My amazing static website!',
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'  => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
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
     'language'  => 'en',
Please login to merge, or discard this patch.