mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-18 01:18:40 +00:00
phpcs fixes
This commit is contained in:
parent
cd58375f02
commit
8221d4b723
|
|
@ -14,8 +14,8 @@ declare(strict_types=1);
|
|||
|
||||
namespace phpOMS\Dispatcher;
|
||||
|
||||
interface DispatcherInterface {
|
||||
|
||||
interface DispatcherInterface
|
||||
{
|
||||
/**
|
||||
* Dispatch controller.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -67,7 +67,13 @@ final class EventManager implements \Countable
|
|||
public function __construct(Dispatcher $dispatcher = null)
|
||||
{
|
||||
$this->dispatcher = $dispatcher ?? new class() implements DispatcherInterface {
|
||||
public function dispatch($func, ...$data) : array
|
||||
/**
|
||||
* Dispatches a function
|
||||
*
|
||||
* @param \Closure $func Function
|
||||
* @param mixed ...$data Date passed to function
|
||||
*/
|
||||
public function dispatch(\Closure $func, ...$data) : array
|
||||
{
|
||||
$func(...$data);
|
||||
|
||||
|
|
|
|||
|
|
@ -38,16 +38,6 @@ final class Header extends HeaderAbstract
|
|||
*/
|
||||
private array $header = [];
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set header.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -24,5 +24,10 @@ namespace phpOMS\Module;
|
|||
*/
|
||||
final class NullModule extends ModuleAbstract
|
||||
{
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function __construct() {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@ use phpOMS\Log\FileLogger;
|
|||
* Default exception and error handler.
|
||||
*
|
||||
* @package phpOMS
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
final class UnhandledHandler
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user