@@ -78,16 +78,16 @@ discard block |
||
78 | 78 | { |
79 | 79 | assert( |
80 | 80 | is_string($this->getResourceType()) === true && empty($this->getResourceType()) === false, |
81 | - 'Resource type is not set for Schema \'' . static::class . '\'.' |
|
81 | + 'Resource type is not set for Schema \''.static::class.'\'.' |
|
82 | 82 | ); |
83 | 83 | |
84 | 84 | if ($this->selfSubUrl === null) { |
85 | - $this->selfSubUrl = '/' . $this->getResourceType(); |
|
85 | + $this->selfSubUrl = '/'.$this->getResourceType(); |
|
86 | 86 | } else { |
87 | 87 | assert( |
88 | 88 | is_string($this->selfSubUrl) === true && empty($this->selfSubUrl) === false && |
89 | 89 | $this->selfSubUrl[0] === '/' && $this->selfSubUrl[strlen($this->selfSubUrl) - 1] != '/', |
90 | - '\'Self\' sub-url set incorrectly for Schema \'' . static::class . '\'.' |
|
90 | + '\'Self\' sub-url set incorrectly for Schema \''.static::class.'\'.' |
|
91 | 91 | ); |
92 | 92 | } |
93 | 93 | |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | */ |
108 | 108 | public function getSelfSubUrl($resource = null): string |
109 | 109 | { |
110 | - return $resource === null ? $this->selfSubUrl : $this->selfSubUrl . '/' . $this->getId($resource); |
|
110 | + return $resource === null ? $this->selfSubUrl : $this->selfSubUrl.'/'.$this->getId($resource); |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | */ |
273 | 273 | protected function getRelationshipSelfUrl($resource, $name) |
274 | 274 | { |
275 | - $url = $this->getSelfSubUrl($resource) . '/' . DocumentInterface::KEYWORD_RELATIONSHIPS . '/' . $name; |
|
275 | + $url = $this->getSelfSubUrl($resource).'/'.DocumentInterface::KEYWORD_RELATIONSHIPS.'/'.$name; |
|
276 | 276 | |
277 | 277 | return $url; |
278 | 278 | } |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | */ |
286 | 286 | protected function getRelationshipRelatedUrl($resource, $name) |
287 | 287 | { |
288 | - $url = $this->getSelfSubUrl($resource) . '/' . $name; |
|
288 | + $url = $this->getSelfSubUrl($resource).'/'.$name; |
|
289 | 289 | |
290 | 290 | return $url; |
291 | 291 | } |
@@ -92,7 +92,7 @@ |
||
92 | 92 | */ |
93 | 93 | public function getHref(string $prefix = null): string |
94 | 94 | { |
95 | - return $this->isTreatAsHref() === true ? $this->getSubHref() : $prefix . $this->getSubHref(); |
|
95 | + return $this->isTreatAsHref() === true ? $this->getSubHref() : $prefix.$this->getSubHref(); |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | /** |
@@ -87,7 +87,7 @@ |
||
87 | 87 | */ |
88 | 88 | public static function getCompare(): Closure |
89 | 89 | { |
90 | - return function (AcceptMediaTypeInterface $lhs, AcceptMediaTypeInterface $rhs) { |
|
90 | + return function(AcceptMediaTypeInterface $lhs, AcceptMediaTypeInterface $rhs) { |
|
91 | 91 | $qualityCompare = self::compareQuality($lhs->getQuality(), $rhs->getQuality()); |
92 | 92 | if ($qualityCompare !== 0) { |
93 | 93 | return $qualityCompare; |
@@ -97,7 +97,7 @@ |
||
97 | 97 | public function getMediaType(): string |
98 | 98 | { |
99 | 99 | if ($this->mediaType === null) { |
100 | - $this->mediaType = $this->getType() . '/' . $this->getSubType(); |
|
100 | + $this->mediaType = $this->getType().'/'.$this->getSubType(); |
|
101 | 101 | } |
102 | 102 | |
103 | 103 | return $this->mediaType; |
@@ -168,7 +168,7 @@ |
||
168 | 168 | { |
169 | 169 | $resSubUrl = $this->getSchemaContainer()->getSchema($resource)->getSelfSubLink($resource)->getSubHref(); |
170 | 170 | $urlPrefix = $this->getUrlPrefix(); |
171 | - $location = $urlPrefix . $resSubUrl; |
|
171 | + $location = $urlPrefix.$resSubUrl; |
|
172 | 172 | |
173 | 173 | return $location; |
174 | 174 | } |