Skip to content

Commit

Permalink
Fix codestyle.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed May 7, 2021
1 parent 5e52c5a commit fd0041f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
4 changes: 2 additions & 2 deletions resources/php_cs_fixer.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

declare(strict_types=1);

use drupol\PhpCsFixerConfigsPhp\Config\Php71;
use drupol\PhpCsFixerConfigsPhp\Config\Php73;

return Php71::create();
return new Php73();
2 changes: 1 addition & 1 deletion spec/drupol/PhpCsFixerConfigsPhp/Config/YamlConfigSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function it_can_import_yaml_files()
->getRules()
->shouldReturn(
[
'@PSR2' => true,
'@PSR12' => true,
'a' => true,
'b' => true,
]
Expand Down
5 changes: 1 addition & 4 deletions src/Config/Psr12.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ public function __construct()
);
}

/**
* {@inheritdoc}
*/
public function getFinder()
public function getFinder(): iterable
{
return parent::getFinder()
->in(getcwd())
Expand Down
9 changes: 0 additions & 9 deletions src/Config/YamlConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
*/
class YamlConfig extends Config implements PhpCsFixerConfigInterface
{
/**
* {@inheritdoc}
*/
public function withRulesFromConfig(...$configs): PhpCsFixerConfigInterface
{
$rules = array_reduce(
Expand All @@ -36,9 +33,6 @@ static function (array $carry, ConfigInterface $config) {
return $clone;
}

/**
* {@inheritdoc}
*/
public function withRulesFromYaml(...$filenames): PhpCsFixerConfigInterface
{
$rules = array_merge(
Expand All @@ -55,9 +49,6 @@ public function withRulesFromYaml(...$filenames): PhpCsFixerConfigInterface
return $clone;
}

/**
* {@inheritdoc}
*/
public function withRulesFromYamlOnly(...$filenames): PhpCsFixerConfigInterface
{
$rules = $this->getRulesFromFiles(...$filenames);
Expand Down

0 comments on commit fd0041f

Please sign in to comment.