Completed
Pull Request — master (#227)
by
unknown
02:01
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/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/Encoder/EncoderPropertiesTrait.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
     {
204 204
         assert(
205 205
             call_user_func(
206
-                function (array $paths): bool {
206
+                function(array $paths): bool {
207 207
                     $pathsOk = true;
208 208
                     foreach ($paths as $path) {
209 209
                         $pathsOk = $pathsOk === true && is_string($path) === true && empty($path) === false;
@@ -299,8 +299,7 @@  discard block
 block discarded – undo
299 299
     public function withLinks(iterable $links): EncoderInterface
300 300
     {
301 301
         $this->links = $this->hasLinks() === false ?
302
-            $links :
303
-            $this->links = array_merge(
302
+            $links : $this->links = array_merge(
304 303
                 $this->iterableToArray($this->getLinks()),
305 304
                 $this->iterableToArray($links)
306 305
             );
Please login to merge, or discard this patch.
src/Parser/IdentifierAndResource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@
 block discarded – undo
170 170
 
171 171
         $currentPath    = $this->position->getPath();
172 172
         $nextLevel      = $this->position->getLevel() + 1;
173
-        $nextPathPrefix = empty($currentPath) === true ? '' : $currentPath . PositionInterface::PATH_SEPARATOR;
173
+        $nextPathPrefix = empty($currentPath) === true ? '' : $currentPath.PositionInterface::PATH_SEPARATOR;
174 174
         foreach ($this->schema->getRelationships($this->data) as $name => $description) {
175 175
             assert($this->assertRelationshipNameAndDescription($name, $description) === true);
176 176
 
Please login to merge, or discard this patch.