Skip to content

Commit

Permalink
Refactored #100: Add XML schema validator
Browse files Browse the repository at this point in the history
 - Updated phpdoc.
  • Loading branch information
andkirby committed Aug 18, 2016
1 parent 66addcb commit 6b01e72
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/lib/PreCommit/Console/Command/Install/AbstractCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use PreCommit\Console\Exception;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

/**
* Base "install" command abstract class
Expand Down Expand Up @@ -39,7 +38,7 @@ abstract protected function getHookOptionDescription($hook);
*/
protected function getAvailableHooks()
{
return array('commit-msg', 'pre-commit');
return ['commit-msg', 'pre-commit'];
}

/**
Expand Down Expand Up @@ -92,7 +91,7 @@ protected function getOptionTargetFiles()
if ($this->isVeryVerbose()) {
$this->output->writeln('Specific files mode.');
}
$files = array();
$files = [];
foreach ($this->getAvailableHooks() as $hook) {
if ($this->input->getOption($hook)) {
$files[] = $hook;
Expand All @@ -115,8 +114,7 @@ protected function getOptionTargetFiles()
/**
* Get GIT hooks directory path
*
* @param OutputInterface $output
* @param string $projectDir
* @param string $projectDir
* @return string
* @throws Exception
*/
Expand Down

0 comments on commit 6b01e72

Please sign in to comment.