@@ -262,8 +262,7 @@ |
||
262 | 262 | protected function encodeToJson(array $document) |
263 | 263 | { |
264 | 264 | return $this->encoderOptions === null ? |
265 | - json_encode($document) : |
|
266 | - json_encode($document, $this->encoderOptions->getOptions(), $this->encoderOptions->getDepth()); |
|
265 | + json_encode($document) : json_encode($document, $this->encoderOptions->getOptions(), $this->encoderOptions->getDepth()); |
|
267 | 266 | } |
268 | 267 | |
269 | 268 | /** |
@@ -237,7 +237,7 @@ |
||
237 | 237 | private function getLinkRepresentation($prefix = null, LinkInterface $link = null) |
238 | 238 | { |
239 | 239 | return $link === null ? null : $this->getUrlRepresentation( |
240 | - $link->isTreatAsHref() === true ? $link->getSubHref() : $prefix . $link->getSubHref(), |
|
240 | + $link->isTreatAsHref() === true ? $link->getSubHref() : $prefix.$link->getSubHref(), |
|
241 | 241 | $link->getMeta() |
242 | 242 | ); |
243 | 243 | } |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | } |
86 | 86 | |
87 | 87 | if ($this->selfSubUrl === null) { |
88 | - $this->selfSubUrl = '/' . $this->resourceType . '/'; |
|
88 | + $this->selfSubUrl = '/'.$this->resourceType.'/'; |
|
89 | 89 | } else { |
90 | 90 | $isOk = |
91 | 91 | is_string($this->selfSubUrl) === true && |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | */ |
117 | 117 | public function getSelfSubUrl($resource = null) |
118 | 118 | { |
119 | - return $resource === null ? $this->selfSubUrl : $this->selfSubUrl . $this->getId($resource); |
|
119 | + return $resource === null ? $this->selfSubUrl : $this->selfSubUrl.$this->getId($resource); |
|
120 | 120 | } |
121 | 121 | |
122 | 122 | /** |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | */ |
266 | 266 | protected function getRelationshipSelfUrl($resource, $name) |
267 | 267 | { |
268 | - $url = $this->getSelfSubUrl($resource) . '/' . DocumentInterface::KEYWORD_RELATIONSHIPS . '/' . $name; |
|
268 | + $url = $this->getSelfSubUrl($resource).'/'.DocumentInterface::KEYWORD_RELATIONSHIPS.'/'.$name; |
|
269 | 269 | |
270 | 270 | return $url; |
271 | 271 | } |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | */ |
279 | 279 | protected function getRelationshipRelatedUrl($resource, $name) |
280 | 280 | { |
281 | - $url = $this->getSelfSubUrl($resource) . '/' . $name; |
|
281 | + $url = $this->getSelfSubUrl($resource).'/'.$name; |
|
282 | 282 | |
283 | 283 | return $url; |
284 | 284 | } |