Minor inspection bug fixes

This commit is contained in:
Dennis Eichhorn 2017-08-12 20:48:13 +02:00
parent c3686e3db0
commit 94ff6b57e1
5 changed files with 7 additions and 6 deletions

View File

@ -178,6 +178,7 @@ class Dispatcher
// If module controller use module manager for initialization // If module controller use module manager for initialization
if(strpos('\Modules\Controller', $controller) === 0) { if(strpos('\Modules\Controller', $controller) === 0) {
$split = explode('\\', $controller);
$this->controllers[$controller] = $this->app->moduleManager->get($split[2]); $this->controllers[$controller] = $this->app->moduleManager->get($split[2]);
} else { } else {
$this->controllers[$controller] = new $controller($this->app); $this->controllers[$controller] = new $controller($this->app);

View File

@ -54,7 +54,7 @@ class Money implements \Serializable
/** /**
* Currency symbol position * Currency symbol position
* *
* @var string * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $position = 1; private $position = 1;

View File

@ -45,14 +45,14 @@ class Request extends RequestAbstract
/** /**
* Browser type. * Browser type.
* *
* @var BrowserType * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private $browser = BrowserType::CHROME; private $browser = BrowserType::CHROME;
/** /**
* OS type. * OS type.
* *
* @var OSType * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private $os = OSType::LINUX; private $os = OSType::LINUX;

View File

@ -110,7 +110,7 @@ abstract class RequestAbstract implements MessageInterface
* @var \phpOMS\Message\RequestSource * @var \phpOMS\Message\RequestSource
* @since 1.0.0 * @since 1.0.0
*/ */
private $source = RequestSource::UNDEFINED; protected $source = RequestSource::UNDEFINED;
/** /**
* Request hash. * Request hash.

View File

@ -294,7 +294,7 @@ class ArrayUtils
// see collection collapse as alternative?! // see collection collapse as alternative?!
$flat = []; $flat = [];
$stack = array_values($array); $stack = array_values($array);
while ($stack) { while (!empty($stack)) {
$value = array_shift($stack); $value = array_shift($stack);
if (is_array($value)) { if (is_array($value)) {