@@ -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 |
@@ -157,8 +157,7 @@ |
||
157 | 157 | */ |
158 | 158 | protected function checkUnrecognized(ParametersInterface $parameters) |
159 | 159 | { |
160 | - $this->allowUnrecognized === true || empty($parameters->getUnrecognizedParameters()) === true ?: |
|
161 | - $this->exceptionThrower->throwBadRequest(); |
|
160 | + $this->allowUnrecognized === true || empty($parameters->getUnrecognizedParameters()) === true ?: $this->exceptionThrower->throwBadRequest(); |
|
162 | 161 | } |
163 | 162 | |
164 | 163 | /** |
@@ -119,13 +119,12 @@ |
||
119 | 119 | if (isset($params[MediaTypeInterface::PARAM_EXT])) { |
120 | 120 | $ext = $params[MediaTypeInterface::PARAM_EXT]; |
121 | 121 | if (empty($ext) === false) { |
122 | - $contentType .= $separator . MediaTypeInterface::PARAM_EXT . '="' . $ext . '"'; |
|
122 | + $contentType .= $separator.MediaTypeInterface::PARAM_EXT.'="'.$ext.'"'; |
|
123 | 123 | $separator = ','; |
124 | 124 | } |
125 | 125 | } |
126 | 126 | |
127 | - empty($supExt) === true ?: |
|
128 | - $contentType .= $separator . MediaTypeInterface::PARAM_SUPPORTED_EXT . '="' . $supExt . '"'; |
|
127 | + empty($supExt) === true ?: $contentType .= $separator.MediaTypeInterface::PARAM_SUPPORTED_EXT.'="'.$supExt.'"'; |
|
129 | 128 | |
130 | 129 | return $contentType; |
131 | 130 | } |
@@ -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 && |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | */ |
125 | 125 | public function getSelfSubLink($resource) |
126 | 126 | { |
127 | - return new Link($this->selfSubUrl . $this->getId($resource)); |
|
127 | + return new Link($this->selfSubUrl.$this->getId($resource)); |
|
128 | 128 | } |
129 | 129 | |
130 | 130 | /** |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | $links = $this->getValue($description, self::LINKS, []); |
251 | 251 | if ($isShowSelf === true && isset($links[LinkInterface::SELF]) === false) { |
252 | 252 | $links[LinkInterface::SELF] = $this->factory->createLink( |
253 | - DocumentInterface::KEYWORD_RELATIONSHIPS. '/'.$relationshipName |
|
253 | + DocumentInterface::KEYWORD_RELATIONSHIPS.'/'.$relationshipName |
|
254 | 254 | ); |
255 | 255 | } |
256 | 256 | if ($isShowRelated === true && isset($links[LinkInterface::RELATED]) === false) { |