@@ -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 | } |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | */ |
112 | 112 | public function getSelfSubLink($resource) |
113 | 113 | { |
114 | - return new Link($this->selfSubUrl . $this->getId($resource)); |
|
114 | + return new Link($this->selfSubUrl.$this->getId($resource)); |
|
115 | 115 | } |
116 | 116 | |
117 | 117 | /** |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | $links = $this->getValue($description, self::LINKS, []); |
238 | 238 | if ($isShowSelf === true && isset($links[LinkInterface::SELF]) === false) { |
239 | 239 | $links[LinkInterface::SELF] = $this->factory->createLink( |
240 | - DocumentInterface::KEYWORD_RELATIONSHIPS. '/'.$relationshipName |
|
240 | + DocumentInterface::KEYWORD_RELATIONSHIPS.'/'.$relationshipName |
|
241 | 241 | ); |
242 | 242 | } |
243 | 243 | if ($isShowRelated === true && isset($links[LinkInterface::RELATED]) === false) { |