$this->xsltProcessor->importStylesheet($xslDoc);
}
- private function get_contents($uri) {
+ private static function get_contents($uri) {
# https://www.wjsams.com/c/docs/Wiki/Php-HowToSetUserAgentOnFileGetContents
$opts = array(
'http' => array(
}
public function tweep($uri) {
- $html = $this->get_contents($uri);
+ $html = Tweeper::get_contents($uri);
$xmlDoc = new DOMDocument();
$xmlDoc->loadHTML($html);