@@ -127,8 +127,7 @@ |
||
| 127 | 127 | if ($this->parsedResources === null) { |
| 128 | 128 | foreach ($this->resources as $resourceOrIdentifier) { |
| 129 | 129 | $parsedResource = $resourceOrIdentifier instanceof SchemaIdentifierInterface ? |
| 130 | - $this->createParsedIdentifier($resourceOrIdentifier) : |
|
| 131 | - $this->createParsedResource($resourceOrIdentifier); |
|
| 130 | + $this->createParsedIdentifier($resourceOrIdentifier) : $this->createParsedResource($resourceOrIdentifier); |
|
| 132 | 131 | $this->parsedResources[] = $parsedResource; |
| 133 | 132 | |
| 134 | 133 | yield $parsedResource; |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | |
| 206 | 206 | \assert( |
| 207 | 207 | \call_user_func( |
| 208 | - function (array $paths): bool { |
|
| 208 | + function(array $paths): bool { |
|
| 209 | 209 | $pathsOk = true; |
| 210 | 210 | foreach ($paths as $path) { |
| 211 | 211 | $pathsOk = $pathsOk === true && \is_string($path) === true && empty($path) === false; |
@@ -301,8 +301,7 @@ discard block |
||
| 301 | 301 | public function withLinks(iterable $links): EncoderInterface |
| 302 | 302 | { |
| 303 | 303 | $this->links = $this->hasLinks() === false ? |
| 304 | - $links : |
|
| 305 | - $this->links = \array_merge( |
|
| 304 | + $links : $this->links = \array_merge( |
|
| 306 | 305 | $this->iterableToArray($this->getLinks()), |
| 307 | 306 | $this->iterableToArray($links) |
| 308 | 307 | ); |