@@ -91,7 +91,7 @@ |
||
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 | } |
@@ -94,9 +94,7 @@ |
||
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 |