@@ -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 |
@@ -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; |
@@ -195,7 +195,7 @@ |
||
195 | 195 | protected function getResourceType($resource) |
196 | 196 | { |
197 | 197 | |
198 | - if(in_array(self::DOCTRINE_PROXY_CLASS_NAME, class_implements($resource))){ |
|
198 | + if (in_array(self::DOCTRINE_PROXY_CLASS_NAME, class_implements($resource))) { |
|
199 | 199 | return get_parent_class($resource); |
200 | 200 | } |
201 | 201 |
@@ -195,7 +195,7 @@ |
||
195 | 195 | protected function getResourceType($resource) |
196 | 196 | { |
197 | 197 | |
198 | - if(in_array(self::DOCTRINE_PROXY_CLASS_NAME, class_implements($resource))){ |
|
198 | + if(in_array(self::DOCTRINE_PROXY_CLASS_NAME, class_implements($resource))) { |
|
199 | 199 | return get_parent_class($resource); |
200 | 200 | } |
201 | 201 |