diff --git a/bin/anagram-finder.php b/bin/anagram-finder.php index fb72184..05bb5a0 100644 --- a/bin/anagram-finder.php +++ b/bin/anagram-finder.php @@ -3,8 +3,8 @@ require __DIR__ . '/../autoload.php'; use Lvl0\AnagramFinder\Core\Matcher; -use Myrmidex\AnagramFinder\ArgHandler; -use Myrmidex\AnagramFinder\Output; +use Lvl0\AnagramFinder\TUI\ArgHandler; +use Lvl0\AnagramFinder\TUI\Output; const DICTIONARY = __DIR__ . '/../assets/words.txt'; diff --git a/bin/tests.php b/bin/tests.php deleted file mode 100644 index 9a5333c..0000000 --- a/bin/tests.php +++ /dev/null @@ -1,16 +0,0 @@ -args - ->reject(fn ($word) => substr($word, 0, 2) === '--') + ->reject(fn($word) => substr($word, 0, 2) === '--') ->get($index); } - public function hasOption(string $option) { + public function hasOption(string $option) + { return $this->args - ->filter(fn ($word) => $word === '--' . $option) + ->filter(fn($word) => $word === '--' . $option) ->isNotEmpty(); } } diff --git a/src/Output.php b/src/Output.php index 376475e..5d1b3cb 100644 --- a/src/Output.php +++ b/src/Output.php @@ -1,6 +1,6 @@