Skip to content

Commit

Permalink
Renaming internal variables
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Nov 3, 2013
1 parent 7fbcb2e commit f9ca4a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Tmdb/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ public function __construct(Token $token, ClientInterface $httpClient = null)
{
$httpClient = $httpClient ?: new GuzzleClient(self::TMDB_URI);

$plugin = new ApiTokenPlugin($token);
$httpClient->addSubscriber($plugin);
$apiQueryTokenPlugin = new ApiTokenPlugin($token);
$httpClient->addSubscriber($apiQueryTokenPlugin);

$plugin = new AcceptJsonHeader();
$httpClient->addSubscriber($plugin);
$acceptJsonHeaderPlugin = new AcceptJsonHeader();
$httpClient->addSubscriber($acceptJsonHeaderPlugin);

$this->httpClient = new HttpClient(self::TMDB_URI, array(), $httpClient);
$this->setToken($token);
Expand Down

0 comments on commit f9ca4a4

Please sign in to comment.