Skip to content

Commit

Permalink
Add code-climate config
Browse files Browse the repository at this point in the history
  • Loading branch information
Tekill committed Sep 30, 2017
1 parent 8c5cd14 commit 7640d83
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ engines:
ignore-undeclared: true
dead-code-detection: true
backward-compatibility-checks: true
checks:
PhanParamTooMany:
enabled: false
phpmd:
enabled: true
checks:
Expand Down
9 changes: 6 additions & 3 deletions src/IO/ComposerIO.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,26 @@ public function __construct(ComposerIOInterface $io)
}

/**
* {@inheritdoc}
* @param string $message
*/
public function write($message)
{
$this->io->write($message);
}

/**
* {@inheritdoc}
* @return bool
*/
public function isInteractive()
{
return $this->io->isInteractive();
}

/**
* {@inheritdoc}
* @param string $question
* @param string|null $default
*
* @return string
*
* @throws \RuntimeException
*/
Expand Down
12 changes: 7 additions & 5 deletions src/IO/ConsoleIO.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace LF\EnvDiff\IO;

use Symfony\Component\Console\Exception\RuntimeException;
use Symfony\Component\Console\Helper\QuestionHelper;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
Expand Down Expand Up @@ -36,25 +35,28 @@ public function __construct(InputInterface $input, OutputInterface $output)
}

/**
* {@inheritdoc}
* @param string $message
*/
public function write($message)
{
$this->output->writeln($message);
}

/**
* {@inheritdoc}
* @return bool
*/
public function isInteractive()
{
return $this->input->isInteractive();
}

/**
* {@inheritdoc}
* @param string $question
* @param string|null $default
*
* @throws RuntimeException
* @return string
*
* @throws \RuntimeException
*/
public function ask($question, $default = null)
{
Expand Down
4 changes: 2 additions & 2 deletions src/IO/IOInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public function write($message);
public function isInteractive();

/**
* @param string $question
* @param string $default
* @param string $question
* @param string|null $default
*
* @return string
*/
Expand Down

0 comments on commit 7640d83

Please sign in to comment.