Completed
Pull Request — master (#253)
by
unknown
11:46
created
src/Parser/IdentifierAndResource.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -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;
Please login to merge, or discard this patch.
src/Parser/RelationshipData/RelationshipDataIsCollection.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,8 +131,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.