@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | $configured = false; |
| 81 | 81 | |
| 82 | 82 | $classMetadata = new ClassMetadata($name = $class->name); |
| 83 | - $fileResource = $class->getFilename(); |
|
| 83 | + $fileResource = $class->getFilename(); |
|
| 84 | 84 | |
| 85 | 85 | if (false !== $fileResource) { |
| 86 | 86 | $classMetadata->fileResources[] = $fileResource; |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | } |
| 167 | 167 | } |
| 168 | 168 | |
| 169 | - if (!$excludeAll) { |
|
| 169 | + if ( ! $excludeAll) { |
|
| 170 | 170 | foreach ($class->getProperties() as $property) { |
| 171 | 171 | if ($property->class !== $name || (isset($property->info) && $property->info['class'] !== $name)) { |
| 172 | 172 | continue; |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | } elseif ($annot instanceof Expose) { |
| 201 | 201 | $isExpose = true; |
| 202 | 202 | if (null !== $annot->if) { |
| 203 | - $propertyMetadata->excludeIf = $this->parseExpression('!(' . $annot->if . ')'); |
|
| 203 | + $propertyMetadata->excludeIf = $this->parseExpression('!('.$annot->if.')'); |
|
| 204 | 204 | } |
| 205 | 205 | } elseif ($annot instanceof Exclude) { |
| 206 | 206 | if (null !== $annot->if) { |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | throw new InvalidMetadataException(sprintf( |
| 248 | 248 | 'Invalid group name "%s" on "%s", did you mean to create multiple groups?', |
| 249 | 249 | implode(', ', $propertyMetadata->groups), |
| 250 | - $propertyMetadata->class . '->' . $propertyMetadata->name |
|
| 250 | + $propertyMetadata->class.'->'.$propertyMetadata->name |
|
| 251 | 251 | )); |
| 252 | 252 | } |
| 253 | 253 | } |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | } |
| 270 | 270 | } |
| 271 | 271 | |
| 272 | - if (!$propertyMetadata->serializedName) { |
|
| 272 | + if ( ! $propertyMetadata->serializedName) { |
|
| 273 | 273 | $propertyMetadata->serializedName = $this->namingStrategy->translateName($propertyMetadata); |
| 274 | 274 | } |
| 275 | 275 | |
@@ -280,7 +280,7 @@ discard block |
||
| 280 | 280 | } |
| 281 | 281 | |
| 282 | 282 | if ( |
| 283 | - (ExclusionPolicy::NONE === $exclusionPolicy && !$isExclude) |
|
| 283 | + (ExclusionPolicy::NONE === $exclusionPolicy && ! $isExclude) |
|
| 284 | 284 | || (ExclusionPolicy::ALL === $exclusionPolicy && $isExpose) |
| 285 | 285 | ) { |
| 286 | 286 | $propertyMetadata->setAccessor($accessType, $accessor[0], $accessor[1]); |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | } |
| 290 | 290 | } |
| 291 | 291 | |
| 292 | - if (!$configured) { |
|
| 292 | + if ( ! $configured) { |
|
| 293 | 293 | // return null; |
| 294 | 294 | // uncomment the above line afetr a couple of months |
| 295 | 295 | } |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | |
| 307 | 307 | if (PHP_VERSION_ID >= 80000) { |
| 308 | 308 | $annotations = array_map( |
| 309 | - static function (\ReflectionAttribute $attribute): object { |
|
| 309 | + static function(\ReflectionAttribute $attribute): object { |
|
| 310 | 310 | return $attribute->newInstance(); |
| 311 | 311 | }, |
| 312 | 312 | $class->getAttributes() |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | |
| 330 | 330 | if (PHP_VERSION_ID >= 80000) { |
| 331 | 331 | $annotations = array_map( |
| 332 | - static function (\ReflectionAttribute $attribute): object { |
|
| 332 | + static function(\ReflectionAttribute $attribute): object { |
|
| 333 | 333 | return $attribute->newInstance(); |
| 334 | 334 | }, |
| 335 | 335 | $method->getAttributes() |
@@ -352,7 +352,7 @@ discard block |
||
| 352 | 352 | |
| 353 | 353 | if (PHP_VERSION_ID >= 80000) { |
| 354 | 354 | $annotations = array_map( |
| 355 | - static function (\ReflectionAttribute $attribute): object { |
|
| 355 | + static function(\ReflectionAttribute $attribute): object { |
|
| 356 | 356 | return $attribute->newInstance(); |
| 357 | 357 | }, |
| 358 | 358 | $property->getAttributes() |