Skip to content

Commit fd42e21

Browse files
committed
Change const names.
1 parent 97327f6 commit fd42e21

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/PhpGitHooks/Command/QualityCodeTool.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class QualityCodeTool extends Application
2626
/** @var OutputHandler */
2727
private $outputTitleHandler;
2828

29-
const PHP_FILES_IN_SRC = '/^(.*)(\.php)$/';
30-
const JSON_FILES_IN_SRC = '/^(.*)(\.json)$/';
29+
const PHP_FILES = '/^(.*)(\.php)$/';
30+
const JSON_FILES = '/^(.*)(\.json)$/';
3131
const COMPOSER_FILES = '/^composer\.(json|lock)$/';
3232

3333
public function __construct()
@@ -82,15 +82,15 @@ private function processingFiles()
8282
];
8383

8484
foreach ($this->files as $file) {
85-
if (true === (bool)preg_match(self::PHP_FILES_IN_SRC, $file)) {
85+
if (true === (bool)preg_match(self::PHP_FILES, $file)) {
8686
$files['php'] = true;
8787
}
8888

8989
if (true === (bool)preg_match(self::COMPOSER_FILES, $file)) {
9090
$files['composer'] = true;
9191
}
9292

93-
if (true === (bool)preg_match(self::JSON_FILES_IN_SRC, $file)) {
93+
if (true === (bool)preg_match(self::JSON_FILES, $file)) {
9494
$files['json'] = true;
9595
}
9696
}
@@ -107,7 +107,7 @@ private function execute()
107107

108108
if (true === $this->isProcessingAnyJsonFile()) {
109109
$this->container->get('check.json.syntax.pre.commit.executor')
110-
->run($this->output, $this->files, self::JSON_FILES_IN_SRC);
110+
->run($this->output, $this->files, self::JSON_FILES);
111111
}
112112

113113
if (true === $this->isProcessingAnyPhpFile()) {
@@ -116,15 +116,15 @@ private function execute()
116116

117117
/** @var FixCodeStyleCsFixerPreCommitExecutor $csFixer */
118118
$csFixer = $this->container->get('fix.code.style.cs.fixer.pre.commit.executor');
119-
$csFixer->run($this->output, $this->files, self::PHP_FILES_IN_SRC);
119+
$csFixer->run($this->output, $this->files, self::PHP_FILES);
120120

121121
/** @var CheckCodeStyleCodeSnifferPreCommitExecutor $codeSniffer */
122122
$codeSniffer = $this->container->get('check.code.style.code.sniffer.pre.commit.executor');
123-
$codeSniffer->run($this->output, $this->files, self::PHP_FILES_IN_SRC);
123+
$codeSniffer->run($this->output, $this->files, self::PHP_FILES);
124124

125125
/** @var CheckPhpMessDetectionPreCommitExecutor $messDetector */
126126
$messDetector = $this->container->get('check.php.mess.detection.pre.commit.executor');
127-
$messDetector->run($this->output, $this->files, self::PHP_FILES_IN_SRC);
127+
$messDetector->run($this->output, $this->files, self::PHP_FILES);
128128

129129
/** @var UnitTestPreCommitExecutor $phpUnit */
130130
$phpUnit = $this->container->get('unit.test.pre.commit.executor');

0 commit comments

Comments
 (0)