Skip to content

Commit 8d48f6b

Browse files
committed
Rename $im to $inputMerger in CompareCommand.
Add phpdoc to CompareCommand.
1 parent e7e6216 commit 8d48f6b

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/PHPSemVerChecker/Console/Command/CompareCommand.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
class CompareCommand extends Command {
2222
/**
23-
* @var Configuration
23+
* @var \PHPSemVerChecker\Configuration\Configuration
2424
*/
2525
protected $config;
2626

@@ -42,19 +42,26 @@ protected function configure()
4242
]);
4343
}
4444

45+
/**
46+
* @param \Symfony\Component\Console\Input\InputInterface $input
47+
* @param \Symfony\Component\Console\Output\OutputInterface $output
48+
*/
4549
protected function initialize(InputInterface $input, OutputInterface $output)
4650
{
4751
parent::initialize($input, $output);
4852
$configPath = $input->getOption('config');
4953
$this->config = $configPath ? Configuration::fromFile($configPath) : Configuration::defaults();
50-
$im = new InputMerger();
51-
$im->merge($input, $this->config);
54+
$inputMerger = new InputMerger();
55+
$inputMerger->merge($input, $this->config);
5256

5357
// Set overrides
5458
LevelMapping::setOverrides($this->config->getLevelMapping());
5559
}
5660

57-
61+
/**
62+
* @param \Symfony\Component\Console\Input\InputInterface $input
63+
* @param \Symfony\Component\Console\Output\OutputInterface $output
64+
*/
5865
protected function execute(InputInterface $input, OutputInterface $output)
5966
{
6067
$startTime = microtime(true);

0 commit comments

Comments
 (0)