@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | $value = $object->$getter(); |
| 58 | 58 | |
| 59 | - if ($value === null && ! $definition->getProcessNull()) { |
|
| 59 | + if ($value === null && !$definition->getProcessNull()) { |
|
| 60 | 60 | return; |
| 61 | 61 | } |
| 62 | 62 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | |
| 75 | 75 | foreach ($definitions as $definition) |
| 76 | 76 | { |
| 77 | - if (! $definition->hasSetter()) { |
|
| 77 | + if (!$definition->hasSetter()) { |
|
| 78 | 78 | continue; |
| 79 | 79 | } |
| 80 | 80 | |
@@ -93,13 +93,13 @@ discard block |
||
| 93 | 93 | { |
| 94 | 94 | $name = $definition->getName(); |
| 95 | 95 | |
| 96 | - if (! $resource->hasAttribute($name)) { |
|
| 96 | + if (!$resource->hasAttribute($name)) { |
|
| 97 | 97 | return; |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | $value = $resource->getAttribute($name); |
| 101 | 101 | |
| 102 | - if ($value === null && ! $definition->getProcessNull()) { |
|
| 102 | + if ($value === null && !$definition->getProcessNull()) { |
|
| 103 | 103 | return; |
| 104 | 104 | } |
| 105 | 105 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | public function toResource(Attribute $definition, $value) |
| 53 | 53 | { |
| 54 | - if (! $definition->hasType()) { |
|
| 54 | + if (!$definition->hasType()) { |
|
| 55 | 55 | return $this->processNotTypedToResource($definition, $value); |
| 56 | 56 | } |
| 57 | 57 | |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | */ |
| 78 | 78 | public function fromResource(Attribute $definition, $value) |
| 79 | 79 | { |
| 80 | - if (! $definition->hasType()) { |
|
| 80 | + if (!$definition->hasType()) { |
|
| 81 | 81 | return $this->processNotTypedFromResource($definition, $value); |
| 82 | 82 | } |
| 83 | 83 | |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | */ |
| 106 | 106 | protected function processNotTypedToResource(Attribute $definition, $value) |
| 107 | 107 | { |
| 108 | - if (! $definition->isMany()) { |
|
| 108 | + if (!$definition->isMany()) { |
|
| 109 | 109 | return $value; |
| 110 | 110 | } |
| 111 | 111 | |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | */ |
| 132 | 132 | protected function processNotTypedFromResource(Attribute $definition, $value) |
| 133 | 133 | { |
| 134 | - if (! $definition->isMany()) { |
|
| 134 | + if (!$definition->isMany()) { |
|
| 135 | 135 | return $value; |
| 136 | 136 | } |
| 137 | 137 | |
@@ -161,11 +161,11 @@ discard block |
||
| 161 | 161 | $handler = $this->registeredTypes[$type]; |
| 162 | 162 | $parameters = $definition->getTypeParameters(); |
| 163 | 163 | |
| 164 | - if (! $definition->isMany()) { |
|
| 164 | + if (!$definition->isMany()) { |
|
| 165 | 165 | return $handler->toResource($value, $parameters); |
| 166 | 166 | } |
| 167 | 167 | |
| 168 | - if (! $value instanceof \Traversable && ! is_array($value)) { |
|
| 168 | + if (!$value instanceof \Traversable && !is_array($value)) { |
|
| 169 | 169 | throw new NotIterableAttribute($definition, $value); |
| 170 | 170 | } |
| 171 | 171 | |
@@ -193,11 +193,11 @@ discard block |
||
| 193 | 193 | $handler = $this->registeredTypes[$type]; |
| 194 | 194 | $parameters = $definition->getTypeParameters(); |
| 195 | 195 | |
| 196 | - if (! $definition->isMany()) { |
|
| 196 | + if (!$definition->isMany()) { |
|
| 197 | 197 | return $handler->fromResource($value, $parameters); |
| 198 | 198 | } |
| 199 | 199 | |
| 200 | - if (! $value instanceof \Traversable && ! is_array($value)) { |
|
| 200 | + if (!$value instanceof \Traversable && !is_array($value)) { |
|
| 201 | 201 | throw new NotIterableAttribute($definition, $value); |
| 202 | 202 | } |
| 203 | 203 | |
@@ -223,11 +223,11 @@ discard block |
||
| 223 | 223 | { |
| 224 | 224 | $type = $definition->getType(); |
| 225 | 225 | |
| 226 | - if (! $definition->isMany()) { |
|
| 226 | + if (!$definition->isMany()) { |
|
| 227 | 227 | return $this->processGenericType($type, $value); |
| 228 | 228 | } |
| 229 | 229 | |
| 230 | - if (! $value instanceof \Traversable && ! is_array($value)) { |
|
| 230 | + if (!$value instanceof \Traversable && !is_array($value)) { |
|
| 231 | 231 | throw new NotIterableAttribute($definition, $value); |
| 232 | 232 | } |
| 233 | 233 | |