Skip to content

Commit

Permalink
remove useless docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Feb 22, 2018
1 parent 6724fdb commit 3481ea9
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 38 deletions.
1 change: 1 addition & 0 deletions src/Handler/Writer/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function __construct(

/**
* {inheritDoc}
*
* Override with apply attachment whenever there is $_FILES data
*/
public function shutdown() : void
Expand Down
15 changes: 0 additions & 15 deletions src/Listener/Mvc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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');
Expand Down
18 changes: 0 additions & 18 deletions src/Middleware/Expressive.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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']) {
Expand All @@ -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']);
Expand All @@ -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
{
Expand All @@ -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
{
Expand Down
5 changes: 0 additions & 5 deletions src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@

class Module
{
/**
* @param ModuleManager $moduleManager
*
* @return void
*/
public function init(ModuleManager $moduleManager) : void
{
$eventManager = $moduleManager->getEventManager();
Expand Down

0 comments on commit 3481ea9

Please sign in to comment.