Completed
Push — master ( 984343...aed267 )
by Oliver
02:21
created
src/BoxedCode/Eloquent/Meta/Types/Registry.php 1 patch
Braces   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,9 +25,7 @@
 block discarded – undo
25 25
             $this->registerClass(get_class($mixed), $mixed);
26 26
 
27 27
             return true;
28
-        }
29
-
30
-        elseif (is_array($mixed)) {
28
+        } elseif (is_array($mixed)) {
31 29
             foreach ($mixed as $type) {
32 30
                 $this->register($type);
33 31
             }
Please login to merge, or discard this patch.
src/BoxedCode/Eloquent/Meta/MetaItemCollection.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -283,8 +283,7 @@
 block discarded – undo
283 283
 
284 284
         if (! is_null($key)) {
285 285
             $this->get($key)->value = $value;
286
-        }
287
-        else {
286
+        } else {
288 287
             $attr = [
289 288
                 'key'   => $name,
290 289
                 'value' => $value,
Please login to merge, or discard this patch.
src/BoxedCode/Eloquent/Meta/Metable.php 1 patch
Braces   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,9 +48,7 @@
 block discarded – undo
48 48
     {
49 49
         if (parent::isDirty($attributes)) {
50 50
             return true;
51
-        }
52
-
53
-        else {
51
+        } else {
54 52
             foreach ($this->meta as $item) {
55 53
                 if ($item->isDirty($attributes)) {
56 54
                     return true;
Please login to merge, or discard this patch.
src/BoxedCode/Eloquent/Meta/MetaItem.php 1 patch
Braces   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -94,9 +94,7 @@
 block discarded – undo
94 94
         if (is_null($type) && ! isset($this->attributes['type'])) {
95 95
             $registry = $this->getTypeRegistry();
96 96
             $this->attributes['type'] = $registry->findTypeFor($value)->getClass();
97
-        }
98
-
99
-        elseif (isset($type)) {
97
+        } elseif (isset($type)) {
100 98
             $this->attributes['type'] = $type;
101 99
         }
102 100
 
Please login to merge, or discard this patch.