From f124612ba1cf292b3dd5f180b631f395f8b5c3a1 Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Tue, 23 Apr 2019 11:41:50 +0200 Subject: [PATCH] Visual Console Refactor: bugfix Former-commit-id: 698a3aa603ffe93c70edf52517fc5def21da52ba --- .../rest-api/models/VisualConsole/Items/Group.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pandora_console/include/rest-api/models/VisualConsole/Items/Group.php b/pandora_console/include/rest-api/models/VisualConsole/Items/Group.php index d433636e11..90564d8aaa 100644 --- a/pandora_console/include/rest-api/models/VisualConsole/Items/Group.php +++ b/pandora_console/include/rest-api/models/VisualConsole/Items/Group.php @@ -81,10 +81,8 @@ final class Group extends Item * @param array $data Unknown input data structure. * * @return mixed String representing the image url (not empty) or null. - * - * @throws \InvalidArgumentException When a valid image src can't be found. */ - private static function extractImageSrc(array $data): string + private static function extractImageSrc(array $data) { return static::notEmptyStringOr( static::issetInArray($data, ['imageSrc', 'image']), @@ -100,11 +98,8 @@ final class Group extends Item * * @return mixed String representing the status image url (not empty) * or null. - * - * @throws \InvalidArgumentException When a valid status image src - * can't be found. */ - private static function extractStatusImageSrc(array $data): string + private static function extractStatusImageSrc(array $data) { return static::notEmptyStringOr( static::issetInArray($data, ['statusImageSrc']),