mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
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.
|
* @param array $data Unknown input data structure.
|
||||||
*
|
*
|
||||||
* @return mixed String representing the image url (not empty) or null.
|
* @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(
|
return static::notEmptyStringOr(
|
||||||
static::issetInArray($data, ['imageSrc', 'image']),
|
static::issetInArray($data, ['imageSrc', 'image']),
|
||||||
@ -100,11 +98,8 @@ final class Group extends Item
|
|||||||
*
|
*
|
||||||
* @return mixed String representing the status image url (not empty)
|
* @return mixed String representing the status image url (not empty)
|
||||||
* or null.
|
* 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(
|
return static::notEmptyStringOr(
|
||||||
static::issetInArray($data, ['statusImageSrc']),
|
static::issetInArray($data, ['statusImageSrc']),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user