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,13 +1,13 @@
<?php
namespace Aternos\Codex\Analyser;
namespace IndifferentKetchup\Codex\Analyser;
use Aternos\Codex\Log\AnalysableLogInterface;
use IndifferentKetchup\Codex\Log\AnalysableLogInterface;
/**
* Class Analyser
*
* @package Aternos\Codex\Analyser
* @package IndifferentKetchup\Codex\Analyser
*/
abstract class Analyser implements AnalyserInterface
{

View File

@@ -1,14 +1,14 @@
<?php
namespace Aternos\Codex\Analyser;
namespace IndifferentKetchup\Codex\Analyser;
use Aternos\Codex\Analysis\AnalysisInterface;
use Aternos\Codex\Log\AnalysableLogInterface;
use IndifferentKetchup\Codex\Analysis\AnalysisInterface;
use IndifferentKetchup\Codex\Log\AnalysableLogInterface;
/**
* Interface AnalyserInterface
*
* @package Aternos\Codex\Analyser
* @package IndifferentKetchup\Codex\Analyser
*/
interface AnalyserInterface
{

View File

@@ -1,17 +1,17 @@
<?php
namespace Aternos\Codex\Analyser;
namespace IndifferentKetchup\Codex\Analyser;
use Aternos\Codex\Analysis\Analysis;
use Aternos\Codex\Analysis\AnalysisInterface;
use Aternos\Codex\Analysis\PatternInsightInterface;
use Aternos\Codex\Log\EntryInterface;
use IndifferentKetchup\Codex\Analysis\Analysis;
use IndifferentKetchup\Codex\Analysis\AnalysisInterface;
use IndifferentKetchup\Codex\Analysis\PatternInsightInterface;
use IndifferentKetchup\Codex\Log\EntryInterface;
use InvalidArgumentException;
/**
* Class PatternAnalyser
*
* @package Aternos\Codex\Analyser
* @package IndifferentKetchup\Codex\Analyser
*/
class PatternAnalyser extends Analyser
{

View File

@@ -1,13 +1,13 @@
<?php
namespace Aternos\Codex\Analysis;
namespace IndifferentKetchup\Codex\Analysis;
use Aternos\Codex\Log\LogInterface;
use IndifferentKetchup\Codex\Log\LogInterface;
/**
* Class Analysis
*
* @package Aternos\Codex\Analysis
* @package IndifferentKetchup\Codex\Analysis
*/
class Analysis implements AnalysisInterface
{

View File

@@ -1,9 +1,9 @@
<?php
namespace Aternos\Codex\Analysis;
namespace IndifferentKetchup\Codex\Analysis;
use ArrayAccess;
use Aternos\Codex\Log\LogInterface;
use IndifferentKetchup\Codex\Log\LogInterface;
use Countable;
use Iterator;
use JsonSerializable;
@@ -11,7 +11,7 @@ use JsonSerializable;
/**
* Interface AnalysisInterface
*
* @package Aternos\Codex\Analysis
* @package IndifferentKetchup\Codex\Analysis
*/
interface AnalysisInterface extends Iterator, Countable, ArrayAccess, JsonSerializable
{

View File

@@ -1,6 +1,6 @@
<?php
namespace Aternos\Codex\Analysis;
namespace IndifferentKetchup\Codex\Analysis;
/**
* Interface AutomatableSolutionInterface
@@ -9,7 +9,7 @@ namespace Aternos\Codex\Analysis;
* that a solution can be solved automatically
* e.g. deletion/creation/modification of files
*
* @package Aternos\Codex\Analysis
* @package IndifferentKetchup\Codex\Analysis
*/
interface AutomatableSolutionInterface extends SolutionInterface
{

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Analysis;
namespace IndifferentKetchup\Codex\Analysis;
/**
* Class Information
*
* @package Aternos\Codex\Analysis
* @package IndifferentKetchup\Codex\Analysis
*/
abstract class Information extends Insight implements InformationInterface
{

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Analysis;
namespace IndifferentKetchup\Codex\Analysis;
/**
* Interface InformationInterface
*
* @package Aternos\Codex\Analysis
* @package IndifferentKetchup\Codex\Analysis
*/
interface InformationInterface extends InsightInterface
{

View File

@@ -1,14 +1,14 @@
<?php
namespace Aternos\Codex\Analysis;
namespace IndifferentKetchup\Codex\Analysis;
use Aternos\Codex\Log\EntryInterface;
use Aternos\Codex\Log\LogInterface;
use IndifferentKetchup\Codex\Log\EntryInterface;
use IndifferentKetchup\Codex\Log\LogInterface;
/**
* Class Insight
*
* @package Aternos\Codex\Analysis
* @package IndifferentKetchup\Codex\Analysis
*/
abstract class Insight implements InsightInterface
{

View File

@@ -1,14 +1,14 @@
<?php
namespace Aternos\Codex\Analysis;
namespace IndifferentKetchup\Codex\Analysis;
use Aternos\Codex\Log\EntryInterface;
use IndifferentKetchup\Codex\Log\EntryInterface;
use JsonSerializable;
/**
* Interface InsightInterface
*
* @package Aternos\Codex\Analysis
* @package IndifferentKetchup\Codex\Analysis
*/
interface InsightInterface extends JsonSerializable
{

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Analysis;
namespace IndifferentKetchup\Codex\Analysis;
/**
* Interface PatternInsightInterface
*
* @package Aternos\Codex\Analysis
* @package IndifferentKetchup\Codex\Analysis
*/
interface PatternInsightInterface extends InsightInterface
{

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Analysis;
namespace IndifferentKetchup\Codex\Analysis;
/**
* Class Problem
*
* @package Aternos\Codex\Analysis
* @package IndifferentKetchup\Codex\Analysis
*/
abstract class Problem extends Insight implements ProblemInterface
{

View File

@@ -1,6 +1,6 @@
<?php
namespace Aternos\Codex\Analysis;
namespace IndifferentKetchup\Codex\Analysis;
use ArrayAccess;
use Countable;
@@ -9,7 +9,7 @@ use Iterator;
/**
* Interface ProblemInterface
*
* @package Aternos\Codex\Analysis
* @package IndifferentKetchup\Codex\Analysis
*/
interface ProblemInterface extends Iterator, Countable, ArrayAccess, InsightInterface
{

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Analysis;
namespace IndifferentKetchup\Codex\Analysis;
/**
* Class Solution
*
* @package Aternos\Codex\Analysis
* @package IndifferentKetchup\Codex\Analysis
*/
abstract class Solution implements SolutionInterface
{

View File

@@ -1,13 +1,13 @@
<?php
namespace Aternos\Codex\Analysis;
namespace IndifferentKetchup\Codex\Analysis;
use JsonSerializable;
/**
* Interface SolutionInterface
*
* @package Aternos\Codex\Analysis
* @package IndifferentKetchup\Codex\Analysis
*/
interface SolutionInterface extends JsonSerializable
{

View File

@@ -1,17 +1,17 @@
<?php
namespace Aternos\Codex\Detective;
namespace IndifferentKetchup\Codex\Detective;
use Aternos\Codex\Log\DetectableLogInterface;
use Aternos\Codex\Log\File\LogFileInterface;
use Aternos\Codex\Log\Log;
use Aternos\Codex\Log\LogInterface;
use IndifferentKetchup\Codex\Log\DetectableLogInterface;
use IndifferentKetchup\Codex\Log\File\LogFileInterface;
use IndifferentKetchup\Codex\Log\Log;
use IndifferentKetchup\Codex\Log\LogInterface;
use InvalidArgumentException;
/**
* Class Detective
*
* @package Aternos\Codex\Detective
* @package IndifferentKetchup\Codex\Detective
*/
class Detective implements DetectiveInterface
{

View File

@@ -1,14 +1,14 @@
<?php
namespace Aternos\Codex\Detective;
namespace IndifferentKetchup\Codex\Detective;
use Aternos\Codex\Log\File\LogFileInterface;
use Aternos\Codex\Log\LogInterface;
use IndifferentKetchup\Codex\Log\File\LogFileInterface;
use IndifferentKetchup\Codex\Log\LogInterface;
/**
* Interface DetectiveInterface
*
* @package Aternos\Codex\Detective
* @package IndifferentKetchup\Codex\Detective
*/
interface DetectiveInterface
{

View File

@@ -1,13 +1,13 @@
<?php
namespace Aternos\Codex\Detective;
namespace IndifferentKetchup\Codex\Detective;
use Aternos\Codex\Log\File\LogFileInterface;
use IndifferentKetchup\Codex\Log\File\LogFileInterface;
/**
* Class Detector
*
* @package Aternos\Codex\Detective
* @package IndifferentKetchup\Codex\Detective
*/
abstract class Detector implements DetectorInterface
{

View File

@@ -1,13 +1,13 @@
<?php
namespace Aternos\Codex\Detective;
namespace IndifferentKetchup\Codex\Detective;
use Aternos\Codex\Log\File\LogFileInterface;
use IndifferentKetchup\Codex\Log\File\LogFileInterface;
/**
* Interface DetectorInterface
*
* @package Aternos\Codex\Detective
* @package IndifferentKetchup\Codex\Detective
*/
interface DetectorInterface
{

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Detective;
namespace IndifferentKetchup\Codex\Detective;
/**
* Class LinePatternDetector
*
* @package Aternos\Codex\Detective
* @package IndifferentKetchup\Codex\Detective
*/
class LinePatternDetector extends PatternDetector
{

View File

@@ -1,6 +1,6 @@
<?php
namespace Aternos\Codex\Detective;
namespace IndifferentKetchup\Codex\Detective;
/**
* MultiPatternDetector can detect multiple patterns in a log and return true if all patterns are found

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Detective;
namespace IndifferentKetchup\Codex\Detective;
/**
* Class PatternDetector
*
* @package Aternos\Codex\Detective
* @package IndifferentKetchup\Codex\Detective
*/
abstract class PatternDetector extends Detector
{

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Detective;
namespace IndifferentKetchup\Codex\Detective;
/**
* Class SinglePatternDetector
*
* @package Aternos\Codex\Detective
* @package IndifferentKetchup\Codex\Detective
*/
class SinglePatternDetector extends PatternDetector
{

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Detective;
namespace IndifferentKetchup\Codex\Detective;
/**
* Class WeightedSinglePatternDetector
*
* @package Aternos\Codex\Detective
* @package IndifferentKetchup\Codex\Detective
*/
class WeightedSinglePatternDetector extends SinglePatternDetector
{

View File

@@ -1,14 +1,14 @@
<?php
namespace Aternos\Codex\Log;
namespace IndifferentKetchup\Codex\Log;
use Aternos\Codex\Analyser\AnalyserInterface;
use Aternos\Codex\Analysis\AnalysisInterface;
use IndifferentKetchup\Codex\Analyser\AnalyserInterface;
use IndifferentKetchup\Codex\Analysis\AnalysisInterface;
/**
* Class AnalysableLog
*
* @package Aternos\Codex\Log
* @package IndifferentKetchup\Codex\Log
*/
abstract class AnalysableLog extends Log implements AnalysableLogInterface
{

View File

@@ -1,14 +1,14 @@
<?php
namespace Aternos\Codex\Log;
namespace IndifferentKetchup\Codex\Log;
use Aternos\Codex\Analyser\AnalyserInterface;
use Aternos\Codex\Analysis\AnalysisInterface;
use IndifferentKetchup\Codex\Analyser\AnalyserInterface;
use IndifferentKetchup\Codex\Analysis\AnalysisInterface;
/**
* Interface AnalysableLogInterface
*
* @package Aternos\Codex\Log
* @package IndifferentKetchup\Codex\Log
*/
interface AnalysableLogInterface
{

View File

@@ -1,13 +1,13 @@
<?php
namespace Aternos\Codex\Log;
namespace IndifferentKetchup\Codex\Log;
use Aternos\Codex\Detective\DetectorInterface;
use IndifferentKetchup\Codex\Detective\DetectorInterface;
/**
* Interface DetectableLogInterface
*
* @package Aternos\Codex\Log
* @package IndifferentKetchup\Codex\Log
*/
interface DetectableLogInterface extends LogInterface
{

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Log;
namespace IndifferentKetchup\Codex\Log;
/**
* Class Entry
*
* @package Aternos\Codex\Log
* @package IndifferentKetchup\Codex\Log
*/
class Entry implements EntryInterface
{

View File

@@ -1,6 +1,6 @@
<?php
namespace Aternos\Codex\Log;
namespace IndifferentKetchup\Codex\Log;
use ArrayAccess;
use Countable;
@@ -10,7 +10,7 @@ use JsonSerializable;
/**
* Interface EntryInterface
*
* @package Aternos\Codex\Log
* @package IndifferentKetchup\Codex\Log
*/
interface EntryInterface extends Iterator, Countable, ArrayAccess, JsonSerializable
{

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Log\File;
namespace IndifferentKetchup\Codex\Log\File;
/**
* Class LogFile
*
* @package Aternos\Codex\Log\File
* @package IndifferentKetchup\Codex\Log\File
*/
abstract class LogFile implements LogFileInterface
{

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Log\File;
namespace IndifferentKetchup\Codex\Log\File;
/**
* Interface LogFileInterface
*
* @package Aternos\Codex\Log\File
* @package IndifferentKetchup\Codex\Log\File
*/
interface LogFileInterface
{

View File

@@ -1,13 +1,13 @@
<?php
namespace Aternos\Codex\Log\File;
namespace IndifferentKetchup\Codex\Log\File;
use InvalidArgumentException;
/**
* Class PathLogFile
*
* @package Aternos\Codex\Log\File
* @package IndifferentKetchup\Codex\Log\File
*/
class PathLogFile extends LogFile
{

View File

@@ -1,13 +1,13 @@
<?php
namespace Aternos\Codex\Log\File;
namespace IndifferentKetchup\Codex\Log\File;
use InvalidArgumentException;
/**
* Class StreamLogFile
*
* @package Aternos\Codex\Log\File
* @package IndifferentKetchup\Codex\Log\File
*/
class StreamLogFile extends LogFile
{

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Log\File;
namespace IndifferentKetchup\Codex\Log\File;
/**
* Class StringLogFile
*
* @package Aternos\Codex\Log\File
* @package IndifferentKetchup\Codex\Log\File
*/
class StringLogFile extends LogFile
{

View File

@@ -1,6 +1,6 @@
<?php
namespace Aternos\Codex\Log;
namespace IndifferentKetchup\Codex\Log;
enum Level: int implements LevelInterface
{

View File

@@ -1,6 +1,6 @@
<?php
namespace Aternos\Codex\Log;
namespace IndifferentKetchup\Codex\Log;
use JsonSerializable;

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Log;
namespace IndifferentKetchup\Codex\Log;
/**
* Class Line
*
* @package Aternos\Codex\Log
* @package IndifferentKetchup\Codex\Log
*/
class Line implements LineInterface
{

View File

@@ -1,13 +1,13 @@
<?php
namespace Aternos\Codex\Log;
namespace IndifferentKetchup\Codex\Log;
use JsonSerializable;
/**
* Interface LineInterface
*
* @package Aternos\Codex\Log
* @package IndifferentKetchup\Codex\Log
*/
interface LineInterface extends JsonSerializable
{

View File

@@ -1,15 +1,15 @@
<?php
namespace Aternos\Codex\Log;
namespace IndifferentKetchup\Codex\Log;
use Aternos\Codex\Log\File\LogFileInterface;
use Aternos\Codex\Parser\DefaultParser;
use Aternos\Codex\Parser\ParserInterface;
use IndifferentKetchup\Codex\Log\File\LogFileInterface;
use IndifferentKetchup\Codex\Parser\DefaultParser;
use IndifferentKetchup\Codex\Parser\ParserInterface;
/**
* Class Log
*
* @package Aternos\Codex\Log
* @package IndifferentKetchup\Codex\Log
*/
class Log implements LogInterface
{

View File

@@ -1,10 +1,10 @@
<?php
namespace Aternos\Codex\Log;
namespace IndifferentKetchup\Codex\Log;
use ArrayAccess;
use Aternos\Codex\Log\File\LogFileInterface;
use Aternos\Codex\Parser\ParserInterface;
use IndifferentKetchup\Codex\Log\File\LogFileInterface;
use IndifferentKetchup\Codex\Parser\ParserInterface;
use Countable;
use Iterator;
use JsonSerializable;
@@ -12,7 +12,7 @@ use JsonSerializable;
/**
* Interface LogInterface
*
* @package Aternos\Codex\Log
* @package IndifferentKetchup\Codex\Log
*/
interface LogInterface extends Iterator, Countable, ArrayAccess, JsonSerializable
{

View File

@@ -1,14 +1,14 @@
<?php
namespace Aternos\Codex\Parser;
namespace IndifferentKetchup\Codex\Parser;
use Aternos\Codex\Log\Entry;
use Aternos\Codex\Log\Line;
use IndifferentKetchup\Codex\Log\Entry;
use IndifferentKetchup\Codex\Log\Line;
/**
* Class DefaultParser
*
* @package Aternos\Codex\Parser
* @package IndifferentKetchup\Codex\Parser
*/
class DefaultParser extends Parser
{

View File

@@ -1,13 +1,13 @@
<?php
namespace Aternos\Codex\Parser;
namespace IndifferentKetchup\Codex\Parser;
use Aternos\Codex\Log\LogInterface;
use IndifferentKetchup\Codex\Log\LogInterface;
/**
* Class Parser
*
* @package Aternos\Codex\Parser
* @package IndifferentKetchup\Codex\Parser
*/
abstract class Parser implements ParserInterface
{

View File

@@ -1,13 +1,13 @@
<?php
namespace Aternos\Codex\Parser;
namespace IndifferentKetchup\Codex\Parser;
use Aternos\Codex\Log\LogInterface;
use IndifferentKetchup\Codex\Log\LogInterface;
/**
* Interface ParserInterface
*
* @package Aternos\Codex\Parser
* @package IndifferentKetchup\Codex\Parser
*/
interface ParserInterface
{

View File

@@ -1,12 +1,12 @@
<?php
namespace Aternos\Codex\Parser;
namespace IndifferentKetchup\Codex\Parser;
use Aternos\Codex\Log\Entry;
use Aternos\Codex\Log\EntryInterface;
use Aternos\Codex\Log\Level;
use Aternos\Codex\Log\LevelInterface;
use Aternos\Codex\Log\Line;
use IndifferentKetchup\Codex\Log\Entry;
use IndifferentKetchup\Codex\Log\EntryInterface;
use IndifferentKetchup\Codex\Log\Level;
use IndifferentKetchup\Codex\Log\LevelInterface;
use IndifferentKetchup\Codex\Log\Line;
use DateTime;
use DateTimeZone;
use InvalidArgumentException;
@@ -14,7 +14,7 @@ use InvalidArgumentException;
/**
* Class PatternParser
*
* @package Aternos\Codex\Parser
* @package IndifferentKetchup\Codex\Parser
*/
class PatternParser extends Parser
{

View File

@@ -1,13 +1,13 @@
<?php
namespace Aternos\Codex\Printer;
namespace IndifferentKetchup\Codex\Printer;
use Aternos\Codex\Log\LineInterface;
use IndifferentKetchup\Codex\Log\LineInterface;
/**
* Class DefaultPrinter
*
* @package Aternos\Codex\Printer
* @package IndifferentKetchup\Codex\Printer
*/
class DefaultPrinter extends Printer
{

View File

@@ -1,13 +1,13 @@
<?php
namespace Aternos\Codex\Printer;
namespace IndifferentKetchup\Codex\Printer;
use Aternos\Codex\Log\LineInterface;
use IndifferentKetchup\Codex\Log\LineInterface;
/**
* Class ModifiableDefaultPrinter
*
* @package Aternos\Codex\Printer
* @package IndifferentKetchup\Codex\Printer
*/
class ModifiableDefaultPrinter extends ModifiablePrinter
{

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Printer;
namespace IndifferentKetchup\Codex\Printer;
/**
* Class ModifiablePrinter
*
* @package Aternos\Codex\Printer
* @package IndifferentKetchup\Codex\Printer
*/
abstract class ModifiablePrinter extends Printer implements ModifiablePrinterInterface
{

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Printer;
namespace IndifferentKetchup\Codex\Printer;
/**
* Interface ModifiablePrinterInterface
*
* @package Aternos\Codex\Printer
* @package IndifferentKetchup\Codex\Printer
*/
interface ModifiablePrinterInterface extends PrinterInterface
{

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Printer;
namespace IndifferentKetchup\Codex\Printer;
/**
* Class Modification
*
* @package Aternos\Codex\Printer
* @package IndifferentKetchup\Codex\Printer
*/
abstract class Modification implements ModificationInterface
{

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Printer;
namespace IndifferentKetchup\Codex\Printer;
/**
* Interface ModificationInterface
*
* @package Aternos\Codex\Printer
* @package IndifferentKetchup\Codex\Printer
*/
interface ModificationInterface
{

View File

@@ -1,11 +1,11 @@
<?php
namespace Aternos\Codex\Printer;
namespace IndifferentKetchup\Codex\Printer;
/**
* Class PatternModification
*
* @package Aternos\Codex\Printer
* @package IndifferentKetchup\Codex\Printer
*/
class PatternModification extends Modification
{

View File

@@ -1,15 +1,15 @@
<?php
namespace Aternos\Codex\Printer;
namespace IndifferentKetchup\Codex\Printer;
use Aternos\Codex\Log\EntryInterface;
use Aternos\Codex\Log\LineInterface;
use Aternos\Codex\Log\LogInterface;
use IndifferentKetchup\Codex\Log\EntryInterface;
use IndifferentKetchup\Codex\Log\LineInterface;
use IndifferentKetchup\Codex\Log\LogInterface;
/**
* Class Printer
*
* @package Aternos\Codex\Printer
* @package IndifferentKetchup\Codex\Printer
*/
abstract class Printer implements PrinterInterface
{

View File

@@ -1,14 +1,14 @@
<?php
namespace Aternos\Codex\Printer;
namespace IndifferentKetchup\Codex\Printer;
use Aternos\Codex\Log\EntryInterface;
use Aternos\Codex\Log\LogInterface;
use IndifferentKetchup\Codex\Log\EntryInterface;
use IndifferentKetchup\Codex\Log\LogInterface;
/**
* Interface PrinterInterface
*
* @package Aternos\Codex\Printer
* @package IndifferentKetchup\Codex\Printer
*/
interface PrinterInterface
{

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