@@ -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 | } |
@@ -1,20 +1,20 @@ |
||
1 | 1 | <?php namespace Neomerx\JsonApi\Contracts\Encoder; |
2 | 2 | |
3 | 3 | /** |
4 | - * Copyright 2015 [email protected] (www.neomerx.com) |
|
5 | - * |
|
6 | - * Licensed under the Apache License, Version 2.0 (the "License"); |
|
7 | - * you may not use this file except in compliance with the License. |
|
8 | - * You may obtain a copy of the License at |
|
9 | - * |
|
10 | - * http://www.apache.org/licenses/LICENSE-2.0 |
|
11 | - * |
|
12 | - * Unless required by applicable law or agreed to in writing, software |
|
13 | - * distributed under the License is distributed on an "AS IS" BASIS, |
|
14 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
15 | - * See the License for the specific language governing permissions and |
|
16 | - * limitations under the License. |
|
17 | - */ |
|
4 | + * Copyright 2015 [email protected] (www.neomerx.com) |
|
5 | + * |
|
6 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
|
7 | + * you may not use this file except in compliance with the License. |
|
8 | + * You may obtain a copy of the License at |
|
9 | + * |
|
10 | + * http://www.apache.org/licenses/LICENSE-2.0 |
|
11 | + * |
|
12 | + * Unless required by applicable law or agreed to in writing, software |
|
13 | + * distributed under the License is distributed on an "AS IS" BASIS, |
|
14 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
15 | + * See the License for the specific language governing permissions and |
|
16 | + * limitations under the License. |
|
17 | + */ |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * @package Neomerx\JsonApi |
@@ -402,7 +402,7 @@ discard block |
||
402 | 402 | */ |
403 | 403 | protected function getPathToData() |
404 | 404 | { |
405 | - return '/' . DocumentInterface::KEYWORD_DATA; |
|
405 | + return '/'.DocumentInterface::KEYWORD_DATA; |
|
406 | 406 | } |
407 | 407 | |
408 | 408 | /** |
@@ -410,7 +410,7 @@ discard block |
||
410 | 410 | */ |
411 | 411 | protected function getPathToType() |
412 | 412 | { |
413 | - return $this->getPathToData() . '/' . DocumentInterface::KEYWORD_TYPE; |
|
413 | + return $this->getPathToData().'/'.DocumentInterface::KEYWORD_TYPE; |
|
414 | 414 | } |
415 | 415 | |
416 | 416 | /** |
@@ -418,7 +418,7 @@ discard block |
||
418 | 418 | */ |
419 | 419 | protected function getPathToId() |
420 | 420 | { |
421 | - return $this->getPathToData() . '/' . DocumentInterface::KEYWORD_ID; |
|
421 | + return $this->getPathToData().'/'.DocumentInterface::KEYWORD_ID; |
|
422 | 422 | } |
423 | 423 | |
424 | 424 | /** |
@@ -428,7 +428,7 @@ discard block |
||
428 | 428 | */ |
429 | 429 | protected function getPathToAttribute($name) |
430 | 430 | { |
431 | - return $this->getPathToData() . '/' . DocumentInterface::KEYWORD_ATTRIBUTES . '/' . $name; |
|
431 | + return $this->getPathToData().'/'.DocumentInterface::KEYWORD_ATTRIBUTES.'/'.$name; |
|
432 | 432 | } |
433 | 433 | |
434 | 434 | /** |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | */ |
437 | 437 | protected function getPathToRelationships() |
438 | 438 | { |
439 | - return $this->getPathToData() . '/' . DocumentInterface::KEYWORD_RELATIONSHIPS; |
|
439 | + return $this->getPathToData().'/'.DocumentInterface::KEYWORD_RELATIONSHIPS; |
|
440 | 440 | } |
441 | 441 | |
442 | 442 | /** |
@@ -446,7 +446,7 @@ discard block |
||
446 | 446 | */ |
447 | 447 | protected function getPathToRelationship($name) |
448 | 448 | { |
449 | - return $this->getPathToRelationships() . '/' . $name; |
|
449 | + return $this->getPathToRelationships().'/'.$name; |
|
450 | 450 | } |
451 | 451 | |
452 | 452 | /** |
@@ -456,8 +456,8 @@ discard block |
||
456 | 456 | */ |
457 | 457 | protected function getPathToRelationshipType($name) |
458 | 458 | { |
459 | - return $this->getPathToRelationship($name) . '/' . |
|
460 | - DocumentInterface::KEYWORD_DATA . '/' . DocumentInterface::KEYWORD_TYPE; |
|
459 | + return $this->getPathToRelationship($name).'/'. |
|
460 | + DocumentInterface::KEYWORD_DATA.'/'.DocumentInterface::KEYWORD_TYPE; |
|
461 | 461 | } |
462 | 462 | |
463 | 463 | /** |
@@ -467,7 +467,7 @@ discard block |
||
467 | 467 | */ |
468 | 468 | protected function getPathToRelationshipId($name) |
469 | 469 | { |
470 | - return $this->getPathToRelationship($name) . '/' . |
|
471 | - DocumentInterface::KEYWORD_DATA . '/' . DocumentInterface::KEYWORD_ID; |
|
470 | + return $this->getPathToRelationship($name).'/'. |
|
471 | + DocumentInterface::KEYWORD_DATA.'/'.DocumentInterface::KEYWORD_ID; |
|
472 | 472 | } |
473 | 473 | } |