Completed
Branch master (335615)
by
unknown
06:49
created
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/Schema/Link.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,6 +106,6 @@
 block discarded – undo
106 106
      */
107 107
     protected function buildUrl(string $prefix): string
108 108
     {
109
-        return $this->isSubUrl ? $prefix . $this->value : $this->value;
109
+        return $this->isSubUrl ? $prefix.$this->value : $this->value;
110 110
     }
111 111
 }
Please login to merge, or discard this patch.
src/Schema/BaseSchema.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     {
75 75
         // Feel free to override this method to change default URL or add meta
76 76
 
77
-        $url = $this->getSelfSubUrl($resource) . '/' . DocumentInterface::KEYWORD_RELATIONSHIPS . '/' . $name;
77
+        $url = $this->getSelfSubUrl($resource).'/'.DocumentInterface::KEYWORD_RELATIONSHIPS.'/'.$name;
78 78
 
79 79
         return $this->factory->createLink(true, $url, false);
80 80
     }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     {
87 87
         // Feel free to override this method to change default URL or add meta
88 88
 
89
-        $url = $this->getSelfSubUrl($resource) . '/' . $name;
89
+        $url = $this->getSelfSubUrl($resource).'/'.$name;
90 90
 
91 91
         return $this->factory->createLink(true, $url, false);
92 92
     }
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     protected function getResourcesSubUrl(): string
158 158
     {
159 159
         if ($this->subUrl === null) {
160
-            $this->subUrl = '/' . $this->getType();
160
+            $this->subUrl = '/'.$this->getType();
161 161
         }
162 162
 
163 163
         return $this->subUrl;
@@ -170,6 +170,6 @@  discard block
 block discarded – undo
170 170
      */
171 171
     protected function getSelfSubUrl($resource): string
172 172
     {
173
-        return $this->getResourcesSubUrl() . '/' . $this->getId($resource);
173
+        return $this->getResourcesSubUrl().'/'.$this->getId($resource);
174 174
     }
175 175
 }
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
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 
175 175
         $currentPath    = $this->position->getPath();
176 176
         $nextLevel      = $this->position->getLevel() + 1;
177
-        $nextPathPrefix = empty($currentPath) === true ? '' : $currentPath . PositionInterface::PATH_SEPARATOR;
177
+        $nextPathPrefix = empty($currentPath) === true ? '' : $currentPath.PositionInterface::PATH_SEPARATOR;
178 178
         foreach ($this->schema->getRelationships($this->data) as $name => $description) {
179 179
             \assert($this->assertRelationshipNameAndDescription($name, $description) === true);
180 180
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 
197 197
             \assert(
198 198
                 $hasData || $hasMeta || $hasLinks,
199
-                "Relationship `$name` for type `" . $this->getType() .
199
+                "Relationship `$name` for type `".$this->getType().
200 200
                 '` MUST contain at least one of the following: links, data or meta.'
201 201
             );
202 202
 
@@ -277,11 +277,11 @@  discard block
 block discarded – undo
277 277
     {
278 278
         \assert(
279 279
             \is_string($name) === true && empty($name) === false,
280
-            "Relationship names for type `" . $this->getType() . '` should be non-empty strings.'
280
+            "Relationship names for type `".$this->getType().'` should be non-empty strings.'
281 281
         );
282 282
         \assert(
283 283
             \is_array($description) === true && empty($description) === false,
284
-            "Relationship `$name` for type `" . $this->getType() . '` should be a non-empty array.'
284
+            "Relationship `$name` for type `".$this->getType().'` should be a non-empty array.'
285 285
         );
286 286
 
287 287
         return true;
Please login to merge, or discard this patch.
src/Http/Headers/MediaType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
     public function getMediaType(): string
100 100
     {
101 101
         if ($this->mediaType === null) {
102
-            $this->mediaType = $this->type . '/' . $this->getSubType();
102
+            $this->mediaType = $this->type.'/'.$this->getSubType();
103 103
         }
104 104
 
105 105
         return $this->mediaType;
Please login to merge, or discard this patch.
src/Representation/DocumentWriter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
         if (empty($attributes) === false) {
269 269
             \assert(
270 270
                 \json_encode($attributes) !== false,
271
-                'Attributes for resource type `' . $resource->getType() .
271
+                'Attributes for resource type `'.$resource->getType().
272 272
                 '` cannot be converted into JSON. Please check its Schema returns valid data.'
273 273
             );
274 274
             $representation[DocumentInterface::KEYWORD_ATTRIBUTES] = $attributes;
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
         if (empty($relationships) === false) {
279 279
             \assert(
280 280
                 \json_encode($relationships) !== false,
281
-                'Relationships for resource type `' . $resource->getType() .
281
+                'Relationships for resource type `'.$resource->getType().
282 282
                 '` cannot be converted into JSON. Please check its Schema returns valid data.'
283 283
             );
284 284
             $representation[DocumentInterface::KEYWORD_RELATIONSHIPS] = $relationships;
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
             $links = $this->getLinksRepresentation($this->getUrlPrefix(), $resource->getLinks());
289 289
             \assert(
290 290
                 \json_encode($links) !== false,
291
-                'Links for resource type `' . $resource->getType() .
291
+                'Links for resource type `'.$resource->getType().
292 292
                 '` cannot be converted into JSON. Please check its Schema returns valid data.'
293 293
             );
294 294
             $representation[DocumentInterface::KEYWORD_LINKS] = $links;
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
             $meta = $resource->getResourceMeta();
299 299
             \assert(
300 300
                 \json_encode($meta) !== false,
301
-                'Meta for resource type `' . $resource->getType() .
301
+                'Meta for resource type `'.$resource->getType().
302 302
                 '` cannot be converted into JSON. Please check its Schema returns valid data.'
303 303
             );
304 304
             $representation[DocumentInterface::KEYWORD_META] = $meta;
Please login to merge, or discard this patch.