src/Modules/Content/ReadCache.php
Avoid unused parameters such as '$output'. Open
Open
public function __invoke(Project $project, OutputInterface $output)
- Read upRead up
- 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
Opening parenthesis of a multi-line function call must be the last content on the line Open
Open
$cache = new Cache($project->currentWorkingDirectory.DIRECTORY_SEPARATOR.'.'.$project->environment.'_cache',
- Exclude checks
Closing parenthesis of a multi-line function call must be on a line by itself Open
Open
$this->createInvalidationHash($project));
- Exclude checks
Multi-line function call not indented correctly; expected 8 spaces but found 12 Open
Open
$this->createInvalidationHash($project));
- Exclude checks