Completed
Push — develop ( 9148fa...0fd0fb )
by Neomerx
01:54
created
src/Validation/ValidatorWrapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
     protected function setWrapperErrors(array $wrapperErrors): self
163 163
     {
164 164
         if (empty($wrapperErrors) === false) {
165
-            assert(call_user_func(function () use ($wrapperErrors) : bool {
165
+            assert(call_user_func(function() use ($wrapperErrors) : bool {
166 166
                 $allAreErrors = true;
167 167
 
168 168
                 foreach ($wrapperErrors as $error) {
Please login to merge, or discard this patch.
src/Http/ThrowableHandlers/FluteThrowableHandler.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
             $details  = null;
100 100
             if ($this->isDebug === true) {
101 101
                 $message = $throwable->getMessage();
102
-                $details = (string)$throwable;
102
+                $details = (string) $throwable;
103 103
             }
104 104
             $errors->add(new Error(null, null, $httpCode, null, $message, $details));
105 105
         }
Please login to merge, or discard this patch.
src/Encoder/Encoder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
         parse_str($this->getOriginalUri()->getQuery(), $queryParams);
127 127
 
128
-        return function ($offset) use ($pageSize, $queryParams) {
128
+        return function($offset) use ($pageSize, $queryParams) {
129 129
             $paramsWithPaging = array_merge($queryParams, [
130 130
                 QueryParametersParserInterface::PARAM_PAGE => [
131 131
                     PaginationStrategyInterface::PARAM_PAGING_SKIP => $offset,
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
                 ],
134 134
             ]);
135 135
             $newUri           = $this->getOriginalUri()->withQuery(http_build_query($paramsWithPaging));
136
-            $fullUrl          = (string)$newUri;
136
+            $fullUrl          = (string) $newUri;
137 137
             $link             = $this->getFactory()->createLink($fullUrl, null, true);
138 138
 
139 139
             return $link;
Please login to merge, or discard this patch.
src/Http/Traits/FluteRoutesTrait.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -53,11 +53,11 @@  discard block
 block discarded – undo
53 53
         assert(array_key_exists(SchemaInterface::class, class_implements($schemeClass)) === true);
54 54
         $type = $schemeClass::TYPE;
55 55
 
56
-        $indexSlug = '/{' . CI::ROUTE_KEY_INDEX . '}';
57
-        $params    = function ($method) use ($type) {
58
-            return [RouteInterface::PARAM_NAME => $type . '_' . $method];
56
+        $indexSlug = '/{'.CI::ROUTE_KEY_INDEX.'}';
57
+        $params    = function($method) use ($type) {
58
+            return [RouteInterface::PARAM_NAME => $type.'_'.$method];
59 59
         };
60
-        $handler   = function ($method) use ($controllerClass) {
60
+        $handler   = function($method) use ($controllerClass) {
61 61
             return [$controllerClass, $method];
62 62
         };
63 63
 
@@ -70,13 +70,13 @@  discard block
 block discarded – undo
70 70
             $group->post($type, $handler(CI::METHOD_CREATE), $params(CI::METHOD_CREATE));
71 71
         }
72 72
         if (in_array(ControllerReadInterface::class, $classInterfaces) === true) {
73
-            $group->get($type . $indexSlug, $handler(CI::METHOD_READ), $params(CI::METHOD_READ));
73
+            $group->get($type.$indexSlug, $handler(CI::METHOD_READ), $params(CI::METHOD_READ));
74 74
         }
75 75
         if (in_array(ControllerUpdateInterface::class, $classInterfaces) === true) {
76
-            $group->patch($type . $indexSlug, $handler(CI::METHOD_UPDATE), $params(CI::METHOD_UPDATE));
76
+            $group->patch($type.$indexSlug, $handler(CI::METHOD_UPDATE), $params(CI::METHOD_UPDATE));
77 77
         }
78 78
         if (in_array(ControllerDeleteInterface::class, $classInterfaces) === true) {
79
-            $group->delete($type . $indexSlug, $handler(CI::METHOD_DELETE), $params(CI::METHOD_DELETE));
79
+            $group->delete($type.$indexSlug, $handler(CI::METHOD_DELETE), $params(CI::METHOD_DELETE));
80 80
         }
81 81
 
82 82
         return $group;
@@ -91,11 +91,11 @@  discard block
 block discarded – undo
91 91
      */
92 92
     protected static function controller(GroupInterface $group, string $subUri, string $controllerClass): GroupInterface
93 93
     {
94
-        $slugged = $subUri . '/{' . CI::ROUTE_KEY_INDEX . '}';
95
-        $params  = function ($method) use ($subUri) {
96
-            return [RouteInterface::PARAM_NAME => $subUri . '_' . $method];
94
+        $slugged = $subUri.'/{'.CI::ROUTE_KEY_INDEX.'}';
95
+        $params  = function($method) use ($subUri) {
96
+            return [RouteInterface::PARAM_NAME => $subUri.'_'.$method];
97 97
         };
98
-        $handler = function ($method) use ($controllerClass) {
98
+        $handler = function($method) use ($controllerClass) {
99 99
             return [$controllerClass, $method];
100 100
         };
101 101
 
@@ -112,11 +112,11 @@  discard block
 block discarded – undo
112 112
             $group->get($slugged, $handler(CI::METHOD_READ), $params(CI::METHOD_READ));
113 113
         }
114 114
         if (in_array(ControllerUpdateInterface::class, $classInterfaces) === true) {
115
-            $updateUri = $slugged . '/' . CI::METHOD_UPDATE;
115
+            $updateUri = $slugged.'/'.CI::METHOD_UPDATE;
116 116
             $group->post($updateUri, $handler(CI::METHOD_UPDATE), $params(CI::METHOD_UPDATE));
117 117
         }
118 118
         if (in_array(ControllerDeleteInterface::class, $classInterfaces) === true) {
119
-            $deleteUri = $slugged . '/' . CI::METHOD_DELETE;
119
+            $deleteUri = $slugged.'/'.CI::METHOD_DELETE;
120 120
             $group->post($deleteUri, $handler(CI::METHOD_DELETE), $params(CI::METHOD_DELETE));
121 121
         }
122 122
 
@@ -148,13 +148,13 @@  discard block
 block discarded – undo
148 148
         /** @var string $controllerClass */
149 149
         /** @var string $schemaClass */
150 150
 
151
-        $resourceIdUri = $subUri . '/{' . CI::ROUTE_KEY_INDEX . '}/';
152
-        $selfUri       = $resourceIdUri . DocumentInterface::KEYWORD_RELATIONSHIPS . '/' . $relationshipName;
151
+        $resourceIdUri = $subUri.'/{'.CI::ROUTE_KEY_INDEX.'}/';
152
+        $selfUri       = $resourceIdUri.DocumentInterface::KEYWORD_RELATIONSHIPS.'/'.$relationshipName;
153 153
 
154 154
         return $group
155 155
             // `self`
156 156
             ->get($selfUri, [$controllerClass, $selfGetMethod])
157 157
             // `related`
158
-            ->get($resourceIdUri . $relationshipName, [$controllerClass, $selfGetMethod]);
158
+            ->get($resourceIdUri.$relationshipName, [$controllerClass, $selfGetMethod]);
159 159
     }
160 160
 }
Please login to merge, or discard this patch.
src/Adapters/PaginationStrategy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     /**
69 69
      * @inheritdoc
70 70
      */
71
-    public function parseParameters(?array $parameters): array
71
+    public function parseParameters(? array $parameters) : array
72 72
     {
73 73
         if ($parameters === null) {
74 74
             return [0, $this->getDefaultPageSize()];
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             0,
82 82
             PHP_INT_MAX
83 83
         );
84
-        $size   = $this->getValue(
84
+        $size = $this->getValue(
85 85
             $parameters,
86 86
             static::PARAM_PAGING_SIZE,
87 87
             $this->getDefaultPageSize(),
Please login to merge, or discard this patch.
src/Schema/Schema.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -208,12 +208,12 @@
 block discarded – undo
208 208
             return [static::DATA => $data->getData()];
209 209
         }
210 210
 
211
-        $buildUrl = function ($offset) use ($data, $uri) {
211
+        $buildUrl = function($offset) use ($data, $uri) {
212 212
             $paramsWithPaging = [
213 213
                 PaginationStrategyInterface::PARAM_PAGING_SKIP => $offset,
214 214
                 PaginationStrategyInterface::PARAM_PAGING_SIZE => $data->getLimit(),
215 215
             ];
216
-            $fullUrl          = $uri . '?' . http_build_query($paramsWithPaging);
216
+            $fullUrl = $uri.'?'.http_build_query($paramsWithPaging);
217 217
 
218 218
             return $fullUrl;
219 219
         };
Please login to merge, or discard this patch.
src/Package/FluteSettings.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,8 +108,8 @@
 block discarded – undo
108 108
         );
109 109
         assert(empty($validatorsFileMask) === false, "Invalid Validators file mask `$validatorsFileMask`.");
110 110
 
111
-        $schemesPath    = $schemesFolder . DIRECTORY_SEPARATOR . $schemesFileMask;
112
-        $validatorsPath = $validatorsFolder . DIRECTORY_SEPARATOR . $validatorsFileMask;
111
+        $schemesPath    = $schemesFolder.DIRECTORY_SEPARATOR.$schemesFileMask;
112
+        $validatorsPath = $validatorsFolder.DIRECTORY_SEPARATOR.$validatorsFileMask;
113 113
 
114 114
         $requireUniqueTypes = $defaults[static::KEY_SCHEMES_REQUIRE_UNIQUE_TYPES] ?? true;
115 115
 
Please login to merge, or discard this patch.
src/Adapters/ModelQueryBuilder.php 2 patches
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     }
124 124
 
125 125
     /**
126
-     * @param iterable $attributes
126
+     * @param Generator $attributes
127 127
      *
128 128
      * @return self
129 129
      *
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     }
153 153
 
154 154
     /**
155
-     * @param iterable $attributes
155
+     * @param Generator $attributes
156 156
      *
157 157
      * @return self
158 158
      *
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
     }
235 235
 
236 236
     /**
237
-     * @param iterable $filters
237
+     * @param \Limoncello\Flute\Api\iterable|null $filters
238 238
      *
239 239
      * @return self
240 240
      */
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
     }
245 245
 
246 246
     /**
247
-     * @param iterable $filters
247
+     * @param \Limoncello\Flute\Api\iterable|null $filters
248 248
      *
249 249
      * @return self
250 250
      */
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
     }
255 255
 
256 256
     /**
257
-     * @param iterable $filters
257
+     * @param \Limoncello\Flute\Api\iterable|null $filters
258 258
      *
259 259
      * @return self
260 260
      */
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
 
300 300
     /**
301 301
      * @param string        $relationshipName
302
-     * @param iterable      $relationshipFilters
302
+     * @param \Limoncello\Flute\Api\iterable|null      $relationshipFilters
303 303
      * @param iterable|null $relationshipSorts
304 304
      *
305 305
      * @return self
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
     }
321 321
 
322 322
     /**
323
-     * @param iterable $sortParameters
323
+     * @param \Limoncello\Flute\Api\iterable|null $sortParameters
324 324
      *
325 325
      * @return self
326 326
      */
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
         string $relationshipName,
275 275
         iterable $relationshipFilters,
276 276
         ?iterable $relationshipSorts
277
-    ): self {
277
+    ) : self {
278 278
         $joinWith = $this->expr()->andX();
279 279
 
280 280
         return $this->addRelationshipFiltersAndSorts(
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
         string $relationshipName,
309 309
         iterable $relationshipFilters,
310 310
         ?iterable $relationshipSorts
311
-    ): self {
311
+    ) : self {
312 312
         $joinWith = $this->expr()->orX();
313 313
 
314 314
         return $this->addRelationshipFiltersAndSorts(
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
         CompositeExpression $filterLink,
372 372
         iterable $relationshipFilters,
373 373
         ?iterable $relationshipSorts
374
-    ): self {
374
+    ) : self {
375 375
         $relationshipType = $this->getModelSchemes()->getRelationshipType($this->getModelClass(), $relationshipName);
376 376
         switch ($relationshipType) {
377 377
             case RelationshipTypes::BELONGS_TO:
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
         CompositeExpression $filterLink,
445 445
         iterable $relationshipFilters,
446 446
         ?iterable $relationshipSorts
447
-    ): self {
447
+    ) : self {
448 448
         $foreignKey = $this->getModelSchemes()->getForeignKey($this->getModelClass(), $relationshipName);
449 449
         list($onePrimaryKey, $oneTable) =
450 450
             $this->getModelSchemes()->getReversePrimaryKey($this->getModelClass(), $relationshipName);
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
         CompositeExpression $filterLink,
477 477
         iterable $relationshipFilters,
478 478
         ?iterable $relationshipSorts
479
-    ): self {
479
+    ) : self {
480 480
         $primaryKey = $this->getModelSchemes()->getPrimaryKey($this->getModelClass());
481 481
         list($manyForeignKey, $manyTable) =
482 482
             $this->getModelSchemes()->getReverseForeignKey($this->getModelClass(), $relationshipName);
@@ -508,7 +508,7 @@  discard block
 block discarded – undo
508 508
         CompositeExpression $targetFilterLink,
509 509
         iterable $relationshipFilters,
510 510
         ?iterable $relationshipSorts
511
-    ): self {
511
+    ) : self {
512 512
         $primaryKey = $this->getModelSchemes()->getPrimaryKey($this->getModelClass());
513 513
         list ($intermediateTable, $intermediatePk, $intermediateFk) =
514 514
             $this->getModelSchemes()->getBelongsToManyRelationship($this->getModelClass(), $relationshipName);
@@ -556,9 +556,9 @@  discard block
 block discarded – undo
556 556
         ?CompositeExpression $targetFilterLink,
557 557
         ?iterable $targetFilterParams,
558 558
         ?iterable $relationshipSorts
559
-    ): string {
559
+    ) : string {
560 560
         $targetAlias   = $this->createAlias($targetTable);
561
-        $joinCondition = $this->buildColumnName($fromAlias, $fromColumn) . '=' .
561
+        $joinCondition = $this->buildColumnName($fromAlias, $fromColumn).'='.
562 562
             $this->buildColumnName($targetAlias, $targetColumn);
563 563
 
564 564
         $this->innerJoin(
@@ -617,7 +617,7 @@  discard block
 block discarded – undo
617 617
         ?CompositeExpression $targetFilterLink,
618 618
         ?iterable $targetFilterParams,
619 619
         ?iterable $targetSortParams
620
-    ): string {
620
+    ) : string {
621 621
         $intNoSorting = null;
622 622
         $intAlias     = $this->innerJoinOneTable(
623 623
             $fromAlias,
@@ -628,7 +628,7 @@  discard block
 block discarded – undo
628 628
             $intFilterParams,
629 629
             $intNoSorting
630 630
         );
631
-        $targetAlias  = $this->innerJoinOneTable(
631
+        $targetAlias = $this->innerJoinOneTable(
632 632
             $intAlias,
633 633
             $intToTargetColumn,
634 634
             $targetTable,
@@ -648,7 +648,7 @@  discard block
 block discarded – undo
648 648
      */
649 649
     private function createAlias(string $tableName): string
650 650
     {
651
-        $alias                          = $tableName . (++$this->aliasIdCounter);
651
+        $alias                          = $tableName.(++$this->aliasIdCounter);
652 652
         $this->knownAliases[$tableName] = $alias;
653 653
 
654 654
         return $alias;
Please login to merge, or discard this patch.
src/Api/Crud.php 2 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -615,9 +615,9 @@  discard block
 block discarded – undo
615 615
     }
616 616
 
617 617
     /**
618
-     * @param iterable $paths (string[])
618
+     * @param iterable|null $paths (string[])
619 619
      *
620
-     * @return iterable
620
+     * @return \Generator
621 621
      */
622 622
     private static function getPaths(iterable $paths): iterable
623 623
     {
@@ -1149,7 +1149,7 @@  discard block
 block discarded – undo
1149 1149
      * @param null|string $index
1150 1150
      * @param iterable    $attributes
1151 1151
      *
1152
-     * @return iterable
1152
+     * @return \Generator
1153 1153
      */
1154 1154
     protected function filterAttributesOnCreate(?string $index, iterable $attributes): iterable
1155 1155
     {
@@ -1169,7 +1169,7 @@  discard block
 block discarded – undo
1169 1169
     /**
1170 1170
      * @param iterable $attributes
1171 1171
      *
1172
-     * @return iterable
1172
+     * @return \Generator
1173 1173
      */
1174 1174
     protected function filterAttributesOnUpdate(iterable $attributes): iterable
1175 1175
     {
@@ -1341,10 +1341,10 @@  discard block
 block discarded – undo
1341 1341
 
1342 1342
     /**
1343 1343
      * @param iterable         $attributes
1344
-     * @param array            $typeNames
1344
+     * @param Type[]            $typeNames
1345 1345
      * @param AbstractPlatform $platform
1346 1346
      *
1347
-     * @return iterable
1347
+     * @return \Generator
1348 1348
      */
1349 1349
     private function readTypedAttributes(iterable $attributes, array $typeNames, AbstractPlatform $platform): iterable
1350 1350
     {
Please login to merge, or discard this patch.
Spacing   +14 added lines, -15 removed lines patch added patch discarded remove patch
@@ -635,7 +635,7 @@  discard block
 block discarded – undo
635 635
                 assert(is_string($pathPiece));
636 636
                 $parent                    = $tmpPath;
637 637
                 $tmpPath                   = empty($tmpPath) === true ?
638
-                    $pathPiece : $tmpPath . static::PATH_SEPARATOR . $pathPiece;
638
+                    $pathPiece : $tmpPath.static::PATH_SEPARATOR.$pathPiece;
639 639
                 $normalizedPaths[$tmpPath] = [$parent, $pathPiece];
640 640
                 $pathsDepths[$parent]      = $parentDepth++;
641 641
             }
@@ -772,8 +772,7 @@  discard block
 block discarded – undo
772 772
             $filters = $this->getFilters();
773 773
             $sorts   = $this->getSorts();
774 774
             $this->areFiltersWithAnd() ?
775
-                $builder->addRelationshipFiltersAndSortsWithAnd($reverseRelName, $filters, $sorts) :
776
-                $builder->addRelationshipFiltersAndSortsWithOr($reverseRelName, $filters, $sorts);
775
+                $builder->addRelationshipFiltersAndSortsWithAnd($reverseRelName, $filters, $sorts) : $builder->addRelationshipFiltersAndSortsWithOr($reverseRelName, $filters, $sorts);
777 776
         }
778 777
         // ... and the input filters to actual data we select
779 778
         if ($relationshipFilters !== null) {
@@ -851,7 +850,7 @@  discard block
 block discarded – undo
851 850
 
852 851
         $this->clearFetchParameters();
853 852
 
854
-        return (int)$deleted;
853
+        return (int) $deleted;
855 854
     }
856 855
 
857 856
     /**
@@ -872,7 +871,7 @@  discard block
 block discarded – undo
872 871
 
873 872
         $this->clearBuilderParameters()->clearFetchParameters();
874 873
 
875
-        $this->inTransaction($saveMain->getConnection(), function () use ($saveMain, $toMany, &$index) {
874
+        $this->inTransaction($saveMain->getConnection(), function() use ($saveMain, $toMany, &$index) {
876 875
             $saveMain->execute();
877 876
 
878 877
             // if no index given will use last insert ID as index
@@ -888,7 +887,7 @@  discard block
 block discarded – undo
888 887
                         ->prepareCreateInToManyRelationship($relationshipName, $index, $secondaryIdBindName)
889 888
                 );
890 889
                 foreach ($secondaryIds as $secondaryId) {
891
-                    $inserted += (int)$saveToMany->setParameter($secondaryIdBindName, $secondaryId)->execute();
890
+                    $inserted += (int) $saveToMany->setParameter($secondaryIdBindName, $secondaryId)->execute();
892 891
                 }
893 892
             }
894 893
         });
@@ -917,12 +916,12 @@  discard block
 block discarded – undo
917 916
             ->createBuilder($this->getModelClass())
918 917
             ->updateModels($allowedChanges)
919 918
             ->addFiltersWithAndToTable($filters);
920
-        $saveMain       = $this->builderSaveResourceOnUpdate($saveMain);
919
+        $saveMain = $this->builderSaveResourceOnUpdate($saveMain);
921 920
         $saveMain->getSQL(); // prepare
922 921
 
923 922
         $this->clearBuilderParameters()->clearFetchParameters();
924 923
 
925
-        $this->inTransaction($saveMain->getConnection(), function () use ($saveMain, $toMany, $index, &$updated) {
924
+        $this->inTransaction($saveMain->getConnection(), function() use ($saveMain, $toMany, $index, &$updated) {
926 925
             $updated = $saveMain->execute();
927 926
 
928 927
             foreach ($toMany as $relationshipName => $secondaryIds) {
@@ -942,12 +941,12 @@  discard block
 block discarded – undo
942 941
                         ->prepareCreateInToManyRelationship($relationshipName, $index, $secondaryIdBindName)
943 942
                 );
944 943
                 foreach ($secondaryIds as $secondaryId) {
945
-                    $updated += (int)$saveToMany->setParameter($secondaryIdBindName, $secondaryId)->execute();
944
+                    $updated += (int) $saveToMany->setParameter($secondaryIdBindName, $secondaryId)->execute();
946 945
                 }
947 946
             }
948 947
         });
949 948
 
950
-        return (int)$updated;
949
+        return (int) $updated;
951 950
     }
952 951
 
953 952
     /**
@@ -1050,7 +1049,7 @@  discard block
 block discarded – undo
1050 1049
     public function fetchRow(
1051 1050
         QueryBuilder $builder = null,
1052 1051
         string $modelClass = null
1053
-    ): ?array {
1052
+    ): ? array {
1054 1053
         if ($builder === null && $modelClass === null) {
1055 1054
             $builder    = $this->getIndexModelBuilder();
1056 1055
             $modelClass = $builder->getModelClass();
@@ -1151,7 +1150,7 @@  discard block
 block discarded – undo
1151 1150
      *
1152 1151
      * @return iterable
1153 1152
      */
1154
-    protected function filterAttributesOnCreate(?string $index, iterable $attributes): iterable
1153
+    protected function filterAttributesOnCreate(?string $index, iterable $attributes) : iterable
1155 1154
     {
1156 1155
         if ($index !== null) {
1157 1156
             $pkName = $this->getModelSchemes()->getPrimaryKey($this->getModelClass());
@@ -1210,7 +1209,7 @@  discard block
 block discarded – undo
1210 1209
         $pkName = $this->getModelSchemes()->getPrimaryKey($parentClass);
1211 1210
 
1212 1211
         foreach ($childRelationships as $name) {
1213
-            $childrenPath = $parentsPath !== static::ROOT_PATH ? $parentsPath . static::PATH_SEPARATOR . $name : $name;
1212
+            $childrenPath = $parentsPath !== static::ROOT_PATH ? $parentsPath.static::PATH_SEPARATOR.$name : $name;
1214 1213
 
1215 1214
             $relationshipType = $this->getModelSchemes()->getRelationshipType($parentClass, $name);
1216 1215
             list ($targetModelClass, $reverseRelName) =
@@ -1231,7 +1230,7 @@  discard block
 block discarded – undo
1231 1230
                             [$pkName => [FilterParameterInterface::OPERATION_EQUALS => [$parent->{$pkName}]]],
1232 1231
                             []
1233 1232
                         );
1234
-                        $child         = $deDup->register($this->fetchResourceWithoutRelationships(
1233
+                        $child = $deDup->register($this->fetchResourceWithoutRelationships(
1235 1234
                             $clonedBuilder,
1236 1235
                             $clonedBuilder->getModelClass()
1237 1236
                         ));
@@ -1252,7 +1251,7 @@  discard block
 block discarded – undo
1252 1251
                             [$pkName => [FilterParameterInterface::OPERATION_EQUALS => [$parent->{$pkName}]]],
1253 1252
                             []
1254 1253
                         );
1255
-                        $children      = $this->fetchPaginatedResourcesWithoutRelationships(
1254
+                        $children = $this->fetchPaginatedResourcesWithoutRelationships(
1256 1255
                             $clonedBuilder,
1257 1256
                             $clonedBuilder->getModelClass()
1258 1257
                         );
Please login to merge, or discard this patch.