private function replace($key, $value)
  {
    if (is_array($value)) return $this->cleanData($value);

    return $this->transform($key, $value);
  }
private function replace($key, $value)
  {
    if (is_array($value)) return $this->cleanData($value);

    return $this->transform($key, $value);
  }
private function replace ( $ key , $ value ) { if ( is_array ( $ value ) ) return $ this -> cleanData ( $ value ) ; return $ this -> transform ( $ key , $ value ) ; }
Pass arrays back to the cleanData method and pass everything else to transform

@param mixed $key
@param mixed $value
@return void
Pass arrays back to the cleanData method and pass everything else to transform