private function cleanData(array $data) : array
  {
    foreach($data as $key => $value) {
      $data[$key] = $this->replace($key, $value);
    }

    return $data;
  }
private function cleanData(array $data) : array
  {
    foreach($data as $key => $value) {
      $data[$key] = $this->replace($key, $value);
    }

    return $data;
  }
private function cleanData ( array $ data ) : array { foreach ( $ data as $ key => $ value ) { $ data [ $ key ] = $ this -> replace ( $ key , $ value ) ; } return $ data ; }
Loop through the values and pass them to the replace method

@param array $data
@return array
Loop through the values and pass them to the replace method