From 365104ac9fede75eb0d7e34b68312c48b735a99d Mon Sep 17 00:00:00 2001 From: "Kevin Veen-Birkenbach [aka. Frantz]" Date: Thu, 2 Apr 2020 22:10:34 +0200 Subject: [PATCH] Refactored parameter name --- .../symfony/src/Domain/Secure/SecureSourceChecker.php | 4 ++-- .../src/Domain/Secure/SecureSourceCheckerInterface.php | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/application/symfony/src/Domain/Secure/SecureSourceChecker.php b/application/symfony/src/Domain/Secure/SecureSourceChecker.php index c0ebeb9..cb34bb9 100644 --- a/application/symfony/src/Domain/Secure/SecureSourceChecker.php +++ b/application/symfony/src/Domain/Secure/SecureSourceChecker.php @@ -74,10 +74,10 @@ final class SecureSourceChecker implements SecureSourceCheckerInterface * * @see \Infinito\Domain\Secure\SecureSourceCheckerInterface::hasPermission() */ - public function hasPermission(RightInterface $requestedRight): bool + public function hasPermission(RightInterface $right): bool { $law = new LawPermissionChecker($this->source->getLaw()); - return $law->hasPermission($requestedRight) && $this->itterateOverSourceAttributs($requestedRight); + return $law->hasPermission($right) && $this->itterateOverSourceAttributs($right); } } diff --git a/application/symfony/src/Domain/Secure/SecureSourceCheckerInterface.php b/application/symfony/src/Domain/Secure/SecureSourceCheckerInterface.php index 3737e9a..4312364 100644 --- a/application/symfony/src/Domain/Secure/SecureSourceCheckerInterface.php +++ b/application/symfony/src/Domain/Secure/SecureSourceCheckerInterface.php @@ -9,8 +9,5 @@ use Infinito\Entity\Meta\RightInterface; */ interface SecureSourceCheckerInterface { - /** - * @param RightInterface $right - */ - public function hasPermission(RightInterface $requestedRight): bool; + public function hasPermission(RightInterface $right): bool; }