diff --git a/pandora_console/include/rest-api/models/VisualConsole/Items/ModuleGraph.php b/pandora_console/include/rest-api/models/VisualConsole/Items/ModuleGraph.php index 631950c130..8c99584d3a 100644 --- a/pandora_console/include/rest-api/models/VisualConsole/Items/ModuleGraph.php +++ b/pandora_console/include/rest-api/models/VisualConsole/Items/ModuleGraph.php @@ -57,7 +57,7 @@ final class ModuleGraph extends Item * * @overrides Item->encode. */ - protected function encode(array $data): array + protected static function encode(array $data): array { $return = parent::encode($data); @@ -91,7 +91,7 @@ final class ModuleGraph extends Item * * @param array $data Unknown input data structure. * - * @return integer Valid identifier of an agent. + * @return mixed Valid identifier of an agent. */ private static function extractIdCustomGraph(array $data) { @@ -451,7 +451,7 @@ final class ModuleGraph extends Item * * @return array */ - public function getListCustomGraph():array + public static function getListCustomGraph():array { include_once 'include/functions_custom_graphs.php'; enterprise_include_once('include/functions_metaconsole.php'); @@ -487,7 +487,7 @@ final class ModuleGraph extends Item * * @return array Of inputs. * - * @throws Exception On error. + * @throws \Exception On error. */ public static function getFormInputs(array $values): array { @@ -498,7 +498,7 @@ final class ModuleGraph extends Item $inputs = Item::getFormInputs($values); if (is_array($inputs) !== true) { - throw new Exception( + throw new \Exception( '[ModuleGraph]::getFormInputs parent class return is not an array' ); }