Reverse the conditional, so that the method body doesn't happen inside a conditional:
```php
if (!is_callable($filter) && !$filter instanceof FilterInterface) {
    /* throw new ... */
}

if ($condition === self::CONDITION_OR) {
    $this->orFilter[$name] = $filter;
    return $this;
}
if ($condition === self::CONDITION_AND) {
    $this->andFilter[$name] = $filter;
    return $this;
}
return $this;
```