private function filter(string $name, $value)
    {
        if (! isset($this->filters[$name])) {
            return $value;
        }

        return array_reduce(
            $this->filters[$name],
            function ($value, FilterInterface $filter) {
                return $filter->filter($value);
            },
            $value
        );
    }
private function filter(string $name, $value)
    {
        if (! isset($this->filters[$name])) {
            return $value;
        }

        return array_reduce(
            $this->filters[$name],
            function ($value, FilterInterface $filter) {
                return $filter->filter($value);
            },
            $value
        );
    }
private function filter ( string $ name , $ value ) { if ( ! isset ( $ this -> filters [ $ name ] ) ) { return $ value ; } return array_reduce ( $ this -> filters [ $ name ] , function ( $ value , FilterInterface $ filter ) { return $ filter -> filter ( $ value ) ; } , $ value ) ; }
Filter a value to a given name.

@param string $name
@param mixed $value

@return mixed $value
Filter a value to a given name .