Skip to content

Commit 549cd14

Browse files
committed
Remove unnecesary method
1 parent 77f843b commit 549cd14

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

src/PhpGitHooks/Module/Git/Service/PreCommitTool.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ private function executeTools(PreCommitResponse $preCommitResponse, array $commi
114114

115115
$phpFiles = $this->getPhpFiles($committedFiles);
116116

117-
if (true === $this->isPhpFiles($phpFiles)) {
117+
if ($phpFiles) {
118118
if (true === $preCommitResponse->isPhpLint()) {
119119
$this->commandBus->handle(
120120
new PhpLintToolCommand($phpFiles, $preCommitResponse->getErrorMessage())
@@ -195,16 +195,6 @@ private function executeTools(PreCommitResponse $preCommitResponse, array $commi
195195
}
196196
}
197197

198-
/**
199-
* @param array $files
200-
*
201-
* @return bool
202-
*/
203-
private function isPhpFiles(array $files)
204-
{
205-
return 0 < $files;
206-
}
207-
208198
/**
209199
* @param array $committedFiles
210200
*

src/PhpGitHooks/Module/PhpUnit/Infrastructure/DependencyInjection/phpUnit_service_public.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@ services:
1414
arguments: ["@guard.coverage.tool"]
1515
tags:
1616
- { name: command_handler, handles: \PhpGitHooks\Module\PhpUnit\Contract\Command\GuardCoverageCommand }
17-

0 commit comments

Comments
 (0)