Rename namespace Aternos\Codex to IndifferentKetchup\Codex

Bulk substitution across all PHP files in src/ and test/. Covers
namespace declarations, use statements, fully-qualified class
references, and @package PHPDoc tags. No logic changes.
This commit is contained in:
2026-04-30 15:13:52 +00:00
parent 6870ed6ea7
commit 66a2fcc5f3
85 changed files with 294 additions and 294 deletions

View File

@@ -1,16 +1,16 @@
<?php
namespace Aternos\Codex\Test\Tests\Detective;
namespace IndifferentKetchup\Codex\Test\Tests\Detective;
use Aternos\Codex\Detective\Detective;
use Aternos\Codex\Detective\DetectorInterface;
use Aternos\Codex\Log\DetectableLogInterface;
use Aternos\Codex\Log\Log;
use Aternos\Codex\Test\Src\Analysis\TestSolution;
use Aternos\Codex\Test\Src\Log\TestAlwaysDetectableLog;
use Aternos\Codex\Test\Src\Log\TestLessDetectableLog;
use Aternos\Codex\Test\Src\Log\TestMoreDetectableLog;
use Aternos\Codex\Test\Src\Log\TestNeverDetectableLog;
use IndifferentKetchup\Codex\Detective\Detective;
use IndifferentKetchup\Codex\Detective\DetectorInterface;
use IndifferentKetchup\Codex\Log\DetectableLogInterface;
use IndifferentKetchup\Codex\Log\Log;
use IndifferentKetchup\Codex\Test\Src\Analysis\TestSolution;
use IndifferentKetchup\Codex\Test\Src\Log\TestAlwaysDetectableLog;
use IndifferentKetchup\Codex\Test\Src\Log\TestLessDetectableLog;
use IndifferentKetchup\Codex\Test\Src\Log\TestMoreDetectableLog;
use IndifferentKetchup\Codex\Test\Src\Log\TestNeverDetectableLog;
use PHPUnit\Framework\TestCase;
class DetectiveTest extends TestCase
@@ -22,7 +22,7 @@ class DetectiveTest extends TestCase
protected function getDetective(array $possibleLogClasses): Detective
{
$detective = new Detective();
$detective->setLogFile(new \Aternos\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log'));
$detective->setLogFile(new \IndifferentKetchup\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log'));
$detective->setPossibleLogClasses($possibleLogClasses);
return $detective;
}

View File

@@ -1,8 +1,8 @@
<?php
namespace Aternos\Codex\Test\Tests\Detective;
namespace IndifferentKetchup\Codex\Test\Tests\Detective;
use Aternos\Codex\Detective\LinePatternDetector;
use IndifferentKetchup\Codex\Detective\LinePatternDetector;
use PHPUnit\Framework\TestCase;
class LinePatternDetectorTest extends TestCase
@@ -10,19 +10,19 @@ class LinePatternDetectorTest extends TestCase
public function testDetect(): void
{
$this->assertEquals(5 / 7, (new LinePatternDetector())
->setLogFile(new \Aternos\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log'))
->setLogFile(new \IndifferentKetchup\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log'))
->setPattern('/information/')
->detect()
);
$this->assertFalse((new LinePatternDetector())
->setLogFile(new \Aternos\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log'))
->setLogFile(new \IndifferentKetchup\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log'))
->setPattern('/missing/')
->detect()
);
$this->assertEquals(1, (new LinePatternDetector())
->setLogFile(new \Aternos\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log'))
->setLogFile(new \IndifferentKetchup\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log'))
->setPattern('/This/')
->detect()
);

View File

@@ -1,9 +1,9 @@
<?php
namespace Aternos\Codex\Test\Tests\Detective;
namespace IndifferentKetchup\Codex\Test\Tests\Detective;
use Aternos\Codex\Detective\MultiPatternDetector;
use Aternos\Codex\Log\File\StringLogFile;
use IndifferentKetchup\Codex\Detective\MultiPatternDetector;
use IndifferentKetchup\Codex\Log\File\StringLogFile;
use PHPUnit\Framework\TestCase;
class MultiPatternDetectorTest extends TestCase

View File

@@ -1,9 +1,9 @@
<?php
namespace Aternos\Codex\Test\Tests\Detective;
namespace IndifferentKetchup\Codex\Test\Tests\Detective;
use Aternos\Codex\Detective\SinglePatternDetector;
use Aternos\Codex\Log\File\StringLogFile;
use IndifferentKetchup\Codex\Detective\SinglePatternDetector;
use IndifferentKetchup\Codex\Log\File\StringLogFile;
use PHPUnit\Framework\TestCase;
class SinglePatternDetectorTest extends TestCase

View File

@@ -1,9 +1,9 @@
<?php
namespace Aternos\Codex\Test\Tests\Detective;
namespace IndifferentKetchup\Codex\Test\Tests\Detective;
use Aternos\Codex\Detective\WeightedSinglePatternDetector;
use Aternos\Codex\Log\File\StringLogFile;
use IndifferentKetchup\Codex\Detective\WeightedSinglePatternDetector;
use IndifferentKetchup\Codex\Log\File\StringLogFile;
use PHPUnit\Framework\TestCase;
class WeightedSinglePatternDetectorTest extends TestCase
@@ -11,21 +11,21 @@ class WeightedSinglePatternDetectorTest extends TestCase
public function testDetect(): void
{
$this->assertEquals(1, (new WeightedSinglePatternDetector())
->setLogFile(new \Aternos\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log'))
->setLogFile(new \IndifferentKetchup\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log'))
->setPattern('/This/')
->setWeight(1)
->detect()
);
$this->assertEquals(0.5, (new WeightedSinglePatternDetector())
->setLogFile(new \Aternos\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log'))
->setLogFile(new \IndifferentKetchup\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log'))
->setPattern('/This/')
->setWeight(0.5)
->detect()
);
$this->assertEquals(0, (new WeightedSinglePatternDetector())
->setLogFile(new \Aternos\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log'))
->setLogFile(new \IndifferentKetchup\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log'))
->setPattern('/This/')
->setWeight(0)
->detect()