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(strpos('\Modules\Controller', $controller) === 0) {
$split = explode('\\', $controller);
$this->controllers[$controller] = $this->app->moduleManager->get($split[2]);
} else {
$this->controllers[$controller] = new $controller($this->app);

View File

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

View File

@ -45,14 +45,14 @@ class Request extends RequestAbstract
/**
* Browser type.
*
* @var BrowserType
* @var string
* @since 1.0.0
*/
private $browser = BrowserType::CHROME;
/**
* OS type.
*
* @var OSType
* @var string
* @since 1.0.0
*/
private $os = OSType::LINUX;
@ -282,7 +282,7 @@ class Request extends RequestAbstract
if (!isset($this->browser)) {
$arr = BrowserType::getConstants();
$http_request_type = strtolower($_SERVER['HTTP_USER_AGENT']);
foreach ($arr as $key => $val) {
if (stripos($http_request_type, $val)) {
$this->browser = $val;

View File

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

View File

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