Skip to content

Commit

Permalink
Refactored #83: Add command for disabling validators
Browse files Browse the repository at this point in the history
 - Removed using redundant $output param in AbstractCommand.php.
  • Loading branch information
andkirby committed Jul 29, 2016
1 parent 3221b0c commit 4720076
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/lib/PreCommit/Command/Command/AbstractCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,23 +203,21 @@ protected function getSimpleQuestion()
/**
* Is output very verbose
*
* @param OutputInterface $output
* @return bool
*/
protected function isVeryVerbose(OutputInterface $output)
protected function isVeryVerbose()
{
return $output->getVerbosity() >= OutputInterface::VERBOSITY_VERY_VERBOSE;
return $this->output->getVerbosity() >= OutputInterface::VERBOSITY_VERY_VERBOSE;
}

/**
* Is output verbose
*
* @param OutputInterface $output
* @return bool
*/
protected function isVerbose(OutputInterface $output)
protected function isVerbose()
{
return $output->getVerbosity() >= OutputInterface::VERBOSITY_VERBOSE;
return $this->output->getVerbosity() >= OutputInterface::VERBOSITY_VERBOSE;
}

/**
Expand Down

0 comments on commit 4720076

Please sign in to comment.