Completed
Push — master ( dc924c...dec10e )
by Gino
02:36 queued 01:05
created
classes/ComponentAbstract.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,11 +60,11 @@  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
                 $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
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.