Skip to content

Commit 29b566c

Browse files
authored
Merge pull request #18 from ecfy/master
Fix for Clips::getTopClips
2 parents 4099709 + 3d9ec95 commit 29b566c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Api/Clips.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function getTopClips($channel = null, $cursor = null, $game = null, $limi
4949
$validPeriods = ['day', 'week', 'month', 'all'];
5050

5151
if ($channel) {
52-
if (!is_string($channel)) {
52+
if (!is_string($channel)) {
5353
throw new InvalidTypeException('channel', 'string', gettype($channel));
5454
}
5555

@@ -64,13 +64,13 @@ public function getTopClips($channel = null, $cursor = null, $game = null, $limi
6464
}
6565

6666
if ($game) {
67-
if (!is_string($game)) {
67+
if (!is_string($game)) {
6868
throw new InvalidTypeException('game', 'string', gettype($game));
6969
}
7070

7171
$game = trim($game, ', ');
72-
if ($count = count(explode(',', $game) > 10)) {
73-
throw new TwitchApiException(sprintf('Only a maximum of 10 gamess can be queried. %d requested.', $count));
72+
if ($count = count(explode(',', $game)) > 10) {
73+
throw new TwitchApiException(sprintf('Only a maximum of 10 games can be queried. %d requested.', $count));
7474
}
7575
}
7676

0 commit comments

Comments
 (0)