original_string: public function getCharacter($characterId, $fields = ['*'])
      {
          //dd(config('services.igdb.url'));
          $apiUrl = $this->getEndpoint('characters');
          $apiUrl .= $characterId;
  
          $params = array(
              'fields' => implode(',', $fields)
          );
  
          $apiData = $this->apiGet($apiUrl, $params);
  
          return $this->decodeSingle($apiData);
      }
code: public function getCharacter($characterId, $fields = ['*'])
      {
          //dd(config('services.igdb.url'));
          $apiUrl = $this->getEndpoint('characters');
          $apiUrl .= $characterId;
  
          $params = array(
              'fields' => implode(',', $fields)
          );
  
          $apiData = $this->apiGet($apiUrl, $params);
  
          return $this->decodeSingle($apiData);
      }
code_tokens: public function getCharacter ( $ characterId , $ fields = [ '*' ] ) { //dd(config('services.igdb.url')); $ apiUrl = $ this -> getEndpoint ( 'characters' ) ; $ apiUrl .= $ characterId ; $ params = array ( 'fields' => implode ( ',' , $ fields ) ) ; $ apiData = $ this -> apiGet ( $ apiUrl , $ params ) ; return $ this -> decodeSingle ( $ apiData ) ; }
docstring: Get character information
  
  @param integer $characterId
  @param array $fields
  @return \StdClass
  @throws \Exception
docstring_tokens: Get character information