@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | $integration->setInContainer(FactoryInterface::class, $factory); |
| 64 | 64 | |
| 65 | 65 | // register config |
| 66 | - $config = $integration->getConfig(); |
|
| 66 | + $config = $integration->getConfig(); |
|
| 67 | 67 | $integration->setInContainer(C::class, $config); |
| 68 | 68 | |
| 69 | 69 | // register schemas |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | */ |
| 136 | 136 | protected function getDecoderClosure() |
| 137 | 137 | { |
| 138 | - return function () { |
|
| 138 | + return function() { |
|
| 139 | 139 | return new ArrayDecoder(); |
| 140 | 140 | }; |
| 141 | 141 | } |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | EncoderOptions $encoderOptions, |
| 155 | 155 | array $config |
| 156 | 156 | ) { |
| 157 | - return function () use ($factory, $container, $encoderOptions, $config) { |
|
| 157 | + return function() use ($factory, $container, $encoderOptions, $config) { |
|
| 158 | 158 | $isShowVer = $this->getValue($config, C::JSON, C::JSON_IS_SHOW_VERSION, C::JSON_IS_SHOW_VERSION_DEFAULT); |
| 159 | 159 | $versionMeta = $this->getValue($config, C::JSON, C::JSON_VERSION_META, null); |
| 160 | 160 | $encoder = $factory->createEncoder($container, $encoderOptions); |
@@ -307,7 +307,7 @@ discard block |
||
| 307 | 307 | $outputMediaType = $this->codecMatcher->getEncoderRegisteredMatchedType(); |
| 308 | 308 | |
| 309 | 309 | $links === null ?: $encoder->withLinks($links); |
| 310 | - $meta === null ?: $encoder->withMeta($meta); |
|
| 310 | + $meta === null ?: $encoder->withMeta($meta); |
|
| 311 | 311 | |
| 312 | 312 | /** @var ResponsesInterface $responses */ |
| 313 | 313 | $responses = $this->getIntegration()->getFromContainer(ResponsesInterface::class); |
@@ -334,7 +334,7 @@ discard block |
||
| 334 | 334 | $outputMediaType = $this->codecMatcher->getEncoderRegisteredMatchedType(); |
| 335 | 335 | |
| 336 | 336 | $links === null ?: $encoder->withLinks($links); |
| 337 | - $meta === null ?: $encoder->withMeta($meta); |
|
| 337 | + $meta === null ?: $encoder->withMeta($meta); |
|
| 338 | 338 | |
| 339 | 339 | $content = $encoder->encodeData($resource, $parameters); |
| 340 | 340 | |
@@ -345,7 +345,7 @@ discard block |
||
| 345 | 345 | |
| 346 | 346 | $config = $integration->getFromContainer(C::class); |
| 347 | 347 | $urlPrefix = isset($config[C::JSON][C::JSON_URL_PREFIX]) === true ? $config[C::JSON][C::JSON_URL_PREFIX] : null; |
| 348 | - $location = $urlPrefix . $schemaContainer->getSchema($resource)->getSelfSubLink($resource)->getSubHref(); |
|
| 348 | + $location = $urlPrefix.$schemaContainer->getSchema($resource)->getSelfSubLink($resource)->getSubHref(); |
|
| 349 | 349 | |
| 350 | 350 | return $responses->getCreatedResponse($location, $outputMediaType, $content, $this->supportedExtensions); |
| 351 | 351 | } |
@@ -111,8 +111,7 @@ |
||
| 111 | 111 | */ |
| 112 | 112 | protected function getUnauthorizedResponse() |
| 113 | 113 | { |
| 114 | - $authHeaderValue = $this->realm === null ? static::AUTHENTICATION_SCHEME : |
|
| 115 | - static::AUTHENTICATION_SCHEME . ' realm="' . $this->realm . '"'; |
|
| 114 | + $authHeaderValue = $this->realm === null ? static::AUTHENTICATION_SCHEME : static::AUTHENTICATION_SCHEME.' realm="'.$this->realm.'"'; |
|
| 116 | 115 | |
| 117 | 116 | return $this->integration->createResponse( |
| 118 | 117 | null, |