Skip to content

Commit

Permalink
remove realodix ruleset
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Aug 6, 2024
1 parent 6f64ab0 commit 5bd65c8
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 48 deletions.
5 changes: 0 additions & 5 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ public static function create($ruleSet = 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') {
$ruleSet = 'Relax';
}

$relaxRuleset = 'Realodix\Relax\RuleSet\Sets\\' . ucfirst($ruleSet);

if (! class_exists($relaxRuleset)) {
Expand Down
21 changes: 0 additions & 21 deletions src/RuleSet/Sets/Realodix.php

This file was deleted.

21 changes: 0 additions & 21 deletions src/RuleSet/Sets/RealodixPlus.php

This file was deleted.

2 changes: 1 addition & 1 deletion tests/Unit/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function testSetRuleset(): void
public function testSetRulesetWithStringInput(): void
{
$ruleset = new \Realodix\Relax\RuleSet\Sets\Relax;
$config = Config::create('realodix');
$config = Config::create('relax');

$this->assertSame(count($ruleset->rules()), count($config->getRules()));

Expand Down

0 comments on commit 5bd65c8

Please sign in to comment.