public function getRemoteRepository() { if (!$this->client) { $this->client = new TwitterClient(); } if (!$this->client->isConnected()) { $config = array('username' => $this->Username, 'password' => $this->Password); try { $this->client->connect($config); } catch (Exception $zue) { error_log("Failed connecting to repository: " . $zue->getMessage() . "\n"); } } return $this->client; }