49 return $required ?
'msg_input_is_required' : [];
53 $points = $this->
refinery->to()->listOf($this->
refinery->kindlyTo()->float())->transform(
$data[$key]);
55 return 'form_msg_numeric_value_required';
58 if (count($points) === 0) {
59 return $required ?
'msg_input_is_required' : [];
74 if (!is_array($points)) {
78 return max($points) <= 0 ?
'enter_enough_positive_points' : $points;
88 $this->
refinery->kindlyTo()->listOf($transformation),
89 $this->refinery->always([])
90 ])->transform(
$data[$key]);
103 fn($v): ?
float => $this->
refinery->byTrying([$this->refinery->kindlyTo()->float(), $this->refinery->always(
null)])->transform($v),
113 return is_array($array)
114 && array_key_exists($key, $array)
115 && $array[$key] !==
null
116 && $array[$key] !==
false
117 && $array[$key] !==
''
118 && $array[$key] !== []
119 && $array[$key] !== 0
120 && $array[$key] !== 0.0;
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...