Remove temp variables and @var comments

This commit is contained in:
Andrew Millington 2018-02-17 16:15:48 +00:00
parent 1f87c7a7be
commit 7a5c511807
No known key found for this signature in database
GPG Key ID: 815DE090877B53F3
2 changed files with 2 additions and 7 deletions

View File

@ -236,13 +236,10 @@ class OAuthServerException extends \Exception
$this->redirectUri .= (strstr($this->redirectUri, '?') === false) ? '?' : '&';
}
/** @var ResponseInterface $response */
$response = $response->withStatus(302)->withHeader('Location', $this->redirectUri . http_build_query($payload));
return $response;
return $response->withStatus(302)->withHeader('Location', $this->redirectUri . http_build_query($payload));
}
foreach ($headers as $header => $content) {
/** @var ResponseInterface $response */
$response = $response->withHeader($header, $content);
}

View File

@ -35,8 +35,6 @@ class RedirectResponse extends AbstractResponseType
*/
public function generateHttpResponse(ResponseInterface $response)
{
/** @var ResponseInterface $response */
$response = $response->withStatus(302)->withHeader('Location', $this->redirectUri);
return $response;
return $response->withStatus(302)->withHeader('Location', $this->redirectUri);
}
}