Skip to content

Commit db405e0

Browse files
authored
Merge pull request #21 from zlokomatic/patch-1
Fix getClip
2 parents 9bfd2c8 + 060f9aa commit db405e0

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/Api/Clips.php

+2-7
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,17 @@ trait Clips
1111
/**
1212
* Get a clip
1313
*
14-
* @param string $channel
1514
* @param string $slug
1615
* @throws InvalidTypeException
1716
* @return array|json
1817
*/
19-
public function getClip($channel, $slug)
18+
public function getClip($slug)
2019
{
21-
if (!is_string($channel)) {
22-
throw new InvalidTypeException('Channel', 'string', gettype($channel));
23-
}
24-
2520
if (!is_string($slug)) {
2621
throw new InvalidTypeException('Slug', 'string', gettype($slug));
2722
}
2823

29-
return $this->get(sprintf('clips/%s/%s', $channel, $slug));
24+
return $this->get(sprintf('clips/%s', $slug));
3025
}
3126

3227
/**

0 commit comments

Comments
 (0)