@@ -318,21 +318,21 @@ |
||
318 | 318 | switch ($name) { |
319 | 319 | case 'group': |
320 | 320 | case self::GROUPS: |
321 | - $this->options[self::GROUPS] = (array)$value; |
|
321 | + $this->options[self::GROUPS] = (array) $value; |
|
322 | 322 | break; |
323 | 323 | |
324 | 324 | case 'serializeNull': |
325 | 325 | case 'serialize_null': |
326 | 326 | case self::NULL: |
327 | - $this->options[self::NULL] = (bool)$value; |
|
327 | + $this->options[self::NULL] = (bool) $value; |
|
328 | 328 | break; |
329 | 329 | |
330 | 330 | case self::EXCLUDES: |
331 | - $this->options[self::EXCLUDES] = array_flip((array)$value); |
|
331 | + $this->options[self::EXCLUDES] = array_flip((array) $value); |
|
332 | 332 | break; |
333 | 333 | |
334 | 334 | case self::INCLUDES: |
335 | - $this->options[self::INCLUDES] = array_flip((array)$value); |
|
335 | + $this->options[self::INCLUDES] = array_flip((array) $value); |
|
336 | 336 | break; |
337 | 337 | |
338 | 338 | default: |
@@ -174,7 +174,7 @@ |
||
174 | 174 | */ |
175 | 175 | public static function useClosureAccessor($flag): void |
176 | 176 | { |
177 | - self::$useClosure = (bool)$flag; |
|
177 | + self::$useClosure = (bool) $flag; |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | /** |
@@ -97,7 +97,7 @@ |
||
97 | 97 | $object = $this->instantiate($type); |
98 | 98 | $metadata = $this->metadataFactory->getMetadata($object); |
99 | 99 | |
100 | - foreach ((array)$data as $name => $propertyData) { |
|
100 | + foreach ((array) $data as $name => $propertyData) { |
|
101 | 101 | if (($property = $metadata->property($name)) === null) { |
102 | 102 | continue; |
103 | 103 | } |
@@ -150,7 +150,7 @@ |
||
150 | 150 | foreach ($jmsMetadata->propertyMetadata as $metadata) { |
151 | 151 | $class = get_class($metadata); |
152 | 152 | $default = new $class($metadata->class, $metadata->name); |
153 | - $attributes = (array)$metadata; |
|
153 | + $attributes = (array) $metadata; |
|
154 | 154 | |
155 | 155 | unset($attributes['serializedName']); |
156 | 156 |
@@ -169,15 +169,15 @@ |
||
169 | 169 | switch ($tag->getName()) { |
170 | 170 | case 'var': |
171 | 171 | /** @var DocBlock\Tags\Var_ $tag */ |
172 | - return ['type', $this->findType((string)$tag->getType(), $property)]; |
|
172 | + return ['type', $this->findType((string) $tag->getType(), $property)]; |
|
173 | 173 | |
174 | 174 | case 'since': |
175 | 175 | /** @var DocBlock\Tags\Since $tag */ |
176 | - return ['since', (string)$tag->getVersion()]; |
|
176 | + return ['since', (string) $tag->getVersion()]; |
|
177 | 177 | |
178 | 178 | case 'until': |
179 | 179 | /** @var DocBlock\Tags\Generic $tag */ |
180 | - return ['until', (string)$tag->getDescription()]; |
|
180 | + return ['until', (string) $tag->getDescription()]; |
|
181 | 181 | |
182 | 182 | case 'SerializeIgnore': |
183 | 183 | return ['SerializeIgnore', true]; |