diff --git a/src/Event/Hook/AfterAnalysisHook.php b/src/Event/Hook/AfterAnalysisHook.php index 03cc7192..dbcffb45 100644 --- a/src/Event/Hook/AfterAnalysisHook.php +++ b/src/Event/Hook/AfterAnalysisHook.php @@ -4,13 +4,13 @@ namespace Churn\Event\Hook; -use Churn\Event\Event\AfterAnalysisEvent; +use Churn\Event\Event\AfterAnalysis; interface AfterAnalysisHook { /** - * @param AfterAnalysisEvent $event The event triggered when the analysis is done. + * @param AfterAnalysis $event The event triggered when the analysis is done. */ - public static function afterAnalysis(AfterAnalysisEvent $event): void; + public static function afterAnalysis(AfterAnalysis $event): void; } diff --git a/src/Event/Hook/AfterFileAnalysisHook.php b/src/Event/Hook/AfterFileAnalysisHook.php index 2377debd..9cdd3a04 100644 --- a/src/Event/Hook/AfterFileAnalysisHook.php +++ b/src/Event/Hook/AfterFileAnalysisHook.php @@ -4,13 +4,13 @@ namespace Churn\Event\Hook; -use Churn\Event\Event\AfterFileAnalysisEvent; +use Churn\Event\Event\AfterFileAnalysis; interface AfterFileAnalysisHook { /** - * @param AfterFileAnalysisEvent $event The event triggered when the analysis of a file is done. + * @param AfterFileAnalysis $event The event triggered when the analysis of a file is done. */ - public static function afterFileAnalysis(AfterFileAnalysisEvent $event): void; + public static function afterFileAnalysis(AfterFileAnalysis $event): void; } diff --git a/src/Event/Hook/BeforeAnalysisHook.php b/src/Event/Hook/BeforeAnalysisHook.php index 2673a1ce..ff22644b 100644 --- a/src/Event/Hook/BeforeAnalysisHook.php +++ b/src/Event/Hook/BeforeAnalysisHook.php @@ -4,13 +4,13 @@ namespace Churn\Event\Hook; -use Churn\Event\Event\BeforeAnalysisEvent; +use Churn\Event\Event\BeforeAnalysis; interface BeforeAnalysisHook { /** - * @param BeforeAnalysisEvent $event The event triggered when the analysis starts. + * @param BeforeAnalysis $event The event triggered when the analysis starts. */ - public static function beforeAnalysis(BeforeAnalysisEvent $event): void; + public static function beforeAnalysis(BeforeAnalysis $event): void; } diff --git a/tests/Integration/Command/Assets/PrintHook.php b/tests/Integration/Command/Assets/PrintHook.php index 8865dd83..e11048bd 100644 --- a/tests/Integration/Command/Assets/PrintHook.php +++ b/tests/Integration/Command/Assets/PrintHook.php @@ -4,8 +4,8 @@ namespace Churn\Tests\Integration\Command\Assets; -use Churn\Event\Event\AfterAnalysisEvent; -use Churn\Event\Event\BeforeAnalysisEvent; +use Churn\Event\Event\AfterAnalysis; +use Churn\Event\Event\BeforeAnalysis; use Churn\Event\Hook\AfterAnalysisHook; use Churn\Event\Hook\BeforeAnalysisHook; @@ -13,17 +13,17 @@ class PrintHook implements AfterAnalysisHook, BeforeAnalysisHook { /** - * @param AfterAnalysisEvent $event The event triggered when the analysis is done. + * @param AfterAnalysis $event The event triggered when the analysis is done. */ - public static function afterAnalysis(AfterAnalysisEvent $event): void + public static function afterAnalysis(AfterAnalysis $event): void { echo "DONE"; } /** - * @param BeforeAnalysisEvent $event The event triggered when the analysis starts. + * @param BeforeAnalysis $event The event triggered when the analysis starts. */ - public static function beforeAnalysis(BeforeAnalysisEvent $event): void + public static function beforeAnalysis(BeforeAnalysis $event): void { echo "Churn: "; } diff --git a/tests/Integration/Command/Assets/TestHook.php b/tests/Integration/Command/Assets/TestHook.php index c70be2c8..8f43700b 100644 --- a/tests/Integration/Command/Assets/TestHook.php +++ b/tests/Integration/Command/Assets/TestHook.php @@ -4,9 +4,9 @@ namespace Churn\Tests\Integration\Command\Assets; -use Churn\Event\Event\AfterAnalysisEvent; -use Churn\Event\Event\AfterFileAnalysisEvent; -use Churn\Event\Event\BeforeAnalysisEvent; +use Churn\Event\Event\AfterAnalysis; +use Churn\Event\Event\AfterFileAnalysis; +use Churn\Event\Event\BeforeAnalysis; use Churn\Event\Hook\AfterAnalysisHook; use Churn\Event\Hook\AfterFileAnalysisHook; use Churn\Event\Hook\BeforeAnalysisHook; @@ -26,25 +26,25 @@ public static function reset(): void } /** - * @param AfterAnalysisEvent $event The event triggered when the analysis is done. + * @param AfterAnalysis $event The event triggered when the analysis is done. */ - public static function afterAnalysis(AfterAnalysisEvent $event): void + public static function afterAnalysis(AfterAnalysis $event): void { self::$nbAfterAnalysisEvent++; } /** - * @param AfterFileAnalysisEvent $event The event triggered when the analysis of a file is done. + * @param AfterFileAnalysis $event The event triggered when the analysis of a file is done. */ - public static function afterFileAnalysis(AfterFileAnalysisEvent $event): void + public static function afterFileAnalysis(AfterFileAnalysis $event): void { self::$nbAfterFileAnalysisEvent++; } /** - * @param BeforeAnalysisEvent $event The event triggered when the analysis starts. + * @param BeforeAnalysis $event The event triggered when the analysis starts. */ - public static function beforeAnalysis(BeforeAnalysisEvent $event): void + public static function beforeAnalysis(BeforeAnalysis $event): void { self::$nbBeforeAnalysisEvent++; } diff --git a/tests/Integration/Command/Assets/hooks.php b/tests/Integration/Command/Assets/hooks.php index f5745525..6f37b173 100644 --- a/tests/Integration/Command/Assets/hooks.php +++ b/tests/Integration/Command/Assets/hooks.php @@ -4,9 +4,9 @@ namespace Churn\Tests\Integration\Command\Assets; -use Churn\Event\Event\AfterAnalysisEvent; -use Churn\Event\Event\AfterFileAnalysisEvent; -use Churn\Event\Event\BeforeAnalysisEvent; +use Churn\Event\Event\AfterAnalysis; +use Churn\Event\Event\AfterFileAnalysis; +use Churn\Event\Event\BeforeAnalysis; use Churn\Event\Hook\AfterAnalysisHook; use Churn\Event\Hook\AfterFileAnalysisHook; use Churn\Event\Hook\BeforeAnalysisHook; @@ -16,9 +16,9 @@ class TestAfterAnalysisHook implements AfterAnalysisHook public static $nbAfterAnalysisEvent = 0; /** - * @param AfterAnalysisEvent $event The event triggered when the analysis is done. + * @param AfterAnalysis $event The event triggered when the analysis is done. */ - public static function afterAnalysis(AfterAnalysisEvent $event): void + public static function afterAnalysis(AfterAnalysis $event): void { self::$nbAfterAnalysisEvent++; } @@ -29,9 +29,9 @@ class TestAfterFileAnalysisHook implements AfterFileAnalysisHook public static $nbAfterFileAnalysisEvent = 0; /** - * @param AfterFileAnalysisEvent $event The event triggered when the analysis of a file is done. + * @param AfterFileAnalysis $event The event triggered when the analysis of a file is done. */ - public static function afterFileAnalysis(AfterFileAnalysisEvent $event): void + public static function afterFileAnalysis(AfterFileAnalysis $event): void { self::$nbAfterFileAnalysisEvent++; } @@ -42,9 +42,9 @@ class TestBeforeAnalysisHook implements BeforeAnalysisHook public static $nbBeforeAnalysisEvent = 0; /** - * @param BeforeAnalysisEvent $event The event triggered when the analysis starts. + * @param BeforeAnalysis $event The event triggered when the analysis starts. */ - public static function beforeAnalysis(BeforeAnalysisEvent $event): void + public static function beforeAnalysis(BeforeAnalysis $event): void { self::$nbBeforeAnalysisEvent++; }