Skip to content

Commit

Permalink
Apply analysis fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MGatner committed Jul 12, 2022
1 parent 1a4ddf5 commit 0dd5766
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Config/Routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Myth\Auth\Config;

use Myth\Auth\Config\Auth as AuthConfig;
use CodeIgniter\Router\RouteCollection;
use Myth\Auth\Config\Auth as AuthConfig;

/** @var RouteCollection $routes */

Expand Down
2 changes: 1 addition & 1 deletion src/Filters/LoginFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class LoginFilter extends BaseFilter implements FilterInterface
public function before(RequestInterface $request, $arguments = null)
{
// Make sure this isn't already a Myth\Auth routes.
foreach ($this->reservedRoutes as $reservedRoutes => $reservedRoute) {
foreach ($this->reservedRoutes as $reservedRoute) {
if (url_is(route_to($reservedRoute))) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Filters/PermissionFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function before(RequestInterface $request, $arguments = null)
$result = true;

// Check each requested permission
foreach ($params as $permission) {
foreach ($arguments as $permission) {
$result = ($result && $this->authorize->hasPermission($permission, $this->authenticate->id()));
}

Expand Down
2 changes: 1 addition & 1 deletion src/Filters/RoleFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function before(RequestInterface $request, $arguments = null)
}

// Check each requested permission
foreach ($params as $group) {
foreach ($arguments as $group) {
if ($this->authorize->inGroup($group, $this->authenticate->id())) {
return;
}
Expand Down

0 comments on commit 0dd5766

Please sign in to comment.