mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
phpcs fixes
This commit is contained in:
parent
cd58375f02
commit
8221d4b723
|
|
@ -25,4 +25,4 @@ namespace phpOMS\Algorithm\PathFinding;
|
|||
class NullNode extends Node
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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() {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,8 +19,10 @@ use phpOMS\Log\FileLogger;
|
|||
/**
|
||||
* Default exception and error handler.
|
||||
*
|
||||
* @package phpOMS
|
||||
* @since 1.0.0
|
||||
* @package phpOMS
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
final class UnhandledHandler
|
||||
{
|
||||
|
|
|
|||
|
|
@ -205,8 +205,8 @@ final class UriFactory
|
|||
$spl = \explode('=', $pars[$i]);
|
||||
|
||||
if (isset($spl[1])) {
|
||||
$url .= $first ? '?' : '&';
|
||||
$url .= $spl[0] . '=' . $spl[1];
|
||||
$url .= $first ? '?' : '&';
|
||||
$url .= $spl[0] . '=' . $spl[1];
|
||||
$first = false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,6 +41,6 @@ final class NumericUtils
|
|||
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