public static function checkForEmptyValue(string $valueName, $value): string
    {
        $value = trim($value);

        if ($value === '') {
            throw new EmptyValueNotAllowedException($valueName);
        }

        return $value;
    }
public static function checkForEmptyValue(string $valueName, $value): string
    {
        $value = trim($value);

        if ($value === '') {
            throw new EmptyValueNotAllowedException($valueName);
        }

        return $value;
    }
public static function checkForEmptyValue ( string $ valueName , $ value ) : string { $ value = trim ( $ value ) ; if ( $ value === '' ) { throw new EmptyValueNotAllowedException ( $ valueName ) ; } return $ value ; }
Checks if the provided value is empty.

@param string $valueName Name of the value, for better error reporting.
@param string|int|float $value The value to check. Regardless of type, it is coerced into a string.
@return string Returns the value if not empty.
Checks if the provided value is empty .