Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #257 from MalteGerth/patch-1
Browse files Browse the repository at this point in the history
removed unused assignments in conditions
  • Loading branch information
bakura10 committed Jun 30, 2014
2 parents f6356a6 + 70b4d77 commit 02a5593
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/ZfcRbac/View/Strategy/RedirectStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
6 changes: 3 additions & 3 deletions src/ZfcRbac/View/Strategy/UnauthorizedStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 02a5593

Please sign in to comment.