Skip to content

Commit

Permalink
Merge branch 'master' of github.com:core23/lastfm-php-api
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Jan 5, 2017
2 parents 17225e4 + 25e3a42 commit e39666a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Crawler/EventListCrawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function getUserYears($username)

$years = $node->filter('.content-top .secondary-nav-item-link')->each(function (Crawler $node, $i) {
if ($i > 0) {
return (int)trim($node->text());
return (int) trim($node->text());
}
});

Expand Down Expand Up @@ -57,7 +57,7 @@ public function getEvents($username, $year, $page = 1)
return array(
'title' => $this->parseString($eventNode),
'time' => new \DateTime($node->filter('time')->attr('datetime')),
'eventId' => (int)$id,
'eventId' => (int) $id,
);
});
}
Expand Down

0 comments on commit e39666a

Please sign in to comment.