diff --git a/Interfaces/GSD/Model/GSDCostCenter.php b/Interfaces/GSD/Model/GSDCostCenter.php index fd24e2a..a2417c7 100644 --- a/Interfaces/GSD/Model/GSDCostCenter.php +++ b/Interfaces/GSD/Model/GSDCostCenter.php @@ -89,7 +89,7 @@ final class GSDCostCenter implements \JsonSerializable /** * Get created by * - * @return mixed + * @return int|\phpOMS\Account\Account * * @since 1.0.0 */ diff --git a/Interfaces/GSD/Model/GSDCostObject.php b/Interfaces/GSD/Model/GSDCostObject.php index b5d8beb..7aa2f78 100644 --- a/Interfaces/GSD/Model/GSDCostObject.php +++ b/Interfaces/GSD/Model/GSDCostObject.php @@ -89,7 +89,7 @@ final class GSDCostObject implements \JsonSerializable /** * Get created by * - * @return mixed + * @return int|\phpOMS\Account\Account * * @since 1.0.0 */ diff --git a/Models/InterfaceManager.php b/Models/InterfaceManager.php index 87e2af7..b8cf094 100644 --- a/Models/InterfaceManager.php +++ b/Models/InterfaceManager.php @@ -32,7 +32,7 @@ class InterfaceManager /** * Interface ID. * - * @var int + * @var int * @since 1.0.0 */ private $id = 0; @@ -40,7 +40,7 @@ class InterfaceManager /** * File path. * - * @var string + * @var string * @since 1.0.0 */ private $path = ''; @@ -48,7 +48,7 @@ class InterfaceManager /** * Info data. * - * @var array + * @var array * @since 1.0.0 */ private $info = []; @@ -56,7 +56,7 @@ class InterfaceManager /** * Object constructor. * - * @param string $path Info file path + * @param string $path Info file path * * @since 1.0.0 */ @@ -68,7 +68,7 @@ class InterfaceManager /** * Get id * - * @return string + * @return string * * @since 1.0.0 */ @@ -80,7 +80,7 @@ class InterfaceManager /** * Get info path * - * @return string + * @return string * * @since 1.0.0 */ @@ -92,7 +92,7 @@ class InterfaceManager /** * Get info path * - * @return string + * @return string * * @since 1.0.0 */ @@ -104,7 +104,7 @@ class InterfaceManager /** * Get info name * - * @return string + * @return string * * @since 1.0.0 */ @@ -116,7 +116,7 @@ class InterfaceManager /** * Provides import interface * - * @return string + * @return string * * @since 1.0.0 */ @@ -128,7 +128,7 @@ class InterfaceManager /** * Provides export interface * - * @return string + * @return string * * @since 1.0.0 */ @@ -140,9 +140,9 @@ class InterfaceManager /** * Load info data from path. * - * @return void + * @return void * - * @throws PathException This exception is thrown in case the info file path doesn't exist. + * @throws PathException This exception is thrown in case the info file path doesn't exist. * * @since 1.0.0 */ @@ -152,13 +152,13 @@ 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); } /** * Update info file * - * @return void + * @return void * * @since 1.0.0 */ @@ -174,18 +174,18 @@ class InterfaceManager /** * Set data * - * @param string $path Value path - * @param mixed $data Scalar or array of data to set - * @param string $delim Delimiter of path + * @param string $path Value path + * @param mixed $data Scalar or array of data to set + * @param string $delim Delimiter of path * - * @return void + * @return void * * @since 1.0.0 */ 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); @@ -194,7 +194,7 @@ class InterfaceManager /** * Get info data. * - * @return array + * @return array * * @since 1.0.0 */