public function sanitizeConditionalValues(&$values, $fields, $index)
    {
        foreach ($fields as $key => $field) {
            if ($values === $index) {
                $this->sanitizeValues($values[$index][$field->getSlug()], $field);
            }
        }
    }
public function sanitizeConditionalValues(&$values, $fields, $index)
    {
        foreach ($fields as $key => $field) {
            if ($values === $index) {
                $this->sanitizeValues($values[$index][$field->getSlug()], $field);
            }
        }
    }
public function sanitizeConditionalValues ( & $ values , $ fields , $ index ) { foreach ( $ fields as $ key => $ field ) { if ( $ values === $ index ) { $ this -> sanitizeValues ( $ values [ $ index ] [ $ field -> getSlug ( ) ] , $ field ) ; } } }
Sanitize values in associative array.

@param  mixed &$values
@param  array $fields
Sanitize values in associative array .