mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-29 00:10:43 +05:30
Remove temp variables and @var comments
This commit is contained in:
parent
1f87c7a7be
commit
7a5c511807
@ -236,13 +236,10 @@ class OAuthServerException extends \Exception
|
|||||||
$this->redirectUri .= (strstr($this->redirectUri, '?') === false) ? '?' : '&';
|
$this->redirectUri .= (strstr($this->redirectUri, '?') === false) ? '?' : '&';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @var ResponseInterface $response */
|
return $response->withStatus(302)->withHeader('Location', $this->redirectUri . http_build_query($payload));
|
||||||
$response = $response->withStatus(302)->withHeader('Location', $this->redirectUri . http_build_query($payload));
|
|
||||||
return $response;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($headers as $header => $content) {
|
foreach ($headers as $header => $content) {
|
||||||
/** @var ResponseInterface $response */
|
|
||||||
$response = $response->withHeader($header, $content);
|
$response = $response->withHeader($header, $content);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,8 +35,6 @@ class RedirectResponse extends AbstractResponseType
|
|||||||
*/
|
*/
|
||||||
public function generateHttpResponse(ResponseInterface $response)
|
public function generateHttpResponse(ResponseInterface $response)
|
||||||
{
|
{
|
||||||
/** @var ResponseInterface $response */
|
return $response->withStatus(302)->withHeader('Location', $this->redirectUri);
|
||||||
$response = $response->withStatus(302)->withHeader('Location', $this->redirectUri);
|
|
||||||
return $response;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user