@@ -47,8 +47,8 @@ |
||
47 | 47 | $data = $newData; |
48 | 48 | } |
49 | 49 | |
50 | - foreach($data as $k => $v) { |
|
51 | - if(!$this->type->hasProperty($k)) { |
|
50 | + foreach ($data as $k => $v) { |
|
51 | + if (!$this->type->hasProperty($k)) { |
|
52 | 52 | throw new \Exception("Unknown property $k"); |
53 | 53 | } |
54 | 54 | } |
@@ -69,7 +69,7 @@ |
||
69 | 69 | if ($fields) { |
70 | 70 | foreach ($fields as $index => $field) { |
71 | 71 | if ($field instanceof Contracts\Type) { |
72 | - if(!is_numeric($index)) { |
|
72 | + if (!is_numeric($index)) { |
|
73 | 73 | $instance->reference($field, $index); |
74 | 74 | } else { |
75 | 75 | $instance->reference($field); |