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:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Aternos\Codex\Log;
|
||||
namespace IndifferentKetchup\Codex\Log;
|
||||
|
||||
enum Level: int implements LevelInterface
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Aternos\Codex\Log;
|
||||
namespace IndifferentKetchup\Codex\Log;
|
||||
|
||||
use JsonSerializable;
|
||||
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user