original_string: public function parseData(array $data)
      {
          $newData = [];
  
          foreach ($data as $key => $value) {
              if (is_array($value)) {
                  $value = $this->parseData($value);
              }
  
              // If the data key contains a dot, we will replace it with another character
              // sequence so it doesn't interfere with dot processing when working with
              // array based validation rules and array_dot later in the validations.
              if (Str::contains($key, '.')) {
                  $newData[str_replace('.', '->', $key)] = $value;
              } else {
                  $newData[$key] = $value;
              }
          }
  
          return $newData;
      }
code: public function parseData(array $data)
      {
          $newData = [];
  
          foreach ($data as $key => $value) {
              if (is_array($value)) {
                  $value = $this->parseData($value);
              }
  
              // If the data key contains a dot, we will replace it with another character
              // sequence so it doesn't interfere with dot processing when working with
              // array based validation rules and array_dot later in the validations.
              if (Str::contains($key, '.')) {
                  $newData[str_replace('.', '->', $key)] = $value;
              } else {
                  $newData[$key] = $value;
              }
          }
  
          return $newData;
      }
code_tokens: public function parseData ( array $ data ) { $ newData = [ ] ; foreach ( $ data as $ key => $ value ) { if ( is_array ( $ value ) ) { $ value = $ this -> parseData ( $ value ) ; } // If the data key contains a dot, we will replace it with another character // sequence so it doesn't interfere with dot processing when working with // array based validation rules and array_dot later in the validations. if ( Str :: contains ( $ key , '.' ) ) { $ newData [ str_replace ( '.' , '->' , $ key ) ] = $ value ; } else { $ newData [ $ key ] = $ value ; } } return $ newData ; }
docstring: Parse the data array, converting dots to ->.
  
  @param  array  $data
  @return array
docstring_tokens: Parse the data array converting dots to - > .