Backoffice/Security/Authorization/Voter/PlatformAdministrationVoter.php
Avoid unused parameters such as '$attribute'. Open
Open
protected function voteOnAttribute($attribute, $subject, TokenInterface $token)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
Avoid unused parameters such as '$subject'. Open
Open
protected function voteOnAttribute($attribute, $subject, TokenInterface $token)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
Reference to constant ENTITY_TYPE
from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open
Open
KeywordInterface::ENTITY_TYPE,
- Create a ticketCreate a ticket
- Exclude checks
Parameter $token
has undeclared type \Symfony\Component\Security\Core\Authentication\Token\TokenInterface
Open
Open
protected function voteOnAttribute($attribute, $subject, TokenInterface $token)
- Create a ticketCreate a ticket
- Exclude checks
Reference to constant ENTITY_TYPE
from undeclared class \OpenOrchestra\BaseApi\Model\ApiClientInterface
Open
Open
ApiClientInterface::ENTITY_TYPE
- Create a ticketCreate a ticket
- Exclude checks