Skip to content

Commit 6ed6162

Browse files
committed
formatting
1 parent 65a81e0 commit 6ed6162

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/Config.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
namespace Realodix\Relax;
44

5-
use PhpCsFixer\Config as PhpCsFixerConfig;
65
use PhpCsFixer\ConfigInterface;
76
use Realodix\Relax\Exceptions\RulesetNotFoundException;
87
use Realodix\Relax\RuleSet\RuleSetInterface;
98

10-
class Config extends PhpCsFixerConfig
9+
class Config extends \PhpCsFixer\Config
1110
{
1211
const LOCAL_RULES_NAME = 'Local Rules';
1312

@@ -46,12 +45,13 @@ public function setRules(array $rules = []): ConfigInterface
4645
*/
4746
public static function create($ruleSet = null)
4847
{
49-
if (! ($ruleSet instanceof RuleSetInterface) && ! is_string($ruleSet) && $ruleSet !== null) {
48+
if (! $ruleSet instanceof RuleSetInterface && ! is_string($ruleSet) && $ruleSet !== null) {
5049
throw new \InvalidArgumentException(
5150
'Ruleset must be of type Relax RuleSetInterface, string or null'
5251
);
5352
}
5453

54+
// If the rule set is a string, we try to find it in the RuleSet namespace
5555
if (is_string($ruleSet)) {
5656
/** @TODO remove me */
5757
if (ucfirst($ruleSet) == 'Realodix') {

src/Finder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22

33
namespace Realodix\Relax;
44

5-
use PhpCsFixer\Finder as BaseFinder;
6-
75
/**
86
* {@inheritDoc}
97
*
108
* @see https://symfony.com/doc/current/components/finder.html
119
* @see https://github.com/symfony/finder/blob/7.1/Finder.php
1210
* @see https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/src/Finder.php
1311
*/
14-
class Finder extends BaseFinder
12+
class Finder extends \PhpCsFixer\Finder
1513
{
1614
/**
1715
* @return \PhpCsFixer\Finder

0 commit comments

Comments
 (0)