mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-13 15:18:41 +00:00
phpcs fixes
This commit is contained in:
parent
cd58375f02
commit
8221d4b723
|
|
@ -14,8 +14,8 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace phpOMS\Dispatcher;
|
namespace phpOMS\Dispatcher;
|
||||||
|
|
||||||
interface DispatcherInterface {
|
interface DispatcherInterface
|
||||||
|
{
|
||||||
/**
|
/**
|
||||||
* Dispatch controller.
|
* Dispatch controller.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,13 @@ final class EventManager implements \Countable
|
||||||
public function __construct(Dispatcher $dispatcher = null)
|
public function __construct(Dispatcher $dispatcher = null)
|
||||||
{
|
{
|
||||||
$this->dispatcher = $dispatcher ?? new class() implements DispatcherInterface {
|
$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);
|
$func(...$data);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,16 +38,6 @@ final class Header extends HeaderAbstract
|
||||||
*/
|
*/
|
||||||
private array $header = [];
|
private array $header = [];
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor.
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
public function __construct()
|
|
||||||
{
|
|
||||||
parent::__construct();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set header.
|
* Set header.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -24,5 +24,10 @@ namespace phpOMS\Module;
|
||||||
*/
|
*/
|
||||||
final class NullModule extends ModuleAbstract
|
final class NullModule extends ModuleAbstract
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function __construct() {}
|
public function __construct() {}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,10 @@ use phpOMS\Log\FileLogger;
|
||||||
/**
|
/**
|
||||||
* Default exception and error handler.
|
* Default exception and error handler.
|
||||||
*
|
*
|
||||||
* @package phpOMS
|
* @package phpOMS
|
||||||
* @since 1.0.0
|
* @license OMS License 1.0
|
||||||
|
* @link https://orange-management.org
|
||||||
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
final class UnhandledHandler
|
final class UnhandledHandler
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -205,8 +205,8 @@ final class UriFactory
|
||||||
$spl = \explode('=', $pars[$i]);
|
$spl = \explode('=', $pars[$i]);
|
||||||
|
|
||||||
if (isset($spl[1])) {
|
if (isset($spl[1])) {
|
||||||
$url .= $first ? '?' : '&';
|
$url .= $first ? '?' : '&';
|
||||||
$url .= $spl[0] . '=' . $spl[1];
|
$url .= $spl[0] . '=' . $spl[1];
|
||||||
$first = false;
|
$first = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,6 @@ final class NumericUtils
|
||||||
return $a;
|
return $a;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ($a >> $b) & ~(1 << (8 * \PHP_INT_SIZE - 1)>>($b - 1));
|
return ($a >> $b) & ~(1 << (8 * \PHP_INT_SIZE - 1) >> ($b - 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user