Completed
Push — master ( 14d3d7...586efc )
by Gino
01:39 queued 11s
created
classes/ComponentAbstract.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
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
                 /** @var Post $post */
65 65
                 $post->setUrl(
66 66
                     $this->postPage,
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
                 );
69 69
 
70 70
                 if (!empty($this->categoryPage) && $post->categories->count()) {
71
-                    $post->categories->each(function ($category) {
71
+                    $post->categories->each(function($category) {
72 72
                         /** @var Category $category */
73 73
                         $category->setUrl(
74 74
                             $this->categoryPage,
@@ -97,8 +97,8 @@  discard block
 block discarded – undo
97 97
         if ($component !== null && ($property = $component->property($name))) {
98 98
             preg_match('/{{ :([^ ]+) }}/', $property, $matches);
99 99
 
100
-            if (isset($matches[1])) {
101
-                $property = $matches[1];
100
+            if (isset($matches[ 1 ])) {
101
+                $property = $matches[ 1 ];
102 102
             }
103 103
         } else {
104 104
             $property = $name;
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      */
119 119
     public function getProperty(string $property, $default = null)
120 120
     {
121
-        return $this->property($property, $this->defineProperties()[$property]['default'] ?? $default);
121
+        return $this->property($property, $this->defineProperties()[ $property ][ 'default' ] ?? $default);
122 122
     }
123 123
 
124 124
     /**
Please login to merge, or discard this patch.