original_string: private function formatEpisode($original)
    {
      $show = new \stdClass();
  
      $show->id          = (int) $original->episodeid;
      $show->tvdbId      = (int) $original->tvdbid;
      $show->title       = (string) $original->title;
      $show->showlink    = (string) $original->showlink;
      $show->episodelink = (string) $original->episodelink;
      $show->airDate     = strlen($original->airdate)
        ? Carbon::createFromFormat("d-m-Y", (string) $original->airdate)
        : null;
      $show->season      = (int) $original->season;
      $show->episode     = (int) $original->episode;
      $show->epNumber    = (int) $original->epnumber;
      $show->score       = (float) str_replace(',', '.', $original->score);
      $show->votes       = (int) $original->votes;
      $show->formatted   = (string) $original->formatted;
      $show->is_special  = ((string) $original->is_special) === "true";
      $show->summary     = (string) $original->summary;
      $show->updated     = Carbon::createFromTimestamp((int) $original->updated);
  
      return $show;
    }
code: private function formatEpisode($original)
    {
      $show = new \stdClass();
  
      $show->id          = (int) $original->episodeid;
      $show->tvdbId      = (int) $original->tvdbid;
      $show->title       = (string) $original->title;
      $show->showlink    = (string) $original->showlink;
      $show->episodelink = (string) $original->episodelink;
      $show->airDate     = strlen($original->airdate)
        ? Carbon::createFromFormat("d-m-Y", (string) $original->airdate)
        : null;
      $show->season      = (int) $original->season;
      $show->episode     = (int) $original->episode;
      $show->epNumber    = (int) $original->epnumber;
      $show->score       = (float) str_replace(',', '.', $original->score);
      $show->votes       = (int) $original->votes;
      $show->formatted   = (string) $original->formatted;
      $show->is_special  = ((string) $original->is_special) === "true";
      $show->summary     = (string) $original->summary;
      $show->updated     = Carbon::createFromTimestamp((int) $original->updated);
  
      return $show;
    }
code_tokens: private function formatEpisode ( $ original ) { $ show = new \ stdClass ( ) ; $ show -> id = ( int ) $ original -> episodeid ; $ show -> tvdbId = ( int ) $ original -> tvdbid ; $ show -> title = ( string ) $ original -> title ; $ show -> showlink = ( string ) $ original -> showlink ; $ show -> episodelink = ( string ) $ original -> episodelink ; $ show -> airDate = strlen ( $ original -> airdate ) ? Carbon :: createFromFormat ( "d-m-Y" , ( string ) $ original -> airdate ) : null ; $ show -> season = ( int ) $ original -> season ; $ show -> episode = ( int ) $ original -> episode ; $ show -> epNumber = ( int ) $ original -> epnumber ; $ show -> score = ( float ) str_replace ( ',' , '.' , $ original -> score ) ; $ show -> votes = ( int ) $ original -> votes ; $ show -> formatted = ( string ) $ original -> formatted ; $ show -> is_special = ( ( string ) $ original -> is_special ) === "true" ; $ show -> summary = ( string ) $ original -> summary ; $ show -> updated = Carbon :: createFromTimestamp ( ( int ) $ original -> updated ) ; return $ show ; }
docstring: Format an Episode response
  
  @param $original
  
  @return \stdClass
docstring_tokens: Format an Episode response