@@ -230,7 +230,7 @@ |
||
230 | 230 | * @param Frame $current |
231 | 231 | * @param Frame|null $previous |
232 | 232 | * |
233 | - * @return bool[] |
|
233 | + * @return boolean[] |
|
234 | 234 | */ |
235 | 235 | private function getIfTargets($rootType, Frame $current, Frame $previous = null) |
236 | 236 | { |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | foreach ($includePaths as $curPath) { |
107 | 107 | if ($pathLength === 0) { |
108 | 108 | $relationshipName = $this->getRelationshipNameForTopResource($curPath); |
109 | - } elseif (strpos($curPath, $pathBeginning . DocumentInterface::PATH_SEPARATOR) === 0) { |
|
109 | + } elseif (strpos($curPath, $pathBeginning.DocumentInterface::PATH_SEPARATOR) === 0) { |
|
110 | 110 | $relationshipName = $this->getRelationshipNameForResource($curPath, $pathLength); |
111 | 111 | } else { |
112 | 112 | $relationshipName = null; |
@@ -205,8 +205,7 @@ discard block |
||
205 | 205 | { |
206 | 206 | $nextSeparatorPos = strpos($curPath, DocumentInterface::PATH_SEPARATOR, $pathLength + 1); |
207 | 207 | $relationshipName = $nextSeparatorPos === false ? |
208 | - substr($curPath, $pathLength + 1) : |
|
209 | - substr($curPath, $pathLength + 1, $nextSeparatorPos - $pathLength - 1); |
|
208 | + substr($curPath, $pathLength + 1) : substr($curPath, $pathLength + 1, $nextSeparatorPos - $pathLength - 1); |
|
210 | 209 | |
211 | 210 | return $relationshipName; |
212 | 211 | } |
@@ -243,8 +243,7 @@ |
||
243 | 243 | { |
244 | 244 | ($data === null || (is_array($data) === true && empty($data) === true)) ?: Exceptions::throwLogicException(); |
245 | 245 | |
246 | - $replyType = ($data === null ? ParserReplyInterface::REPLY_TYPE_NULL_RESOURCE_STARTED : |
|
247 | - ParserReplyInterface::REPLY_TYPE_EMPTY_RESOURCE_STARTED); |
|
246 | + $replyType = ($data === null ? ParserReplyInterface::REPLY_TYPE_NULL_RESOURCE_STARTED : ParserReplyInterface::REPLY_TYPE_EMPTY_RESOURCE_STARTED); |
|
248 | 247 | |
249 | 248 | return $this->parserFactory->createEmptyReply($replyType, $this->stack); |
250 | 249 | } |
@@ -129,7 +129,7 @@ |
||
129 | 129 | $this->path = $this->relationship->getName(); |
130 | 130 | } else { |
131 | 131 | $this->path = |
132 | - $this->previous->getPath() . DocumentInterface::PATH_SEPARATOR . $this->relationship->getName(); |
|
132 | + $this->previous->getPath().DocumentInterface::PATH_SEPARATOR.$this->relationship->getName(); |
|
133 | 133 | } |
134 | 134 | } |
135 | 135 | } |
@@ -72,7 +72,7 @@ |
||
72 | 72 | |
73 | 73 | $this->type = $type; |
74 | 74 | $this->subType = $subType; |
75 | - $this->mediaType = $type . '/' . $subType; |
|
75 | + $this->mediaType = $type.'/'.$subType; |
|
76 | 76 | $this->parameters = $parameters; |
77 | 77 | } |
78 | 78 |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | public function __construct($unsortedMediaTypes) |
33 | 33 | { |
34 | 34 | |
35 | - if (is_array($unsortedMediaTypes) === false) { |
|
35 | + if (is_array($unsortedMediaTypes) === false) { |
|
36 | 36 | throw new InvalidArgumentException('unsortedMediaTypes'); |
37 | 37 | } |
38 | 38 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | */ |
78 | 78 | private function getMediaTypeCompareClosure() |
79 | 79 | { |
80 | - return function (AcceptMediaTypeInterface $lhs, AcceptMediaTypeInterface $rhs) { |
|
80 | + return function(AcceptMediaTypeInterface $lhs, AcceptMediaTypeInterface $rhs) { |
|
81 | 81 | $qualityCompare = $this->compareQuality($lhs->getQuality(), $rhs->getQuality()); |
82 | 82 | if ($qualityCompare !== 0) { |
83 | 83 | return $qualityCompare; |
@@ -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->getResourceType(); |
|
88 | + $this->selfSubUrl = '/'.$this->getResourceType(); |
|
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 | } |
@@ -54,7 +54,7 @@ |
||
54 | 54 | { |
55 | 55 | $prefix = $this->isAscending() ? '' : '-'; |
56 | 56 | |
57 | - return $prefix . $this->getField(); |
|
57 | + return $prefix.$this->getField(); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |