@@ -377,7 +377,7 @@ discard block |
||
| 377 | 377 | */ |
| 378 | 378 | protected function getPathToData() |
| 379 | 379 | { |
| 380 | - return '/' . DocumentInterface::KEYWORD_DATA; |
|
| 380 | + return '/'.DocumentInterface::KEYWORD_DATA; |
|
| 381 | 381 | } |
| 382 | 382 | |
| 383 | 383 | /** |
@@ -385,7 +385,7 @@ discard block |
||
| 385 | 385 | */ |
| 386 | 386 | protected function getPathToType() |
| 387 | 387 | { |
| 388 | - return $this->getPathToData() . '/' . DocumentInterface::KEYWORD_TYPE; |
|
| 388 | + return $this->getPathToData().'/'.DocumentInterface::KEYWORD_TYPE; |
|
| 389 | 389 | } |
| 390 | 390 | |
| 391 | 391 | /** |
@@ -393,7 +393,7 @@ discard block |
||
| 393 | 393 | */ |
| 394 | 394 | protected function getPathToId() |
| 395 | 395 | { |
| 396 | - return $this->getPathToData() . '/' . DocumentInterface::KEYWORD_ID; |
|
| 396 | + return $this->getPathToData().'/'.DocumentInterface::KEYWORD_ID; |
|
| 397 | 397 | } |
| 398 | 398 | |
| 399 | 399 | /** |
@@ -403,7 +403,7 @@ discard block |
||
| 403 | 403 | */ |
| 404 | 404 | protected function getPathToAttribute($name) |
| 405 | 405 | { |
| 406 | - return $this->getPathToData() . '/' . DocumentInterface::KEYWORD_ATTRIBUTES . '/' . $name; |
|
| 406 | + return $this->getPathToData().'/'.DocumentInterface::KEYWORD_ATTRIBUTES.'/'.$name; |
|
| 407 | 407 | } |
| 408 | 408 | |
| 409 | 409 | /** |
@@ -413,7 +413,7 @@ discard block |
||
| 413 | 413 | */ |
| 414 | 414 | protected function getPathToRelationship($name) |
| 415 | 415 | { |
| 416 | - return $this->getPathToData() . '/' . DocumentInterface::KEYWORD_RELATIONSHIPS . '/' . $name; |
|
| 416 | + return $this->getPathToData().'/'.DocumentInterface::KEYWORD_RELATIONSHIPS.'/'.$name; |
|
| 417 | 417 | } |
| 418 | 418 | |
| 419 | 419 | /** |
@@ -423,8 +423,8 @@ discard block |
||
| 423 | 423 | */ |
| 424 | 424 | protected function getPathToRelationshipType($name) |
| 425 | 425 | { |
| 426 | - return $this->getPathToRelationship($name) . '/' . |
|
| 427 | - DocumentInterface::KEYWORD_DATA . '/' . DocumentInterface::KEYWORD_TYPE; |
|
| 426 | + return $this->getPathToRelationship($name).'/'. |
|
| 427 | + DocumentInterface::KEYWORD_DATA.'/'.DocumentInterface::KEYWORD_TYPE; |
|
| 428 | 428 | } |
| 429 | 429 | |
| 430 | 430 | /** |
@@ -434,7 +434,7 @@ discard block |
||
| 434 | 434 | */ |
| 435 | 435 | protected function getPathToRelationshipId($name) |
| 436 | 436 | { |
| 437 | - return $this->getPathToRelationship($name) . '/' . |
|
| 438 | - DocumentInterface::KEYWORD_DATA . '/' . DocumentInterface::KEYWORD_ID; |
|
| 437 | + return $this->getPathToRelationship($name).'/'. |
|
| 438 | + DocumentInterface::KEYWORD_DATA.'/'.DocumentInterface::KEYWORD_ID; |
|
| 439 | 439 | } |
| 440 | 440 | } |
@@ -149,8 +149,7 @@ |
||
| 149 | 149 | */ |
| 150 | 150 | protected function checkUnrecognized(ParametersInterface $parameters) |
| 151 | 151 | { |
| 152 | - $this->allowUnrecognized === true || empty($parameters->getUnrecognizedParameters()) === true ?: |
|
| 153 | - E::throwException(new E([], E::HTTP_CODE_BAD_REQUEST)); |
|
| 152 | + $this->allowUnrecognized === true || empty($parameters->getUnrecognizedParameters()) === true ?: E::throwException(new E([], E::HTTP_CODE_BAD_REQUEST)); |
|
| 154 | 153 | } |
| 155 | 154 | |
| 156 | 155 | /** |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | { |
| 150 | 150 | $resSubUrl = $this->getSchemaContainer()->getSchema($resource)->getSelfSubLink($resource)->getSubHref(); |
| 151 | 151 | $urlPrefix = $this->getUrlPrefix(); |
| 152 | - $location = $urlPrefix . $resSubUrl; |
|
| 152 | + $location = $urlPrefix.$resSubUrl; |
|
| 153 | 153 | |
| 154 | 154 | return $location; |
| 155 | 155 | } |
@@ -171,14 +171,14 @@ discard block |
||
| 171 | 171 | if (isset($params[MediaTypeInterface::PARAM_EXT])) { |
| 172 | 172 | $ext = $params[MediaTypeInterface::PARAM_EXT]; |
| 173 | 173 | if (empty($ext) === false) { |
| 174 | - $contentType .= $separator . MediaTypeInterface::PARAM_EXT . '="' . $ext . '"'; |
|
| 174 | + $contentType .= $separator.MediaTypeInterface::PARAM_EXT.'="'.$ext.'"'; |
|
| 175 | 175 | $separator = ','; |
| 176 | 176 | } |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | $extensions = $this->getSupportedExtensions(); |
| 180 | 180 | if ($extensions !== null && ($list = $extensions->getExtensions()) !== null && empty($list) === false) { |
| 181 | - $contentType .= $separator . MediaTypeInterface::PARAM_SUPPORTED_EXT . '="' . $list . '"'; |
|
| 181 | + $contentType .= $separator.MediaTypeInterface::PARAM_SUPPORTED_EXT.'="'.$list.'"'; |
|
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | $headers[self::HEADER_CONTENT_TYPE] = $contentType; |