Use global namespace+minor fixes

This commit is contained in:
Dennis Eichhorn 2019-02-04 22:29:55 +01:00
parent 5bee2262c3
commit 30ef848aa5
3 changed files with 23 additions and 23 deletions

View File

@ -89,7 +89,7 @@ final class GSDCostCenter implements \JsonSerializable
/**
* Get created by
*
* @return mixed
* @return int|\phpOMS\Account\Account
*
* @since 1.0.0
*/

View File

@ -89,7 +89,7 @@ final class GSDCostObject implements \JsonSerializable
/**
* Get created by
*
* @return mixed
* @return int|\phpOMS\Account\Account
*
* @since 1.0.0
*/

View File

@ -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);