Skip to content

Commit

Permalink
rector updates
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsn committed Jul 27, 2023
1 parent f4c889d commit b88dc4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/phpcpd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
coverage: none

- name: Detect duplicate code
run: phpcpd app/
run: phpcpd src/
2 changes: 1 addition & 1 deletion src/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ function can(string $permission): bool
{
$kinde = service('kinde');

return (bool) ($kinde->isAuthenticated() && $kinde->getPermission($permission)['isGranted']);
return $kinde->isAuthenticated() && $kinde->getPermission($permission)['isGranted'];
}

0 comments on commit b88dc4c

Please sign in to comment.