original_string: public function getTitle()
      {
          if ($this->getService() == 'YouTube') {
              $data = $this->getCachedJsonResponse(
                  'https://www.youtube.com/oembed?url=http://www.youtube.com/watch?v=' .
                  $this->VideoID .
                  '&format=json'
              );
              if ($data && !empty($data['title'])) {
                  return $data['title'];
              }
          }
          if ($this->getService() == 'Vimeo') {
              $data = $this->getCachedJsonResponse(
                  'https://vimeo.com/api/v2/video/' . $this->VideoID . '.json'
              );
              if ($data && !empty($data[0]) && !empty($data[0]['title'])) {
                  return $data[0]['title'];
              }
          }
      }
code: public function getTitle()
      {
          if ($this->getService() == 'YouTube') {
              $data = $this->getCachedJsonResponse(
                  'https://www.youtube.com/oembed?url=http://www.youtube.com/watch?v=' .
                  $this->VideoID .
                  '&format=json'
              );
              if ($data && !empty($data['title'])) {
                  return $data['title'];
              }
          }
          if ($this->getService() == 'Vimeo') {
              $data = $this->getCachedJsonResponse(
                  'https://vimeo.com/api/v2/video/' . $this->VideoID . '.json'
              );
              if ($data && !empty($data[0]) && !empty($data[0]['title'])) {
                  return $data[0]['title'];
              }
          }
      }
code_tokens: public function getTitle ( ) { if ( $ this -> getService ( ) == 'YouTube' ) { $ data = $ this -> getCachedJsonResponse ( 'https://www.youtube.com/oembed?url=http://www.youtube.com/watch?v=' . $ this -> VideoID . '&format=json' ) ; if ( $ data && ! empty ( $ data [ 'title' ] ) ) { return $ data [ 'title' ] ; } } if ( $ this -> getService ( ) == 'Vimeo' ) { $ data = $ this -> getCachedJsonResponse ( 'https://vimeo.com/api/v2/video/' . $ this -> VideoID . '.json' ) ; if ( $ data && ! empty ( $ data [ 0 ] ) && ! empty ( $ data [ 0 ] [ 'title' ] ) ) { return $ data [ 0 ] [ 'title' ] ; } } }
docstring: Scrape Video information from hosting sites
  @param  Null
  @return String
docstring_tokens: Scrape Video information from hosting sites