@@ -235,14 +235,14 @@ discard block |
||
235 | 235 | // if we are here then relationship contains paginated data, so we have to add pagination links |
236 | 236 | $offset = $relationshipData->getOffset(); |
237 | 237 | $limit = $relationshipData->getLimit(); |
238 | - $urlPrefix = $this->getRelationshipSelfSubUrl($model, $jsonRelName) . '?'; |
|
239 | - $buildLink = function (int $offset, int $limit) use ($urlPrefix) : LinkInterface { |
|
238 | + $urlPrefix = $this->getRelationshipSelfSubUrl($model, $jsonRelName).'?'; |
|
239 | + $buildLink = function(int $offset, int $limit) use ($urlPrefix) : LinkInterface { |
|
240 | 240 | $paramsWithPaging = [ |
241 | 241 | JsonApiQueryParserInterface::PARAM_PAGING_OFFSET => $offset, |
242 | 242 | JsonApiQueryParserInterface::PARAM_PAGING_LIMIT => $limit, |
243 | 243 | ]; |
244 | 244 | |
245 | - $subUrl = $urlPrefix . http_build_query($paramsWithPaging); |
|
245 | + $subUrl = $urlPrefix.http_build_query($paramsWithPaging); |
|
246 | 246 | |
247 | 247 | return $this->getFactory()->createLink(true, $subUrl, false); |
248 | 248 | }; |
@@ -341,6 +341,6 @@ discard block |
||
341 | 341 | */ |
342 | 342 | private function getRelationshipSelfSubUrl(ModelInterface $model, string $jsonRelName): string |
343 | 343 | { |
344 | - return $this->getSelfSubUrl($model) . '/relationships/' . $jsonRelName; |
|
344 | + return $this->getSelfSubUrl($model).'/relationships/'.$jsonRelName; |
|
345 | 345 | } |
346 | 346 | } |