@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | if ($this->external) { |
106 | 106 | try { |
107 | 107 | $img = ImageManager::make($this->path); |
108 | - $img->resize($this->size, null, function (\Intervention\Image\Constraint $constraint) { |
|
108 | + $img->resize($this->size, null, function(\Intervention\Image\Constraint $constraint) { |
|
109 | 109 | $constraint->aspectRatio(); |
110 | 110 | $constraint->upsize(); |
111 | 111 | }); |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | // local image |
120 | 120 | if (!Util::getFS()->exists($this->destination)) { |
121 | 121 | $img = ImageManager::make($this->source); |
122 | - $img->resize($this->size, null, function (\Intervention\Image\Constraint $constraint) { |
|
122 | + $img->resize($this->size, null, function(\Intervention\Image\Constraint $constraint) { |
|
123 | 123 | $constraint->aspectRatio(); |
124 | 124 | $constraint->upsize(); |
125 | 125 | }); |
@@ -55,7 +55,7 @@ discard block |
||
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 |
||
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 |