original_string: private function convertObjectToArray($data)
      {
          $converted = [];
          foreach($data as $key => $value) {
              if(is_object($value)) {
                  $converted[$key] = $this->convertObjectToArray($value);
              } else {
                  $converted[$key] = $value;
              }
          }
  
          return $converted;
      }
code: private function convertObjectToArray($data)
      {
          $converted = [];
          foreach($data as $key => $value) {
              if(is_object($value)) {
                  $converted[$key] = $this->convertObjectToArray($value);
              } else {
                  $converted[$key] = $value;
              }
          }
  
          return $converted;
      }
code_tokens: private function convertObjectToArray ( $ data ) { $ converted = [ ] ; foreach ( $ data as $ key => $ value ) { if ( is_object ( $ value ) ) { $ converted [ $ key ] = $ this -> convertObjectToArray ( $ value ) ; } else { $ converted [ $ key ] = $ value ; } } return $ converted ; }
docstring: Recursively convert the provided object to an array
  
  @param mixed $data
  
  @return array
docstring_tokens: Recursively convert the provided object to an array