@@ -83,7 +83,7 @@ |
||
83 | 83 | |
84 | 84 | private function loadDataFile(Element $indexElement): \stdClass { |
85 | 85 | if (!isset($indexElement->path) || empty($indexElement->path)) { |
86 | - throw new InvalidArgumentException("Object does not have 'path' property " . print_r($indexElement, true)); // @codeCoverageIgnore |
|
86 | + throw new InvalidArgumentException("Object does not have 'path' property ".print_r($indexElement, true)); // @codeCoverageIgnore |
|
87 | 87 | } |
88 | 88 | if (($data = \file_get_contents($indexElement->path)) === false) { |
89 | 89 | throw new InternalException("file_get_contents() failed opening [$indexElement->path]"); // @codeCoverageIgnore |
@@ -72,7 +72,7 @@ |
||
72 | 72 | if (isset($this->config[$key]) === false) { |
73 | 73 | return null; |
74 | 74 | } |
75 | - return $this->config[$key]; |
|
75 | + return $this->config[$key]; |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | $cat2PostIndex = []; |
295 | 295 | foreach ($this->postIndex as $post) { |
296 | 296 | if (!isset($post->key, $post->tags, $post->category)) { |
297 | - throw new InternalException("Invalid format of index element: " . print_r($post, true)); // @codeCoverageIgnore |
|
297 | + throw new InternalException("Invalid format of index element: ".print_r($post, true)); // @codeCoverageIgnore |
|
298 | 298 | } |
299 | 299 | foreach ($post->tags as $tag) { |
300 | 300 | $key = 'tag'.FWD_SLASH.(string)$tag; |
@@ -444,7 +444,7 @@ discard block |
||
444 | 444 | if (($end = \strpos($key, '_', $start)) === false) { |
445 | 445 | throw new InvalidArgumentException("Post content filename syntax error [$key]"); |
446 | 446 | } |
447 | - $tagList = \substr($key, $start, $end-$start); |
|
447 | + $tagList = \substr($key, $start, $end - $start); |
|
448 | 448 | $title = \substr($key, $end + 1); |
449 | 449 | $year = \substr($dateString, 0, 4); |
450 | 450 | $month = \substr($dateString, 4, 2); |
@@ -22,6 +22,6 @@ |
||
22 | 22 | } |
23 | 23 | |
24 | 24 | function render($template, array $vars): string { |
25 | - return $this->engine->render($template . '.' . $this->ext, $vars); |
|
25 | + return $this->engine->render($template.'.'.$this->ext, $vars); |
|
26 | 26 | } |
27 | 27 | } |