Skip to content

Commit 0902c17

Browse files
committed
cs
1 parent e5bd7dc commit 0902c17

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/Command/DuplicatedDefinitionsCommand.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,16 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9696
}
9797

9898
// keep only duplicated
99-
$classMethodContextDefinitionByClassMethodHash = $this->filterOutNotDuplicated($classMethodContextDefinitionByClassMethodHash);
99+
$classMethodContextDefinitionByClassMethodHash = $this->filterOutNotDuplicated(
100+
$classMethodContextDefinitionByClassMethodHash
101+
);
100102

101103
foreach ($classMethodContextDefinitionByClassMethodHash as $i => $classAndMethods) {
102104
$this->symfonyStyle->section(sprintf('%d)', $i + 1));
103105

104106
foreach ($classAndMethods as $classMethodContextDefinition) {
105107
/** @var ClassMethodContextDefinition $classMethodContextDefinition */
106-
$relativeFilePath = substr($classMethodContextDefinition->getFilePath(), strlen($testDirectory ) + 1);
108+
$relativeFilePath = substr($classMethodContextDefinition->getFilePath(), strlen($testDirectory) + 1);
107109

108110
$this->symfonyStyle->writeln(
109111
$relativeFilePath . ':' . $classMethodContextDefinition->getMethodLine()
@@ -116,7 +118,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int
116118
$this->symfonyStyle->newLine();
117119
}
118120

119-
$this->symfonyStyle->error(sprintf('Found %d duplicated class classMethod contents', count($classMethodContextDefinitionByClassMethodHash)));
121+
$this->symfonyStyle->error(
122+
sprintf('Found %d duplicated class classMethod contents', count(
123+
$classMethodContextDefinitionByClassMethodHash
124+
))
125+
);
120126

121127
return Command::FAILURE;
122128
}

0 commit comments

Comments
 (0)