open-orchestra/open-orchestra-cms-bundle

View on GitHub
Backoffice/DisplayBlock/Strategies/DefaultStrategy.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused parameters such as '$block'.
Open

    public function toString(ReadBlockInterface $block)

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

    public function support(ReadBlockInterface $block)

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

        return $this->render(

Parameter $block has undeclared type \OpenOrchestra\ModelInterface\Model\ReadBlockInterface
Open

    public function toString(ReadBlockInterface $block)

Parameter $block has undeclared type \OpenOrchestra\ModelInterface\Model\ReadBlockInterface
Open

    public function support(ReadBlockInterface $block)

Parameter $block has undeclared type \OpenOrchestra\ModelInterface\Model\ReadBlockInterface
Open

    public function show(ReadBlockInterface $block)

Return type of show() is undeclared type \Symfony\Component\HttpFoundation\Response
Open

    public function show(ReadBlockInterface $block)

Call to method getLabel from undeclared class \OpenOrchestra\ModelInterface\Model\ReadBlockInterface
Open

            array('label' => $block->getLabel())

There are no issues that match your filters.

Category
Status