Completed
Push — develop ( c1ef57...2d3e63 )
by Neomerx
36:35 queued 15:21
created
src/Contracts/Validation/FormRulesInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\Flute\Contracts\Validation;
4 4
 
Please login to merge, or discard this patch.
src/Contracts/Validation/JsonApiParserFactoryInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\Flute\Contracts\Validation;
4 4
 
Please login to merge, or discard this patch.
src/Contracts/Validation/JsonApiQueryParserInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\Flute\Contracts\Validation;
4 4
 
Please login to merge, or discard this patch.
src/Contracts/Validation/FormRulesSerializerInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\Flute\Contracts\Validation;
4 4
 
Please login to merge, or discard this patch.
src/Contracts/Validation/JsonApiQueryRulesSerializerInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\Flute\Contracts\Validation;
4 4
 
Please login to merge, or discard this patch.
src/Contracts/Validation/JsonApiQueryRulesInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\Flute\Contracts\Validation;
4 4
 
Please login to merge, or discard this patch.
src/Contracts/Validation/FormValidatorFactoryInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\Flute\Contracts\Validation;
4 4
 
Please login to merge, or discard this patch.
src/Schema/Schema.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\Flute\Schema;
4 4
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
             if ($belongsToFkName !== null && $this->hasProperty($model, $belongsToFkName) === true) {
163 163
                 $reverseIndex = $model->{$belongsToFkName};
164 164
                 $identifier   = $reverseIndex === null ?
165
-                    null : new Identifier((string)$reverseIndex, $reverseType, false, null);
165
+                    null : new Identifier((string) $reverseIndex, $reverseType, false, null);
166 166
 
167 167
                 yield $jsonRelName => [
168 168
                     static::RELATIONSHIP_DATA       => $identifier,
@@ -237,14 +237,14 @@  discard block
 block discarded – undo
237 237
         // if we are here then relationship contains paginated data, so we have to add pagination links
238 238
         $offset    = $relationshipData->getOffset();
239 239
         $limit     = $relationshipData->getLimit();
240
-        $urlPrefix = $this->getRelationshipSelfSubUrl($model, $jsonRelName) . '?';
241
-        $buildLink = function (int $offset, int $limit) use ($urlPrefix) : LinkInterface {
240
+        $urlPrefix = $this->getRelationshipSelfSubUrl($model, $jsonRelName).'?';
241
+        $buildLink = function(int $offset, int $limit) use ($urlPrefix) : LinkInterface {
242 242
             $paramsWithPaging = [
243 243
                 JsonApiQueryParserInterface::PARAM_PAGING_OFFSET => $offset,
244 244
                 JsonApiQueryParserInterface::PARAM_PAGING_LIMIT  => $limit,
245 245
             ];
246 246
 
247
-            $subUrl = $urlPrefix . http_build_query($paramsWithPaging);
247
+            $subUrl = $urlPrefix.http_build_query($paramsWithPaging);
248 248
 
249 249
             return $this->getFactory()->createLink(true, $subUrl, false);
250 250
         };
@@ -343,6 +343,6 @@  discard block
 block discarded – undo
343 343
      */
344 344
     private function getRelationshipSelfSubUrl(ModelInterface $model, string $jsonRelName): string
345 345
     {
346
-        return $this->getSelfSubUrl($model) . '/relationships/' . $jsonRelName;
346
+        return $this->getSelfSubUrl($model).'/relationships/'.$jsonRelName;
347 347
     }
348 348
 }
Please login to merge, or discard this patch.
src/Schema/JsonSchemas.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\Flute\Schema;
4 4
 
Please login to merge, or discard this patch.