Skip to content

Commit

Permalink
Bump version.
Browse files Browse the repository at this point in the history
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
  • Loading branch information
overtrue committed Aug 15, 2016
1 parent c08cd40 commit 5c26ad9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions src/Command/LintCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,15 @@ protected function execute(InputInterface $input, OutputInterface $output)

$output->writeln($this->getApplication()->getLongVersion()." by overtrue and contributors.\n");

if (!$input->getOption('no-cache') && file_exists($this->cacheFile)) {
$linter->setCache(json_decode(file_get_contents($this->cacheFile), true));
}

$options = $this->mergeOptions();

$linter = new Linter($options['path'], $options['exclude'], $options['extensions']);
$linter->setProcessLimit($options['jobs']);

if (!$input->getOption('no-cache') && file_exists($this->cacheFile)) {
$linter->setCache(json_decode(file_get_contents($this->cacheFile), true));
}

$fileCount = count($linter->getFiles());

if ($fileCount <= 0) {
Expand Down Expand Up @@ -176,6 +176,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
return $code;
}

/**
* @param Linter $linter
* @param OutputInterface $output
* @param int $fileCount
*/
protected function executeLint($linter, $output, $fileCount)
{
$maxColumns = floor($this->getScreenColumns() / 2);
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class Application extends BaseApplication
{
const NAME = 'phplint';
const VERSION = '0.0.1';
const VERSION = '0.0.3';

/**
* Constructor.
Expand Down

0 comments on commit 5c26ad9

Please sign in to comment.