Skip to content

Commit 7640d83

Browse files
committed
Add code-climate config
1 parent 8c5cd14 commit 7640d83

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

.codeclimate.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ engines:
1515
ignore-undeclared: true
1616
dead-code-detection: true
1717
backward-compatibility-checks: true
18+
checks:
19+
PhanParamTooMany:
20+
enabled: false
1821
phpmd:
1922
enabled: true
2023
checks:

src/IO/ComposerIO.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,26 @@ public function __construct(ComposerIOInterface $io)
2323
}
2424

2525
/**
26-
* {@inheritdoc}
26+
* @param string $message
2727
*/
2828
public function write($message)
2929
{
3030
$this->io->write($message);
3131
}
3232

3333
/**
34-
* {@inheritdoc}
34+
* @return bool
3535
*/
3636
public function isInteractive()
3737
{
3838
return $this->io->isInteractive();
3939
}
4040

4141
/**
42-
* {@inheritdoc}
42+
* @param string $question
43+
* @param string|null $default
44+
*
45+
* @return string
4346
*
4447
* @throws \RuntimeException
4548
*/

src/IO/ConsoleIO.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace LF\EnvDiff\IO;
44

5-
use Symfony\Component\Console\Exception\RuntimeException;
65
use Symfony\Component\Console\Helper\QuestionHelper;
76
use Symfony\Component\Console\Input\InputInterface;
87
use Symfony\Component\Console\Output\OutputInterface;
@@ -36,25 +35,28 @@ public function __construct(InputInterface $input, OutputInterface $output)
3635
}
3736

3837
/**
39-
* {@inheritdoc}
38+
* @param string $message
4039
*/
4140
public function write($message)
4241
{
4342
$this->output->writeln($message);
4443
}
4544

4645
/**
47-
* {@inheritdoc}
46+
* @return bool
4847
*/
4948
public function isInteractive()
5049
{
5150
return $this->input->isInteractive();
5251
}
5352

5453
/**
55-
* {@inheritdoc}
54+
* @param string $question
55+
* @param string|null $default
5656
*
57-
* @throws RuntimeException
57+
* @return string
58+
*
59+
* @throws \RuntimeException
5860
*/
5961
public function ask($question, $default = null)
6062
{

src/IO/IOInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public function write($message);
1515
public function isInteractive();
1616

1717
/**
18-
* @param string $question
19-
* @param string $default
18+
* @param string $question
19+
* @param string|null $default
2020
*
2121
* @return string
2222
*/

0 commit comments

Comments
 (0)