diff --git a/src/ZfcRbac/View/Strategy/RedirectStrategy.php b/src/ZfcRbac/View/Strategy/RedirectStrategy.php index b87d516..5110d11 100644 --- a/src/ZfcRbac/View/Strategy/RedirectStrategy.php +++ b/src/ZfcRbac/View/Strategy/RedirectStrategy.php @@ -62,9 +62,9 @@ public function __construct(RedirectStrategyOptions $options, AuthenticationServ public function onError(MvcEvent $event) { // Do nothing if no error or if response is not HTTP response - if (!($exception = $event->getParam('exception') instanceof UnauthorizedExceptionInterface) - || ($result = $event->getResult() instanceof HttpResponse) - || !($response = $event->getResponse() instanceof HttpResponse) + if (!($event->getParam('exception') instanceof UnauthorizedExceptionInterface) + || ($event->getResult() instanceof HttpResponse) + || !($event->getResponse() instanceof HttpResponse) ) { return; } diff --git a/src/ZfcRbac/View/Strategy/UnauthorizedStrategy.php b/src/ZfcRbac/View/Strategy/UnauthorizedStrategy.php index c6f553a..6a0f791 100644 --- a/src/ZfcRbac/View/Strategy/UnauthorizedStrategy.php +++ b/src/ZfcRbac/View/Strategy/UnauthorizedStrategy.php @@ -56,9 +56,9 @@ public function __construct(UnauthorizedStrategyOptions $options) public function onError(MvcEvent $event) { // Do nothing if no error or if response is not HTTP response - if (!($exception = $event->getParam('exception') instanceof UnauthorizedExceptionInterface) - || ($result = $event->getResult() instanceof HttpResponse) - || !($response = $event->getResponse() instanceof HttpResponse) + if (!($event->getParam('exception') instanceof UnauthorizedExceptionInterface) + || ($event->getResult() instanceof HttpResponse) + || !($event->getResponse() instanceof HttpResponse) ) { return; }