Permalink
Browse files

Update reference to internal method

  • Loading branch information...
jabranr committed Jun 18, 2015
1 parent fc0d8df commit baaf5067faa928b366ce3c15f05164e3c8325aea
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/Fetchwitter.php
View
@@ -8,7 +8,7 @@
* search, or fetch a user timeline feed.
*
* @author: Jabran Rafique <hello@jabran.me>
* @version: 1.0.8
* @version: 1.0.9
* @license: MIT License
*
* License: MIT License
@@ -298,8 +298,9 @@ public function getOAuthEndpoint() {
* @return string
*/
public function getApiEndpoint() {
if ( ! empty($this->getEndpoint()) ) {
return sprintf("%s/%s/%s", self::API_URI, self::API_VERSION, $this->getEndpoint());
$endpoint = $this->getEndpoint();
if ( ! empty($endpoint) ) {
return sprintf("%s/%s/%s", self::API_URI, self::API_VERSION, $endpoint);
}
return sprintf("%s/%s", self::API_URI, self::API_VERSION);
}
@@ -566,4 +567,4 @@ private function _formatHashtags( $text ) {
}
return $text;
}
}
}

0 comments on commit baaf506

Please sign in to comment.