From 35188c978286e80d94d339f27cc237e7cf8680fc Mon Sep 17 00:00:00 2001 From: Jagepard Date: Mon, 8 Jun 2026 15:45:43 +0300 Subject: [PATCH] Refactor: Cleanup documentation and remove redundant comments --- docs.md | 12 +++++++++--- src/Controller.php | 13 ------------- src/ControllerInterface.php | 11 ----------- src/ShipControllerInterface.php | 7 ------- 4 files changed, 9 insertions(+), 34 deletions(-) diff --git a/docs.md b/docs.md index db25950..a308096 100644 --- a/docs.md +++ b/docs.md @@ -3,7 +3,11 @@ - [Rudra\Controller\Controller](#rudra_controller_controller) - [Rudra\Controller\ControllerInterface](#rudra_controller_controllerinterface) - [Rudra\Controller\ShipControllerInterface](#rudra_controller_shipcontrollerinterface) -
+ + +--- + + @@ -42,6 +46,8 @@ |:-----------|:---------| | abstract public | `shipInit(): void`
| | abstract public | `eventRegistration(): void`
| -
-###### created with [Rudra-Documentation-Collector](#https://github.com/Jagepard/Rudra-Documentation-Collector) + +--- + +###### created with [Rudra-Documentation-Collector](https://github.com/Jagepard/Rudra-Documentation-Collector) diff --git a/src/Controller.php b/src/Controller.php index 70c65fd..2eb2e94 100755 --- a/src/Controller.php +++ b/src/Controller.php @@ -20,30 +20,17 @@ public function __construct() $this->csrfProtection(); } - /** - * @return void - */ #[\Override] public function init(): void {} - /** - * @return void - */ #[\Override] public function before(): void {} - /** - * @return void - */ #[\Override] public function after(): void {} /** * Method to protect against CSRF attack - * --------------- - * Метод защиты от CSRF-атак - * - * @return void */ public function csrfProtection(): void { diff --git a/src/ControllerInterface.php b/src/ControllerInterface.php index f7c4bdb..f4bc191 100755 --- a/src/ControllerInterface.php +++ b/src/ControllerInterface.php @@ -13,18 +13,7 @@ interface ControllerInterface { - /** - * @return void - */ public function init(): void; - - /** - * @return void - */ public function before(): void; - - /** - * @return void - */ public function after(): void; } diff --git a/src/ShipControllerInterface.php b/src/ShipControllerInterface.php index 435f1c2..d92f356 100644 --- a/src/ShipControllerInterface.php +++ b/src/ShipControllerInterface.php @@ -13,13 +13,6 @@ interface ShipControllerInterface { - /** - * @return void - */ public function shipInit(): void; - - /** - * @return void - */ public function eventRegistration(): void; }