@@ -60,11 +60,11 @@ discard block |
||
60 | 60 | { |
61 | 61 | // Add a "url" helper attribute for linking to each post and category |
62 | 62 | if (!empty($this->postPage) && $posts && $posts->count()) { |
63 | - $posts->each(function ($post) { |
|
63 | + $posts->each(function($post) { |
|
64 | 64 | $this->setPostUrl($post); |
65 | 65 | |
66 | 66 | if (!empty($this->categoryPage) && $post->categories->count()) { |
67 | - $post->categories->each(function ($category) { |
|
67 | + $post->categories->each(function($category) { |
|
68 | 68 | /** @var Category $category */ |
69 | 69 | $category->setUrl( |
70 | 70 | $this->categoryPage, |
@@ -101,8 +101,8 @@ discard block |
||
101 | 101 | if ($component !== null && ($property = $component->property($name))) { |
102 | 102 | preg_match('/{{ :([^ ]+) }}/', $property, $matches); |
103 | 103 | |
104 | - if (isset($matches[1])) { |
|
105 | - $property = $matches[1]; |
|
104 | + if (isset($matches[ 1 ])) { |
|
105 | + $property = $matches[ 1 ]; |
|
106 | 106 | } |
107 | 107 | } else { |
108 | 108 | $property = $name; |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | */ |
123 | 123 | public function getProperty(string $property, $default = null) |
124 | 124 | { |
125 | - return $this->property($property, $this->defineProperties()[$property]['default'] ?? $default); |
|
125 | + return $this->property($property, $this->defineProperties()[ $property ][ 'default' ] ?? $default); |
|
126 | 126 | } |
127 | 127 | |
128 | 128 | /** |