Visual Console Refactor: bugfix
Former-commit-id: 698a3aa603ffe93c70edf52517fc5def21da52ba
This commit is contained in:
parent
c461825a27
commit
f124612ba1
|
@ -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']),
|
||||
|
|
Loading…
Reference in New Issue