original_string: protected function cleanArray(array $data, $keyPrefix = '')
      {
          return collect($data)->map(function ($value, $key) use ($keyPrefix) {
              return $this->cleanValue($keyPrefix.$key, $value);
          })->all();
      }
code: protected function cleanArray(array $data, $keyPrefix = '')
      {
          return collect($data)->map(function ($value, $key) use ($keyPrefix) {
              return $this->cleanValue($keyPrefix.$key, $value);
          })->all();
      }
code_tokens: protected function cleanArray ( array $ data , $ keyPrefix = '' ) { return collect ( $ data ) -> map ( function ( $ value , $ key ) use ( $ keyPrefix ) { return $ this -> cleanValue ( $ keyPrefix . $ key , $ value ) ; } ) -> all ( ) ; }
docstring: Clean the data in the given array.
  
  @param  array  $data
  @param  string  $keyPrefix
  @return array
docstring_tokens: Clean the data in the given array .