@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | $value = $object->$getter(); |
72 | 72 | |
73 | - if ($value === null && ! $definition->getProcessNull()) { |
|
73 | + if ($value === null && !$definition->getProcessNull()) { |
|
74 | 74 | return; |
75 | 75 | } |
76 | 76 | |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | */ |
98 | 98 | protected function processIterableValueToResource($value, Attribute $definition): array |
99 | 99 | { |
100 | - if (! $value instanceof \Traversable && ! is_array($value)) { |
|
100 | + if (!$value instanceof \Traversable && !is_array($value)) { |
|
101 | 101 | throw new NotIterableAttribute($definition, $value); |
102 | 102 | } |
103 | 103 | |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | |
197 | 197 | foreach ($definitions as $definition) |
198 | 198 | { |
199 | - if (! $definition->hasSetter()) { |
|
199 | + if (!$definition->hasSetter()) { |
|
200 | 200 | continue; |
201 | 201 | } |
202 | 202 | |
@@ -215,13 +215,13 @@ discard block |
||
215 | 215 | { |
216 | 216 | $name = $definition->getName(); |
217 | 217 | |
218 | - if (! $resource->hasAttribute($name)) { |
|
218 | + if (!$resource->hasAttribute($name)) { |
|
219 | 219 | return; |
220 | 220 | } |
221 | 221 | |
222 | 222 | $value = $resource->getAttribute($name); |
223 | 223 | |
224 | - if ($value === null && ! $definition->getProcessNull()) { |
|
224 | + if ($value === null && !$definition->getProcessNull()) { |
|
225 | 225 | return; |
226 | 226 | } |
227 | 227 | |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | */ |
249 | 249 | protected function processIterableValueFromResource($value, $object, Attribute $definition) |
250 | 250 | { |
251 | - if (! $value instanceof \Traversable && ! is_array($value)) { |
|
251 | + if (!$value instanceof \Traversable && !is_array($value)) { |
|
252 | 252 | throw new NotIterableAttribute($definition, $value); |
253 | 253 | } |
254 | 254 |
@@ -55,13 +55,13 @@ |
||
55 | 55 | $type = gettype($value); |
56 | 56 | |
57 | 57 | if ($type === 'object') { |
58 | - return 'an instance of ' . get_class($value); |
|
58 | + return 'an instance of '.get_class($value); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | if ($type === 'integer') { |
62 | 62 | return 'an integer'; |
63 | 63 | } |
64 | 64 | |
65 | - return 'a ' . $type; |
|
65 | + return 'a '.$type; |
|
66 | 66 | } |
67 | 67 | } |
68 | 68 | \ No newline at end of file |