diff --git a/src/Command/LintCommand.php b/src/Command/LintCommand.php
index 9fe5dae6..38429503 100644
--- a/src/Command/LintCommand.php
+++ b/src/Command/LintCommand.php
@@ -154,7 +154,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$linter = new Linter($options['path'], $options['exclude'], $options['extensions']);
$linter->setProcessLimit($options['jobs']);
- if ($input->getOption('cache') !== null) {
+ if (null !== $input->getOption('cache')) {
Cache::setFilename($input->getOption('cache'));
}
@@ -221,13 +221,13 @@ protected function executeLint($linter, $input, $output, $fileCount)
if ($verbosity >= OutputInterface::VERBOSITY_VERBOSE) {
$filename = str_pad(" {$i}: ".$file->getRelativePathname(), $maxColumns - 10, ' ', \STR_PAD_RIGHT);
- $status = \str_pad(($status === 'ok' ? 'OK' : 'Error'), 20, ' ', \STR_PAD_RIGHT);
+ $status = \str_pad(('ok' === $status ? 'OK' : 'Error'), 20, ' ', \STR_PAD_RIGHT);
$output->writeln(\sprintf("%s\t%s\t%s", $filename, $status, $process));
} else {
- if ($i && $i % $maxColumns === 0) {
+ if ($i && 0 === $i % $maxColumns) {
$output->writeln($process);
}
- $output->write($status === 'ok' ? '.' : 'E');
+ $output->write('ok' === $status ? '.' : 'E');
}
++$i;
});
@@ -299,7 +299,7 @@ protected function getConfigFile()
$dir = './';
- if (count($inputPath) == 1 && $first = reset($inputPath)) {
+ if (1 == count($inputPath) && $first = reset($inputPath)) {
$dir = is_dir($first) ? $first : dirname($first);
}
diff --git a/src/Console/Application.php b/src/Console/Application.php
index 29791b7d..bf640e59 100644
--- a/src/Console/Application.php
+++ b/src/Console/Application.php
@@ -20,6 +20,7 @@
class Application extends BaseApplication
{
const NAME = 'phplint';
+
const VERSION = '1.0.1';
/**