phpcs fixes

This commit is contained in:
Dennis Eichhorn 2019-09-29 00:11:20 +02:00
parent cd58375f02
commit 8221d4b723
8 changed files with 22 additions and 19 deletions

View File

@ -25,4 +25,4 @@ namespace phpOMS\Algorithm\PathFinding;
class NullNode extends Node
{
}
}

View File

@ -14,8 +14,8 @@ declare(strict_types=1);
namespace phpOMS\Dispatcher;
interface DispatcherInterface {
interface DispatcherInterface
{
/**
* Dispatch controller.
*

View File

@ -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);

View File

@ -38,16 +38,6 @@ final class Header extends HeaderAbstract
*/
private array $header = [];
/**
* Constructor.
*
* @since 1.0.0
*/
public function __construct()
{
parent::__construct();
}
/**
* Set header.
*

View File

@ -24,5 +24,10 @@ namespace phpOMS\Module;
*/
final class NullModule extends ModuleAbstract
{
/**
* Constructor.
*
* @since 1.0.0
*/
public function __construct() {}
}

View File

@ -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
{

View File

@ -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;
}
}

View File

@ -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));
}
}