Completed
Push — master ( 3a1125...503386 )
by Gino
01:44
created
components/ComponentAbstract.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.