Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Jul 25, 2024
1 parent 65a81e0 commit 6ed6162
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

namespace Realodix\Relax;

use PhpCsFixer\Config as PhpCsFixerConfig;
use PhpCsFixer\ConfigInterface;
use Realodix\Relax\Exceptions\RulesetNotFoundException;
use Realodix\Relax\RuleSet\RuleSetInterface;

class Config extends PhpCsFixerConfig
class Config extends \PhpCsFixer\Config
{
const LOCAL_RULES_NAME = 'Local Rules';

Expand Down Expand Up @@ -46,12 +45,13 @@ public function setRules(array $rules = []): ConfigInterface
*/
public static function create($ruleSet = null)
{
if (! ($ruleSet instanceof RuleSetInterface) && ! is_string($ruleSet) && $ruleSet !== null) {
if (! $ruleSet instanceof RuleSetInterface && ! is_string($ruleSet) && $ruleSet !== null) {
throw new \InvalidArgumentException(
'Ruleset must be of type Relax RuleSetInterface, string or null'
);
}

// If the rule set is a string, we try to find it in the RuleSet namespace
if (is_string($ruleSet)) {
/** @TODO remove me */
if (ucfirst($ruleSet) == 'Realodix') {
Expand Down
4 changes: 1 addition & 3 deletions src/Finder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@

namespace Realodix\Relax;

use PhpCsFixer\Finder as BaseFinder;

/**
* {@inheritDoc}
*
* @see https://symfony.com/doc/current/components/finder.html
* @see https://github.com/symfony/finder/blob/7.1/Finder.php
* @see https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/src/Finder.php
*/
class Finder extends BaseFinder
class Finder extends \PhpCsFixer\Finder
{
/**
* @return \PhpCsFixer\Finder
Expand Down

0 comments on commit 6ed6162

Please sign in to comment.