@@ -34,7 +34,7 @@ |
||
| 34 | 34 | return; |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | - $parts = array_map(function ($iri) { |
|
| 37 | + $parts = array_map(function($iri) { |
|
| 38 | 38 | sprintf('(^|\,)%s($|\,)', preg_quote($iri)); |
| 39 | 39 | }, $iris); |
| 40 | 40 | $regex = isset($parts[1]) ? sprintf('(%s)', implode(')|(', $parts)) : $parts[0]; |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace ApiPlatform\Core\Serializer; |
| 15 | 15 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | $this->propertyAccessor = $propertyAccessor ?: PropertyAccess::createPropertyAccessor(); |
| 58 | 58 | $this->resourceManager = $resourceManager; |
| 59 | 59 | |
| 60 | - $this->setCircularReferenceHandler(function ($object) { |
|
| 60 | + $this->setCircularReferenceHandler(function($object) { |
|
| 61 | 61 | return $this->iriConverter->getIriFromItem($object); |
| 62 | 62 | }); |
| 63 | 63 | } |