Completed
Push — develop ( 323919...323bfc )
by Neomerx
15:34 queued 11:51
created
src/Validation/JsonApi/QueryParser.php 1 patch
Spacing   +3 added lines, -3 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\Validation\JsonApi;
4 4
 
@@ -714,7 +714,7 @@  discard block
 block discarded – undo
714 714
     {
715 715
         // no validation rule means we should accept any input value
716 716
         if ($ruleIndexes === null) {
717
-            return is_numeric($value) === true ? (int)$value : 0;
717
+            return is_numeric($value) === true ? (int) $value : 0;
718 718
         }
719 719
 
720 720
         $ruleIndex = $this->serializerClass::readRuleMainIndex($ruleIndexes);
@@ -725,7 +725,7 @@  discard block
 block discarded – undo
725 725
 
726 726
         $validatedValue = $this->readSingleCapturedValue();
727 727
 
728
-        return (int)$validatedValue;
728
+        return (int) $validatedValue;
729 729
     }
730 730
 
731 731
     /**
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
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
             if ($belongsToFkName !== null && $this->hasProperty($model, $belongsToFkName) === true) {
167 167
                 $reverseIndex = $this->getProperty($model, $belongsToFkName);
168 168
                 $identifier   = $reverseIndex === null ?
169
-                    null : new Identifier((string)$reverseIndex, $reverseType, false, null);
169
+                    null : new Identifier((string) $reverseIndex, $reverseType, false, null);
170 170
 
171 171
                 yield $jsonRelName => [
172 172
                     static::RELATIONSHIP_DATA       => $identifier,
@@ -241,14 +241,14 @@  discard block
 block discarded – undo
241 241
         // if we are here then relationship contains paginated data, so we have to add pagination links
242 242
         $offset    = $relationshipData->getOffset();
243 243
         $limit     = $relationshipData->getLimit();
244
-        $urlPrefix = $this->getRelationshipSelfSubUrl($model, $jsonRelName) . '?';
245
-        $buildLink = function (int $offset, int $limit) use ($urlPrefix) : LinkInterface {
244
+        $urlPrefix = $this->getRelationshipSelfSubUrl($model, $jsonRelName).'?';
245
+        $buildLink = function(int $offset, int $limit) use ($urlPrefix) : LinkInterface {
246 246
             $paramsWithPaging = [
247 247
                 JsonApiQueryParserInterface::PARAM_PAGING_OFFSET => $offset,
248 248
                 JsonApiQueryParserInterface::PARAM_PAGING_LIMIT  => $limit,
249 249
             ];
250 250
 
251
-            $subUrl = $urlPrefix . http_build_query($paramsWithPaging);
251
+            $subUrl = $urlPrefix.http_build_query($paramsWithPaging);
252 252
 
253 253
             return $this->getFactory()->createLink(true, $subUrl, false);
254 254
         };
@@ -360,6 +360,6 @@  discard block
 block discarded – undo
360 360
      */
361 361
     private function getRelationshipSelfSubUrl(ModelInterface $model, string $jsonRelName): string
362 362
     {
363
-        return $this->getSelfSubUrl($model) . '/' . DocumentInterface::KEYWORD_RELATIONSHIPS . '/' . $jsonRelName;
363
+        return $this->getSelfSubUrl($model).'/'.DocumentInterface::KEYWORD_RELATIONSHIPS.'/'.$jsonRelName;
364 364
     }
365 365
 }
Please login to merge, or discard this patch.