original_string: public function getResults()
      {
          $key = $this->dataKey;
          $content = $this->content;
  
          if (is_object($content) && property_exists($content, $key)) {
              return new Collection($content->{$key});
          } elseif (is_array($content)) {
              return new Collection($content);
          }
  
          return $content;
      }
code: public function getResults()
      {
          $key = $this->dataKey;
          $content = $this->content;
  
          if (is_object($content) && property_exists($content, $key)) {
              return new Collection($content->{$key});
          } elseif (is_array($content)) {
              return new Collection($content);
          }
  
          return $content;
      }
code_tokens: public function getResults ( ) { $ key = $ this -> dataKey ; $ content = $ this -> content ; if ( is_object ( $ content ) && property_exists ( $ content , $ key ) ) { return new Collection ( $ content -> { $ key } ) ; } elseif ( is_array ( $ content ) ) { return new Collection ( $ content ) ; } return $ content ; }
docstring: Return response content
  
  @return \Illuminate\Support\Collection
docstring_tokens: Return response content