Backoffice/DisplayBlock/Strategies/DefaultStrategy.php
Avoid unused parameters such as '$block'. Open
Open
public function toString(ReadBlockInterface $block)
- 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 '$block'. Open
Open
public function support(ReadBlockInterface $block)
- 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
Returning type string
but show()
is declared to return \Symfony\Component\HttpFoundation\Response
Open
Open
return $this->render(
- Create a ticketCreate a ticket
- Exclude checks
Parameter $block
has undeclared type \OpenOrchestra\ModelInterface\Model\ReadBlockInterface
Open
Open
public function toString(ReadBlockInterface $block)
- Create a ticketCreate a ticket
- Exclude checks
Parameter $block
has undeclared type \OpenOrchestra\ModelInterface\Model\ReadBlockInterface
Open
Open
public function support(ReadBlockInterface $block)
- Create a ticketCreate a ticket
- Exclude checks
Parameter $block
has undeclared type \OpenOrchestra\ModelInterface\Model\ReadBlockInterface
Open
Open
public function show(ReadBlockInterface $block)
- Create a ticketCreate a ticket
- Exclude checks
Return type of show()
is undeclared type \Symfony\Component\HttpFoundation\Response
Open
Open
public function show(ReadBlockInterface $block)
- Create a ticketCreate a ticket
- Exclude checks
Call to method getLabel
from undeclared class \OpenOrchestra\ModelInterface\Model\ReadBlockInterface
Open
Open
array('label' => $block->getLabel())
- Create a ticketCreate a ticket
- Exclude checks