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,8 +1,8 @@
<?php
namespace Aternos\Codex\Test\Src\Analysis;
namespace IndifferentKetchup\Codex\Test\Src\Analysis;
use Aternos\Codex\Analysis\Information;
use IndifferentKetchup\Codex\Analysis\Information;
/**
* Class TestInformation

View File

@@ -1,9 +1,9 @@
<?php
namespace Aternos\Codex\Test\Src\Analysis;
namespace IndifferentKetchup\Codex\Test\Src\Analysis;
use Aternos\Codex\Analysis\Insight;
use Aternos\Codex\Analysis\InsightInterface;
use IndifferentKetchup\Codex\Analysis\Insight;
use IndifferentKetchup\Codex\Analysis\InsightInterface;
/**
* Class TestInsight

View File

@@ -1,9 +1,9 @@
<?php
namespace Aternos\Codex\Test\Src\Analysis;
namespace IndifferentKetchup\Codex\Test\Src\Analysis;
use Aternos\Codex\Analysis\Information;
use Aternos\Codex\Analysis\PatternInsightInterface;
use IndifferentKetchup\Codex\Analysis\Information;
use IndifferentKetchup\Codex\Analysis\PatternInsightInterface;
/**
* Class TestPatternInformation

View File

@@ -1,10 +1,10 @@
<?php
namespace Aternos\Codex\Test\Src\Analysis;
namespace IndifferentKetchup\Codex\Test\Src\Analysis;
use Aternos\Codex\Analysis\InsightInterface;
use Aternos\Codex\Analysis\PatternInsightInterface;
use Aternos\Codex\Analysis\Problem;
use IndifferentKetchup\Codex\Analysis\InsightInterface;
use IndifferentKetchup\Codex\Analysis\PatternInsightInterface;
use IndifferentKetchup\Codex\Analysis\Problem;
/**
* Class TestPatternProblem

View File

@@ -1,9 +1,9 @@
<?php
namespace Aternos\Codex\Test\Src\Analysis;
namespace IndifferentKetchup\Codex\Test\Src\Analysis;
use Aternos\Codex\Analysis\InsightInterface;
use Aternos\Codex\Analysis\Problem;
use IndifferentKetchup\Codex\Analysis\InsightInterface;
use IndifferentKetchup\Codex\Analysis\Problem;
/**
* Class TestProblem

View File

@@ -1,8 +1,8 @@
<?php
namespace Aternos\Codex\Test\Src\Analysis;
namespace IndifferentKetchup\Codex\Test\Src\Analysis;
use Aternos\Codex\Analysis\Solution;
use IndifferentKetchup\Codex\Analysis\Solution;
/**
* Class TestSolution

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Test\Src\Log;
namespace IndifferentKetchup\Codex\Test\Src\Log;
use Aternos\Codex\Detective\DetectorInterface;
use Aternos\Codex\Detective\SinglePatternDetector;
use Aternos\Codex\Log\DetectableLogInterface;
use Aternos\Codex\Log\Log;
use IndifferentKetchup\Codex\Detective\DetectorInterface;
use IndifferentKetchup\Codex\Detective\SinglePatternDetector;
use IndifferentKetchup\Codex\Log\DetectableLogInterface;
use IndifferentKetchup\Codex\Log\Log;
/**
* Class TestAlwaysDetectableLog

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Test\Src\Log;
namespace IndifferentKetchup\Codex\Test\Src\Log;
use Aternos\Codex\Detective\DetectorInterface;
use Aternos\Codex\Detective\LinePatternDetector;
use Aternos\Codex\Log\DetectableLogInterface;
use Aternos\Codex\Log\Log;
use IndifferentKetchup\Codex\Detective\DetectorInterface;
use IndifferentKetchup\Codex\Detective\LinePatternDetector;
use IndifferentKetchup\Codex\Log\DetectableLogInterface;
use IndifferentKetchup\Codex\Log\Log;
/**
* Class TestLessDetectableLog

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Test\Src\Log;
namespace IndifferentKetchup\Codex\Test\Src\Log;
use Aternos\Codex\Detective\DetectorInterface;
use Aternos\Codex\Detective\LinePatternDetector;
use Aternos\Codex\Log\DetectableLogInterface;
use Aternos\Codex\Log\Log;
use IndifferentKetchup\Codex\Detective\DetectorInterface;
use IndifferentKetchup\Codex\Detective\LinePatternDetector;
use IndifferentKetchup\Codex\Log\DetectableLogInterface;
use IndifferentKetchup\Codex\Log\Log;
/**
* Class TestMoreDetectableLog

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Test\Src\Log;
namespace IndifferentKetchup\Codex\Test\Src\Log;
use Aternos\Codex\Detective\DetectorInterface;
use Aternos\Codex\Detective\SinglePatternDetector;
use Aternos\Codex\Log\DetectableLogInterface;
use Aternos\Codex\Log\Log;
use IndifferentKetchup\Codex\Detective\DetectorInterface;
use IndifferentKetchup\Codex\Detective\SinglePatternDetector;
use IndifferentKetchup\Codex\Log\DetectableLogInterface;
use IndifferentKetchup\Codex\Log\Log;
/**
* Class TestNeverDetectableLog

View File

@@ -1,12 +1,12 @@
<?php
namespace Aternos\Codex\Test\Src\Log;
namespace IndifferentKetchup\Codex\Test\Src\Log;
use Aternos\Codex\Analyser\PatternAnalyser;
use Aternos\Codex\Log\AnalysableLog;
use Aternos\Codex\Parser\PatternParser;
use Aternos\Codex\Test\Src\Analysis\TestPatternInformation;
use Aternos\Codex\Test\Src\Analysis\TestPatternProblem;
use IndifferentKetchup\Codex\Analyser\PatternAnalyser;
use IndifferentKetchup\Codex\Log\AnalysableLog;
use IndifferentKetchup\Codex\Parser\PatternParser;
use IndifferentKetchup\Codex\Test\Src\Analysis\TestPatternInformation;
use IndifferentKetchup\Codex\Test\Src\Analysis\TestPatternProblem;
/**
* Class TestLog

View File

@@ -1,8 +1,8 @@
<?php
namespace Aternos\Codex\Test\Src\Printer;
namespace IndifferentKetchup\Codex\Test\Src\Printer;
use Aternos\Codex\Printer\Modification;
use IndifferentKetchup\Codex\Printer\Modification;
/**
* Class TestModification

View File

@@ -1,18 +1,18 @@
<?php
namespace Aternos\Codex\Test\Tests\Analyser;
namespace IndifferentKetchup\Codex\Test\Tests\Analyser;
use Aternos\Codex\Analyser\PatternAnalyser;
use Aternos\Codex\Analysis\Analysis;
use Aternos\Codex\Analysis\PatternInsightInterface;
use Aternos\Codex\Log\Entry;
use Aternos\Codex\Log\File\PathLogFile;
use Aternos\Codex\Log\Level;
use Aternos\Codex\Log\Line;
use Aternos\Codex\Test\Src\Analysis\TestPatternInformation;
use Aternos\Codex\Test\Src\Analysis\TestPatternProblem;
use Aternos\Codex\Test\Src\Analysis\TestSolution;
use Aternos\Codex\Test\Src\Log\TestPatternLog;
use IndifferentKetchup\Codex\Analyser\PatternAnalyser;
use IndifferentKetchup\Codex\Analysis\Analysis;
use IndifferentKetchup\Codex\Analysis\PatternInsightInterface;
use IndifferentKetchup\Codex\Log\Entry;
use IndifferentKetchup\Codex\Log\File\PathLogFile;
use IndifferentKetchup\Codex\Log\Level;
use IndifferentKetchup\Codex\Log\Line;
use IndifferentKetchup\Codex\Test\Src\Analysis\TestPatternInformation;
use IndifferentKetchup\Codex\Test\Src\Analysis\TestPatternProblem;
use IndifferentKetchup\Codex\Test\Src\Analysis\TestSolution;
use IndifferentKetchup\Codex\Test\Src\Log\TestPatternLog;
use PHPUnit\Framework\TestCase;
use ReflectionClass;

View File

@@ -1,12 +1,12 @@
<?php
namespace Aternos\Codex\Test\Tests\Analysis;
namespace IndifferentKetchup\Codex\Test\Tests\Analysis;
use Aternos\Codex\Analysis\Analysis;
use Aternos\Codex\Test\Src\Analysis\TestInformation;
use Aternos\Codex\Test\Src\Analysis\TestInsight;
use Aternos\Codex\Test\Src\Analysis\TestPatternProblem;
use Aternos\Codex\Test\Src\Analysis\TestProblem;
use IndifferentKetchup\Codex\Analysis\Analysis;
use IndifferentKetchup\Codex\Test\Src\Analysis\TestInformation;
use IndifferentKetchup\Codex\Test\Src\Analysis\TestInsight;
use IndifferentKetchup\Codex\Test\Src\Analysis\TestPatternProblem;
use IndifferentKetchup\Codex\Test\Src\Analysis\TestProblem;
use PHPUnit\Framework\TestCase;
class AnalysisTest extends TestCase

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Test\Tests\Analysis;
namespace IndifferentKetchup\Codex\Test\Tests\Analysis;
use Aternos\Codex\Log\File\PathLogFile;
use Aternos\Codex\Test\Src\Analysis\TestInformation;
use Aternos\Codex\Test\Src\Analysis\TestPatternInformation;
use Aternos\Codex\Test\Src\Log\TestPatternLog;
use IndifferentKetchup\Codex\Log\File\PathLogFile;
use IndifferentKetchup\Codex\Test\Src\Analysis\TestInformation;
use IndifferentKetchup\Codex\Test\Src\Analysis\TestPatternInformation;
use IndifferentKetchup\Codex\Test\Src\Log\TestPatternLog;
use PHPUnit\Framework\TestCase;
class InformationTest extends TestCase

View File

@@ -1,9 +1,9 @@
<?php
namespace Aternos\Codex\Test\Tests\Analysis;
namespace IndifferentKetchup\Codex\Test\Tests\Analysis;
use Aternos\Codex\Test\Src\Analysis\TestProblem;
use Aternos\Codex\Test\Src\Analysis\TestSolution;
use IndifferentKetchup\Codex\Test\Src\Analysis\TestProblem;
use IndifferentKetchup\Codex\Test\Src\Analysis\TestSolution;
use PHPUnit\Framework\TestCase;
class ProblemTest extends TestCase

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()

View File

@@ -1,10 +1,10 @@
<?php
namespace Aternos\Codex\Test\Tests\Log;
namespace IndifferentKetchup\Codex\Test\Tests\Log;
use Aternos\Codex\Log\Entry;
use Aternos\Codex\Log\Level;
use Aternos\Codex\Log\Line;
use IndifferentKetchup\Codex\Log\Entry;
use IndifferentKetchup\Codex\Log\Level;
use IndifferentKetchup\Codex\Log\Line;
use PHPUnit\Framework\TestCase;
class EntryTest extends TestCase

View File

@@ -1,8 +1,8 @@
<?php
namespace Aternos\Codex\Test\Tests\Log\File;
namespace IndifferentKetchup\Codex\Test\Tests\Log\File;
use Aternos\Codex\Log\File\PathLogFile;
use IndifferentKetchup\Codex\Log\File\PathLogFile;
use PHPUnit\Framework\TestCase;
class PathLogFileTest extends TestCase

View File

@@ -1,8 +1,8 @@
<?php
namespace Aternos\Codex\Test\Tests\Log\File;
namespace IndifferentKetchup\Codex\Test\Tests\Log\File;
use Aternos\Codex\Log\File\StreamLogFile;
use IndifferentKetchup\Codex\Log\File\StreamLogFile;
use PHPUnit\Framework\TestCase;
class StreamLogFileTest extends TestCase

View File

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

View File

@@ -1,8 +1,8 @@
<?php
namespace Aternos\Codex\Test\Tests\Log;
namespace IndifferentKetchup\Codex\Test\Tests\Log;
use Aternos\Codex\Log\Line;
use IndifferentKetchup\Codex\Log\Line;
use PHPUnit\Framework\TestCase;
class LineTest extends TestCase

View File

@@ -1,9 +1,9 @@
<?php
namespace Aternos\Codex\Test\Tests\Log;
namespace IndifferentKetchup\Codex\Test\Tests\Log;
use Aternos\Codex\Log\Entry;
use Aternos\Codex\Log\Log;
use IndifferentKetchup\Codex\Log\Entry;
use IndifferentKetchup\Codex\Log\Log;
use PHPUnit\Framework\TestCase;
class LogTest extends TestCase

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Test\Tests\Parser;
namespace IndifferentKetchup\Codex\Test\Tests\Parser;
use Aternos\Codex\Log\Entry;
use Aternos\Codex\Log\File\PathLogFile;
use Aternos\Codex\Log\Line;
use Aternos\Codex\Log\Log;
use IndifferentKetchup\Codex\Log\Entry;
use IndifferentKetchup\Codex\Log\File\PathLogFile;
use IndifferentKetchup\Codex\Log\Line;
use IndifferentKetchup\Codex\Log\Log;
use PHPUnit\Framework\TestCase;
class DefaultParserTest extends TestCase

View File

@@ -1,14 +1,14 @@
<?php
namespace Aternos\Codex\Test\Tests\Parser;
namespace IndifferentKetchup\Codex\Test\Tests\Parser;
use Aternos\Codex\Log\Entry;
use Aternos\Codex\Log\File\PathLogFile;
use Aternos\Codex\Log\Level;
use Aternos\Codex\Log\Line;
use Aternos\Codex\Log\Log;
use Aternos\Codex\Parser\PatternParser;
use Aternos\Codex\Test\Src\Log\TestPatternLog;
use IndifferentKetchup\Codex\Log\Entry;
use IndifferentKetchup\Codex\Log\File\PathLogFile;
use IndifferentKetchup\Codex\Log\Level;
use IndifferentKetchup\Codex\Log\Line;
use IndifferentKetchup\Codex\Log\Log;
use IndifferentKetchup\Codex\Parser\PatternParser;
use IndifferentKetchup\Codex\Test\Src\Log\TestPatternLog;
use PHPUnit\Framework\TestCase;
class PatternParserTest extends TestCase

View File

@@ -1,12 +1,12 @@
<?php
namespace Aternos\Codex\Test\Tests\Printer;
namespace IndifferentKetchup\Codex\Test\Tests\Printer;
use Aternos\Codex\Log\Entry;
use Aternos\Codex\Log\File\PathLogFile;
use Aternos\Codex\Log\Line;
use Aternos\Codex\Log\Log;
use Aternos\Codex\Printer\DefaultPrinter;
use IndifferentKetchup\Codex\Log\Entry;
use IndifferentKetchup\Codex\Log\File\PathLogFile;
use IndifferentKetchup\Codex\Log\Line;
use IndifferentKetchup\Codex\Log\Log;
use IndifferentKetchup\Codex\Printer\DefaultPrinter;
use PHPUnit\Framework\TestCase;
class DefaultPrinterTest extends TestCase

View File

@@ -1,13 +1,13 @@
<?php
namespace Aternos\Codex\Test\Tests\Printer;
namespace IndifferentKetchup\Codex\Test\Tests\Printer;
use Aternos\Codex\Log\Entry;
use Aternos\Codex\Log\File\StringLogFile;
use Aternos\Codex\Log\Line;
use Aternos\Codex\Log\Log;
use Aternos\Codex\Printer\ModifiableDefaultPrinter;
use Aternos\Codex\Test\Src\Printer\TestModification;
use IndifferentKetchup\Codex\Log\Entry;
use IndifferentKetchup\Codex\Log\File\StringLogFile;
use IndifferentKetchup\Codex\Log\Line;
use IndifferentKetchup\Codex\Log\Log;
use IndifferentKetchup\Codex\Printer\ModifiableDefaultPrinter;
use IndifferentKetchup\Codex\Test\Src\Printer\TestModification;
use PHPUnit\Framework\TestCase;
class ModifiableDefaultPrinterTest extends TestCase

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Test\Tests\Printer;
namespace IndifferentKetchup\Codex\Test\Tests\Printer;
use Aternos\Codex\Log\File\StringLogFile;
use Aternos\Codex\Log\Log;
use Aternos\Codex\Printer\ModifiableDefaultPrinter;
use Aternos\Codex\Printer\PatternModification;
use IndifferentKetchup\Codex\Log\File\StringLogFile;
use IndifferentKetchup\Codex\Log\Log;
use IndifferentKetchup\Codex\Printer\ModifiableDefaultPrinter;
use IndifferentKetchup\Codex\Printer\PatternModification;
use PHPUnit\Framework\TestCase;
class PatternModificationTest extends TestCase