src/Sanitizer.php
public function sanitize(array $data, array $rules = [], array $filters = [])
    {
        $this->setRules($rules);
        $this->setFilters($filters);

        foreach ($data as $name => $value) {
            $data[$name] = $this->sanitizeAttribute($name, $value);
        }

        return $data;
    }
public function sanitize(array $data, array $rules = [], array $filters = [])
    {
        $this->setRules($rules);
        $this->setFilters($filters);

        foreach ($data as $name => $value) {
            $data[$name] = $this->sanitizeAttribute($name, $value);
        }

        return $data;
    }
public function sanitize ( array $ data , array $ rules = [ ] , array $ filters = [ ] ) { $ this -> setRules ( $ rules ) ; $ this -> setFilters ( $ filters ) ; foreach ( $ data as $ name => $ value ) { $ data [ $ name ] = $ this -> sanitizeAttribute ( $ name , $ value ) ; } return $ data ; }
Sanitize the given data.

@param  array  $data
@param  array  $rules
@param  array  $filters

@return array
Sanitize the given data .