Backoffice/BusinessRules/Strategies/KeywordStrategy.php
Avoid unused parameters such as '$parameters'. Open
Open
public function canDelete(KeywordInterface $keyword, array $parameters)
- 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
return KeywordInterface::ENTITY_TYPE;
- Create a ticketCreate a ticket
- Exclude checks
Call to method isUsed
from undeclared class \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open
Open
return !$keyword->isUsed();
- Create a ticketCreate a ticket
- Exclude checks
Parameter $keyword
has undeclared type \OpenOrchestra\ModelInterface\Model\KeywordInterface
Open
Open
public function canDelete(KeywordInterface $keyword, array $parameters)
- Create a ticketCreate a ticket
- Exclude checks