Completed
Push — master ( 96b04d...03bbfd )
by Oliver
02:41
created
src/BoxedCode/Eloquent/Meta/MetaItem.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
      */
92 92
     public function setValueAttribute($value, $type = null)
93 93
     {
94
-        if (is_null($type) && ! isset($this->attributes['type'])) {
94
+        if (is_null($type) && !isset($this->attributes['type'])) {
95 95
             $registry = $this->getTypeRegistry();
96 96
             $this->attributes['type'] = $registry->findTypeFor($value)->getClass();
97 97
         }
Please login to merge, or discard this 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.