From bdf707c2967c0b32057d2d1e88f1915b241a625e Mon Sep 17 00:00:00 2001 From: myrmidex Date: Sat, 22 Aug 2026 20:00:35 +0200 Subject: [PATCH] fix namespacing --- bin/anagram-finder.php | 4 ++-- bin/tests.php | 16 ---------------- composer.json | 4 ++-- src/ArgHandler.php | 9 +++++---- src/Output.php | 2 +- 5 files changed, 10 insertions(+), 25 deletions(-) delete mode 100644 bin/tests.php 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 @@