src/components/yandex/calls/requests/nlu/values/ValueNumber.php
Method is
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function is($condition, $compareTo = null): bool
{
$cons = [
static::CON__EQUAL => function ($cur, $compareTo) {
return $cur == $compareTo;
Avoid too many return
statements within this method. Open
Open
return empty($cur);
Avoid too many return
statements within this method. Open
Open
return strpos($cur, $compareTo) !== false;
Avoid too many return
statements within this method. Open
Open
return isset($cons[$condition])
? $cons[$condition]($this->getValue(), $compareTo)
: false;
Avoid too many return
statements within this method. Open
Open
return $cur <= $compareTo;
Avoid too many return
statements within this method. Open
Open
return $cur >= $compareTo;