@@ -25,9 +25,7 @@ |
||
| 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 | } |
@@ -94,9 +94,7 @@ |
||
| 94 | 94 | if (! $type && ! isset($this->attributes['type'])) { |
| 95 | 95 | $registry = $this->getTypeRegistry(); |
| 96 | 96 | $this->type = $registry->findTypeFor($value)->getClass(); |
| 97 | - } |
|
| 98 | - |
|
| 99 | - elseif ($type) { |
|
| 97 | + } elseif ($type) { |
|
| 100 | 98 | $this->type = $type; |
| 101 | 99 | } |
| 102 | 100 | |
@@ -283,8 +283,7 @@ |
||
| 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, |
@@ -48,9 +48,7 @@ |
||
| 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; |