Skip to content
This repository has been archived by the owner on Apr 22, 2022. It is now read-only.

Commit

Permalink
Fix coding styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Antho committed Aug 3, 2018
1 parent 892c761 commit 0e8b9da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Api/Analytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function get($videoId, $period = null)
*/
public function search(array $parameters = array())
{
$params = $parameters;
$params = $parameters;
$currentPage = isset($parameters['currentPage']) ? $parameters['currentPage'] : 1;
$params['pageSize'] = isset($parameters['pageSize']) ? $parameters['pageSize'] : 100;
$allAnalytics = array();
Expand All @@ -53,8 +53,8 @@ public function search(array $parameters = array())
return null;
}

$json = json_decode($response->getContent(), true);
$analytics = $json['data'];
$json = json_decode($response->getContent(), true);
$analytics = $json['data'];
$allAnalytics[] = $this->castAll($analytics);

if (isset($parameters['currentPage'])) {
Expand Down

0 comments on commit 0e8b9da

Please sign in to comment.