Completed
Branch develop (a2d21e)
by Neomerx
01:46
created
src/Representation/ErrorWriter.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
             DocumentInterface::KEYWORD_ERRORS_TITLE  => $error->getTitle(),
52 52
             DocumentInterface::KEYWORD_ERRORS_DETAIL => $error->getDetail(),
53 53
             DocumentInterface::KEYWORD_ERRORS_SOURCE => $error->getSource(),
54
-         ]);
54
+            ]);
55 55
 
56 56
         if ($error->hasMeta() === true) {
57 57
             $representation[DocumentInterface::KEYWORD_ERRORS_META] = $error->getMeta();
Please login to merge, or discard this patch.
src/Encoder/EncoderPropertiesTrait.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -819,7 +819,7 @@
 block discarded – undo
819 819
      * @param iterable $iterable1
820 820
      * @param iterable $iterable2
821 821
      *
822
-     * @return iterable
822
+     * @return \Generator
823 823
      */
824 824
     private function mergeIterables(iterable $iterable1, iterable $iterable2): iterable
825 825
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
     {
185 185
         assert(
186 186
             call_user_func(
187
-                function (array $paths): bool {
187
+                function(array $paths): bool {
188 188
                     $pathsOk = true;
189 189
                     foreach ($paths as $path) {
190 190
                         $pathsOk = $pathsOk === true && is_string($path) === true && empty($path) === false;
Please login to merge, or discard this patch.
src/Parser/RelationshipData/ParseRelationshipLinksTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
      * @param bool            $addSelfLink
85 85
      * @param bool            $addRelatedLink
86 86
      *
87
-     * @return iterable
87
+     * @return \Generator
88 88
      */
89 89
     private function parseLinks(
90 90
         SchemaInterface $parentSchema,
Please login to merge, or discard this patch.
src/Parser/RelationshipData/ParseRelationshipDataTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 
69 69
         $nextPosition = $factory->createPosition(
70 70
             $nextLevel,
71
-            $nextPathPrefix . $name,
71
+            $nextPathPrefix.$name,
72 72
             $parentType,
73 73
             $name
74 74
         );
Please login to merge, or discard this patch.
src/Parser/IdentifierAndResource.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 
171 171
         $currentPath    = $this->getPosition()->getPath();
172 172
         $nextLevel      = $this->getPosition()->getLevel() + 1;
173
-        $nextPathPrefix = empty($currentPath) === true ? '' : $currentPath . PositionInterface::PATH_SEPARATOR;
173
+        $nextPathPrefix = empty($currentPath) === true ? '' : $currentPath.PositionInterface::PATH_SEPARATOR;
174 174
         foreach ($this->getSchema()->getRelationships($this->getData()) as $name => $description) {
175 175
             assert($this->assertRelationshipNameAndDescription($name, $description) === true);
176 176
 
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 
193 193
             assert(
194 194
                 $hasData || $hasMeta || $hasLinks,
195
-                "Relationship `$name` for type `" . $this->getType() .
195
+                "Relationship `$name` for type `".$this->getType().
196 196
                 '` MUST contain at least one of the following: links, data or meta.'
197 197
             );
198 198
 
@@ -367,11 +367,11 @@  discard block
 block discarded – undo
367 367
     {
368 368
         assert(
369 369
             is_string($name) === true && empty($name) === false,
370
-            "Relationship names for type `" . $this->getType() . '` should be non-empty strings.'
370
+            "Relationship names for type `".$this->getType().'` should be non-empty strings.'
371 371
         );
372 372
         assert(
373 373
             is_array($description) === true && empty($description) === false,
374
-            "Relationship `$name` for type `" . $this->getType() . '` should be a non-empty array.'
374
+            "Relationship `$name` for type `".$this->getType().'` should be a non-empty array.'
375 375
         );
376 376
 
377 377
         return true;
Please login to merge, or discard this patch.