mirror of
https://github.com/Karaka-Management/oms-Exchange.git
synced 2026-02-16 17:58:41 +00:00
Use global namespace+minor fixes
This commit is contained in:
parent
5bee2262c3
commit
30ef848aa5
|
|
@ -89,7 +89,7 @@ final class GSDCostCenter implements \JsonSerializable
|
|||
/**
|
||||
* Get created by
|
||||
*
|
||||
* @return mixed
|
||||
* @return int|\phpOMS\Account\Account
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ final class GSDCostObject implements \JsonSerializable
|
|||
/**
|
||||
* Get created by
|
||||
*
|
||||
* @return mixed
|
||||
* @return int|\phpOMS\Account\Account
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ class InterfaceManager
|
|||
throw new PathException($this->path);
|
||||
}
|
||||
|
||||
$this->info = \json_decode(file_get_contents($this->path), true);
|
||||
$this->info = \json_decode(\file_get_contents($this->path), true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -184,8 +184,8 @@ class InterfaceManager
|
|||
*/
|
||||
public function set(string $path, $data, string $delim = '/') : void
|
||||
{
|
||||
if (!is_scalar($data) && !is_array($data) && !($data instanceof \JsonSerializable)) {
|
||||
throw new \InvalidArgumentException('Type of $data "' . gettype($data) . '" is not supported.');
|
||||
if (!\is_scalar($data) && !\is_array($data) && !($data instanceof \JsonSerializable)) {
|
||||
throw new \InvalidArgumentException('Type of $data "' . \gettype($data) . '" is not supported.');
|
||||
}
|
||||
|
||||
ArrayUtils::setArray($path, $this->info, $data, $delim, true);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user