Skip to content

Commit

Permalink
Merge pull request #230 from carusogabriel/clean-else
Browse files Browse the repository at this point in the history
Clean else
  • Loading branch information
santigarcor committed Dec 18, 2017
2 parents 6c53d57 + 6a1c670 commit e523166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/LaratrustUserTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,9 @@ public function ability($roles, $permissions, $team = null, $options = [])
return $validateAll;
} elseif ($options['return_type'] == 'array') {
return ['roles' => $checkedRoles, 'permissions' => $checkedPermissions];
} else {
return [$validateAll, ['roles' => $checkedRoles, 'permissions' => $checkedPermissions]];
}

return [$validateAll, ['roles' => $checkedRoles, 'permissions' => $checkedPermissions]];
}

/**
Expand Down

0 comments on commit e523166

Please sign in to comment.