mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-09 05:38:39 +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 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);
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
@ -282,7 +282,7 @@ class Request extends RequestAbstract
|
||||||
if (!isset($this->browser)) {
|
if (!isset($this->browser)) {
|
||||||
$arr = BrowserType::getConstants();
|
$arr = BrowserType::getConstants();
|
||||||
$http_request_type = strtolower($_SERVER['HTTP_USER_AGENT']);
|
$http_request_type = strtolower($_SERVER['HTTP_USER_AGENT']);
|
||||||
|
|
||||||
foreach ($arr as $key => $val) {
|
foreach ($arr as $key => $val) {
|
||||||
if (stripos($http_request_type, $val)) {
|
if (stripos($http_request_type, $val)) {
|
||||||
$this->browser = $val;
|
$this->browser = $val;
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
|
|
|
||||||
|
|
@ -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)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user