diff --git a/Algorithm/PathFinding/NullNode.php b/Algorithm/PathFinding/NullNode.php index c14ac7287..1eba27481 100644 --- a/Algorithm/PathFinding/NullNode.php +++ b/Algorithm/PathFinding/NullNode.php @@ -25,4 +25,4 @@ namespace phpOMS\Algorithm\PathFinding; class NullNode extends Node { -} \ No newline at end of file +} diff --git a/Dispatcher/DispatcherInterface.php b/Dispatcher/DispatcherInterface.php index a4d62a3ac..4593e881b 100644 --- a/Dispatcher/DispatcherInterface.php +++ b/Dispatcher/DispatcherInterface.php @@ -14,8 +14,8 @@ declare(strict_types=1); namespace phpOMS\Dispatcher; -interface DispatcherInterface { - +interface DispatcherInterface +{ /** * Dispatch controller. * diff --git a/Event/EventManager.php b/Event/EventManager.php index cf89caa7f..84ff8cc88 100644 --- a/Event/EventManager.php +++ b/Event/EventManager.php @@ -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); diff --git a/Message/Http/Header.php b/Message/Http/Header.php index 76fcc9192..54d44150e 100644 --- a/Message/Http/Header.php +++ b/Message/Http/Header.php @@ -38,16 +38,6 @@ final class Header extends HeaderAbstract */ private array $header = []; - /** - * Constructor. - * - * @since 1.0.0 - */ - public function __construct() - { - parent::__construct(); - } - /** * Set header. * diff --git a/Module/NullModule.php b/Module/NullModule.php index 464851089..2903582cc 100644 --- a/Module/NullModule.php +++ b/Module/NullModule.php @@ -24,5 +24,10 @@ namespace phpOMS\Module; */ final class NullModule extends ModuleAbstract { + /** + * Constructor. + * + * @since 1.0.0 + */ public function __construct() {} } diff --git a/UnhandledHandler.php b/UnhandledHandler.php index cf30c5c3f..6d0af1c30 100644 --- a/UnhandledHandler.php +++ b/UnhandledHandler.php @@ -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 { diff --git a/Uri/UriFactory.php b/Uri/UriFactory.php index d94303d16..55afd8151 100644 --- a/Uri/UriFactory.php +++ b/Uri/UriFactory.php @@ -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; } } diff --git a/Utils/NumericUtils.php b/Utils/NumericUtils.php index 40f4ae6bf..ea7025813 100644 --- a/Utils/NumericUtils.php +++ b/Utils/NumericUtils.php @@ -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)); } }