From 8e89f0796138de582d3daa21a1c92e938e838745 Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Wed, 3 Apr 2019 10:27:22 +0200 Subject: [PATCH] Visual Console Refactor: changed some functions from instance to static Former-commit-id: 64fdb9086b5028570fea02de1bbe5e8c22e45c08 --- .../include/rest-api/models/VisualConsole/Item.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/rest-api/models/VisualConsole/Item.php b/pandora_console/include/rest-api/models/VisualConsole/Item.php index c0c478c947..03147e92da 100644 --- a/pandora_console/include/rest-api/models/VisualConsole/Item.php +++ b/pandora_console/include/rest-api/models/VisualConsole/Item.php @@ -357,7 +357,7 @@ class Item extends Model * 'agentName' => null, * ] */ - protected function extractLinkedAgent(array $data): array + protected static function extractLinkedAgent(array $data): array { $agentData = []; @@ -420,7 +420,7 @@ class Item extends Model * 'moduleName' => null, * ] */ - protected function extractLinkedModule(array $data): array + protected static function extractLinkedModule(array $data): array { // Initialize the data with the agent data and then expand it. $moduleData = static::extractLinkedAgent($data);