Visual Console Refactor: bugfix

Former-commit-id: 698a3aa603ffe93c70edf52517fc5def21da52ba
This commit is contained in:
Alejandro Gallardo Escobar 2019-04-23 11:41:50 +02:00
parent c461825a27
commit f124612ba1
1 changed files with 2 additions and 7 deletions

View File

@ -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']),