mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
Minor inspection bug fixes
This commit is contained in:
parent
c3686e3db0
commit
94ff6b57e1
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ class Money implements \Serializable
|
|||
/**
|
||||
* Currency symbol position
|
||||
*
|
||||
* @var string
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $position = 1;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user