@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | ); |
75 | 75 | |
76 | 76 | if (!empty($this->categoryPage) && $post->categories->count()) { |
77 | - $post->categories->each(function ($category) use ($blogCategoriesComponent) { |
|
77 | + $post->categories->each(function($category) use ($blogCategoriesComponent) { |
|
78 | 78 | /** @var Category $category */ |
79 | 79 | $category->setUrl( |
80 | 80 | $this->categoryPage, |
@@ -106,8 +106,8 @@ discard block |
||
106 | 106 | if ($component && ($property = $component->property($name))) { |
107 | 107 | preg_match('/{{ :([^ ]+) }}/', $property, $matches); |
108 | 108 | |
109 | - if (isset($matches[1])) { |
|
110 | - $property = $matches[1]; |
|
109 | + if (isset($matches[ 1 ])) { |
|
110 | + $property = $matches[ 1 ]; |
|
111 | 111 | } |
112 | 112 | } |
113 | 113 | |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | */ |
126 | 126 | public function getProperty(string $property, $default = null) |
127 | 127 | { |
128 | - return $this->property($property, $this->defineProperties()[$property]['default'] ?? $default); |
|
128 | + return $this->property($property, $this->defineProperties()[ $property ][ 'default' ] ?? $default); |
|
129 | 129 | } |
130 | 130 | |
131 | 131 | /** |