tapestry-cloud/tapestry

View on GitHub
src/Modules/Content/ReadCache.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Avoid unused parameters such as '$output'.
Open

    public function __invoke(Project $project, OutputInterface $output)
Severity: Minor
Found in src/Modules/Content/ReadCache.php by phpmd

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

Opening parenthesis of a multi-line function call must be the last content on the line
Open

        $cache = new Cache($project->currentWorkingDirectory.DIRECTORY_SEPARATOR.'.'.$project->environment.'_cache',

Closing parenthesis of a multi-line function call must be on a line by itself
Open

            $this->createInvalidationHash($project));

Multi-line function call not indented correctly; expected 8 spaces but found 12
Open

            $this->createInvalidationHash($project));

There are no issues that match your filters.

Category
Status