|
@@ -185,7 +185,7 @@ discard block |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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; |