From 3481ea9655fe26c3e3f0c380e933bb95f8b7d69b Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 23 Feb 2018 03:21:32 +0700 Subject: [PATCH] remove useless docblocks --- src/Handler/Writer/Mail.php | 1 + src/Listener/Mvc.php | 15 --------------- src/Middleware/Expressive.php | 18 ------------------ src/Module.php | 5 ----- 4 files changed, 1 insertion(+), 38 deletions(-) diff --git a/src/Handler/Writer/Mail.php b/src/Handler/Writer/Mail.php index 0f7ac08a..3c472160 100644 --- a/src/Handler/Writer/Mail.php +++ b/src/Handler/Writer/Mail.php @@ -36,6 +36,7 @@ public function __construct( /** * {inheritDoc} + * * Override with apply attachment whenever there is $_FILES data */ public function shutdown() : void diff --git a/src/Listener/Mvc.php b/src/Listener/Mvc.php index 86724e08..f3bff329 100644 --- a/src/Listener/Mvc.php +++ b/src/Listener/Mvc.php @@ -23,11 +23,6 @@ class Mvc extends AbstractListenerAggregate { use HeroTrait; - /** - * @param array $errorHeroModuleConfig - * @param Logging $logging - * @param PhpRenderer $renderer - */ public function __construct( array $errorHeroModuleConfig, Logging $logging, @@ -52,22 +47,12 @@ public function attach(EventManagerInterface $events, $priority = 1) : void $this->listeners[] = $events->attach(MvcEvent::EVENT_BOOTSTRAP, [$this, 'phpError']); } - /** - * @param Event $e - * - * @return void - */ public function phpError(Event $e) { \register_shutdown_function([$this, 'execOnShutdown']); \set_error_handler([$this, 'phpErrorHandler']); } - /** - * @param Event $e - * - * @return void - */ public function exceptionError(Event $e) : void { $exception = $e->getParam('exception'); diff --git a/src/Middleware/Expressive.php b/src/Middleware/Expressive.php index a95de905..d1f1a65f 100644 --- a/src/Middleware/Expressive.php +++ b/src/Middleware/Expressive.php @@ -30,11 +30,6 @@ class Expressive implements MiddlewareInterface */ private $request; - /** - * @param array $errorHeroModuleConfig - * @param Logging $logging - * @param TemplateRendererInterface $renderer - */ public function __construct( array $errorHeroModuleConfig, Logging $logging, @@ -45,11 +40,6 @@ public function __construct( $this->renderer = $renderer; } - /** - * @param ServerRequestInterface $request - * @param RequestHandlerInterface $handler - * @return ResponseInterface - */ public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface { if (! $this->errorHeroModuleConfig['enable']) { @@ -68,10 +58,6 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface return $this->exceptionError($t, $request); } - /** - * - * @return void - */ public function phpError() : void { \register_shutdown_function([$this, 'execOnShutdown']); @@ -81,8 +67,6 @@ public function phpError() : void /** * @throws Error when 'display_errors' config is 1 and Error has thrown * @throws Exception when 'display_errors' config is 1 and Exception has thrown - * - * @return ResponseInterface */ public function exceptionError(Throwable $t, ServerRequestInterface $request) : ResponseInterface { @@ -106,8 +90,6 @@ public function exceptionError(Throwable $t, ServerRequestInterface $request) : /** * It show default view if display_errors setting = 0. - * - * @return ResponseInterface */ private function showDefaultViewWhenDisplayErrorSetttingIsDisabled() : ResponseInterface { diff --git a/src/Module.php b/src/Module.php index 9242571c..b828ac4f 100644 --- a/src/Module.php +++ b/src/Module.php @@ -10,11 +10,6 @@ class Module { - /** - * @param ModuleManager $moduleManager - * - * @return void - */ public function init(ModuleManager $moduleManager) : void { $eventManager = $moduleManager->getEventManager();