@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | |
186 | 186 | $currentPath = $this->position->getPath(); |
187 | 187 | $nextLevel = $this->position->getLevel() + 1; |
188 | - $nextPathPrefix = empty($currentPath) === true ? '' : $currentPath . PositionInterface::PATH_SEPARATOR; |
|
188 | + $nextPathPrefix = empty($currentPath) === true ? '' : $currentPath.PositionInterface::PATH_SEPARATOR; |
|
189 | 189 | $this->getContext()->setPosition($this->getPosition()); |
190 | 190 | foreach ($this->schema->getRelationships($this->data, $this->getContext()) as $name => $description) { |
191 | 191 | \assert($this->assertRelationshipNameAndDescription($name, $description) === true); |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | |
210 | 210 | \assert( |
211 | 211 | $hasData || $hasMeta || $hasLinks, |
212 | - "Relationship `$name` for type `" . $this->getType() . |
|
212 | + "Relationship `$name` for type `".$this->getType(). |
|
213 | 213 | '` MUST contain at least one of the following: links, data or meta.' |
214 | 214 | ); |
215 | 215 | |
@@ -298,11 +298,11 @@ discard block |
||
298 | 298 | { |
299 | 299 | \assert( |
300 | 300 | \is_string($name) === true && empty($name) === false, |
301 | - "Relationship names for type `" . $this->getType() . '` should be non-empty strings.' |
|
301 | + "Relationship names for type `".$this->getType().'` should be non-empty strings.' |
|
302 | 302 | ); |
303 | 303 | \assert( |
304 | 304 | \is_array($description) === true && empty($description) === false, |
305 | - "Relationship `$name` for type `" . $this->getType() . '` should be a non-empty array.' |
|
305 | + "Relationship `$name` for type `".$this->getType().'` should be a non-empty array.' |
|
306 | 306 | ); |
307 | 307 | |
308 | 308 | return true; |
@@ -131,8 +131,7 @@ |
||
131 | 131 | $this->parsedResources = []; |
132 | 132 | foreach ($this->resources as $resourceOrIdentifier) { |
133 | 133 | $parsedResource = $resourceOrIdentifier instanceof SchemaIdentifierInterface ? |
134 | - $this->createParsedIdentifier($resourceOrIdentifier) : |
|
135 | - $this->createParsedResource($resourceOrIdentifier); |
|
134 | + $this->createParsedIdentifier($resourceOrIdentifier) : $this->createParsedResource($resourceOrIdentifier); |
|
136 | 135 | $this->parsedResources[] = $parsedResource; |
137 | 136 | |
138 | 137 | yield $parsedResource; |