@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | */ |
120 | 120 | public function add(ErrorInterface $error): self |
121 | 121 | { |
122 | - $this->items[] =$error; |
|
122 | + $this->items[] = $error; |
|
123 | 123 | |
124 | 124 | return $this; |
125 | 125 | } |
@@ -422,7 +422,7 @@ discard block |
||
422 | 422 | */ |
423 | 423 | protected function getPathToData(): string |
424 | 424 | { |
425 | - return '/' . DocumentInterface::KEYWORD_DATA; |
|
425 | + return '/'.DocumentInterface::KEYWORD_DATA; |
|
426 | 426 | } |
427 | 427 | |
428 | 428 | /** |
@@ -430,7 +430,7 @@ discard block |
||
430 | 430 | */ |
431 | 431 | protected function getPathToType(): string |
432 | 432 | { |
433 | - return $this->getPathToData() . '/' . DocumentInterface::KEYWORD_TYPE; |
|
433 | + return $this->getPathToData().'/'.DocumentInterface::KEYWORD_TYPE; |
|
434 | 434 | } |
435 | 435 | |
436 | 436 | /** |
@@ -438,7 +438,7 @@ discard block |
||
438 | 438 | */ |
439 | 439 | protected function getPathToId(): string |
440 | 440 | { |
441 | - return $this->getPathToData() . '/' . DocumentInterface::KEYWORD_ID; |
|
441 | + return $this->getPathToData().'/'.DocumentInterface::KEYWORD_ID; |
|
442 | 442 | } |
443 | 443 | |
444 | 444 | /** |
@@ -446,7 +446,7 @@ discard block |
||
446 | 446 | */ |
447 | 447 | protected function getPathToAttributes(): string |
448 | 448 | { |
449 | - return $this->getPathToData() . '/' . DocumentInterface::KEYWORD_ATTRIBUTES; |
|
449 | + return $this->getPathToData().'/'.DocumentInterface::KEYWORD_ATTRIBUTES; |
|
450 | 450 | } |
451 | 451 | |
452 | 452 | /** |
@@ -456,7 +456,7 @@ discard block |
||
456 | 456 | */ |
457 | 457 | protected function getPathToAttribute(string $name): string |
458 | 458 | { |
459 | - return $this->getPathToData() . '/' . DocumentInterface::KEYWORD_ATTRIBUTES . '/' . $name; |
|
459 | + return $this->getPathToData().'/'.DocumentInterface::KEYWORD_ATTRIBUTES.'/'.$name; |
|
460 | 460 | } |
461 | 461 | |
462 | 462 | /** |
@@ -464,7 +464,7 @@ discard block |
||
464 | 464 | */ |
465 | 465 | protected function getPathToRelationships(): string |
466 | 466 | { |
467 | - return $this->getPathToData() . '/' . DocumentInterface::KEYWORD_RELATIONSHIPS; |
|
467 | + return $this->getPathToData().'/'.DocumentInterface::KEYWORD_RELATIONSHIPS; |
|
468 | 468 | } |
469 | 469 | |
470 | 470 | /** |
@@ -474,7 +474,7 @@ discard block |
||
474 | 474 | */ |
475 | 475 | protected function getPathToRelationship(string $name): string |
476 | 476 | { |
477 | - return $this->getPathToRelationships() . '/' . $name; |
|
477 | + return $this->getPathToRelationships().'/'.$name; |
|
478 | 478 | } |
479 | 479 | |
480 | 480 | /** |
@@ -484,8 +484,8 @@ discard block |
||
484 | 484 | */ |
485 | 485 | protected function getPathToRelationshipType(string $name): string |
486 | 486 | { |
487 | - return $this->getPathToRelationship($name) . '/' . |
|
488 | - DocumentInterface::KEYWORD_DATA . '/' . DocumentInterface::KEYWORD_TYPE; |
|
487 | + return $this->getPathToRelationship($name).'/'. |
|
488 | + DocumentInterface::KEYWORD_DATA.'/'.DocumentInterface::KEYWORD_TYPE; |
|
489 | 489 | } |
490 | 490 | |
491 | 491 | /** |
@@ -495,7 +495,7 @@ discard block |
||
495 | 495 | */ |
496 | 496 | protected function getPathToRelationshipId(string $name): string |
497 | 497 | { |
498 | - return $this->getPathToRelationship($name) . '/' . |
|
499 | - DocumentInterface::KEYWORD_DATA . '/' . DocumentInterface::KEYWORD_ID; |
|
498 | + return $this->getPathToRelationship($name).'/'. |
|
499 | + DocumentInterface::KEYWORD_DATA.'/'.DocumentInterface::KEYWORD_ID; |
|
500 | 500 | } |
501 | 501 | } |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | { |
76 | 76 | // Feel free to override this method to change default URL or add meta |
77 | 77 | |
78 | - $url = $this->getSelfSubUrl($resource) . '/' . DocumentInterface::KEYWORD_RELATIONSHIPS . '/' . $name; |
|
78 | + $url = $this->getSelfSubUrl($resource).'/'.DocumentInterface::KEYWORD_RELATIONSHIPS.'/'.$name; |
|
79 | 79 | |
80 | 80 | return $this->getFactory()->createLink(true, $url, false); |
81 | 81 | } |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | { |
88 | 88 | // Feel free to override this method to change default URL or add meta |
89 | 89 | |
90 | - $url = $this->getSelfSubUrl($resource) . '/' . $name; |
|
90 | + $url = $this->getSelfSubUrl($resource).'/'.$name; |
|
91 | 91 | |
92 | 92 | return $this->getFactory()->createLink(true, $url, false); |
93 | 93 | } |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | protected function getResourcesSubUrl(): string |
155 | 155 | { |
156 | 156 | if ($this->subUrl === null) { |
157 | - $this->subUrl = '/' . $this->getType(); |
|
157 | + $this->subUrl = '/'.$this->getType(); |
|
158 | 158 | } |
159 | 159 | |
160 | 160 | return $this->subUrl; |
@@ -167,6 +167,6 @@ discard block |
||
167 | 167 | */ |
168 | 168 | protected function getSelfSubUrl($resource): string |
169 | 169 | { |
170 | - return $this->getResourcesSubUrl() . '/' . $this->getId($resource); |
|
170 | + return $this->getResourcesSubUrl().'/'.$this->getId($resource); |
|
171 | 171 | } |
172 | 172 | } |
@@ -138,6 +138,6 @@ |
||
138 | 138 | */ |
139 | 139 | protected function buildUrl(string $prefix): string |
140 | 140 | { |
141 | - return $this->isSubUrl() ? $prefix . $this->getValue() : $this->getValue(); |
|
141 | + return $this->isSubUrl() ? $prefix.$this->getValue() : $this->getValue(); |
|
142 | 142 | } |
143 | 143 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | /** |
41 | 41 | * Message code. |
42 | 42 | */ |
43 | - const MSG_INVALID_SCHEME ='Schema for type `%s` must be non-empty string, callable or SchemaInterface instance.'; |
|
43 | + const MSG_INVALID_SCHEME = 'Schema for type `%s` must be non-empty string, callable or SchemaInterface instance.'; |
|
44 | 44 | |
45 | 45 | /** |
46 | 46 | * Message code. |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | */ |
79 | 79 | public function __construct(FactoryInterface $factory, iterable $schemas) |
80 | 80 | { |
81 | - $this->factory = $factory; |
|
81 | + $this->factory = $factory; |
|
82 | 82 | $this->registerCollection($schemas); |
83 | 83 | } |
84 | 84 |