@@ -13,14 +13,14 @@ |
||
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', |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | public function setMessageCallback(\Closure $messageCallback = null) |
313 | 313 | { |
314 | 314 | if ($messageCallback === null) { |
315 | - $messageCallback = function ($code, $message = '', $itemsCount = 0, $itemsMax = 0) { |
|
315 | + $messageCallback = function($code, $message = '', $itemsCount = 0, $itemsMax = 0) { |
|
316 | 316 | switch ($code) { |
317 | 317 | case 'CONFIG': |
318 | 318 | case 'LOCATE': |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | public function getLog(int $type = 0): ?array |
417 | 417 | { |
418 | 418 | if (is_array($this->log)) { |
419 | - return array_filter($this->log, function ($key) use ($type) { |
|
419 | + return array_filter($this->log, function($key) use ($type) { |
|
420 | 420 | return $key['type'] <= $type; |
421 | 421 | }); |
422 | 422 | } |
@@ -111,7 +111,7 @@ |
||
111 | 111 | */ |
112 | 112 | public function getPages(): \Cecil\Collection\Page\Collection |
113 | 113 | { |
114 | - return $this->builder->getPages()->filter(function (Page $page) { |
|
114 | + return $this->builder->getPages()->filter(function(Page $page) { |
|
115 | 115 | return $page->getVariable('published'); |
116 | 116 | }); |
117 | 117 | } |