Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
luceos authored and StyleCIBot committed May 24, 2020
1 parent 3428213 commit 924204c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/User/Gate.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ public function allows($actor, $ability, $arguments)
new GetPermission($actor, $ability, $arguments)
);

if (!is_null($allowed)) {
if (! is_null($allowed)) {
return $allowed;
}

// If no policy covered this permission query, we will only grant
// the permission if the actor's groups have it. Otherwise, we will
// not allow the user to perform this action.
if ($actor->isAdmin() || (!$arguments && $actor->hasPermission($ability))) {
if ($actor->isAdmin() || (! $arguments && $actor->hasPermission($ability))) {
return true;
}

Expand Down
1 change: 0 additions & 1 deletion src/User/UserServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
use Illuminate\Contracts\Filesystem\Factory;
use Illuminate\Support\Arr;
use League\Flysystem\FilesystemInterface;
use RuntimeException;

class UserServiceProvider extends AbstractServiceProvider
{
Expand Down

0 comments on commit 924204c

Please sign in to comment.