Skip to content

Commit

Permalink
Merge pull request #21 from zlokomatic/patch-1
Browse files Browse the repository at this point in the history
Fix getClip
  • Loading branch information
nicklaw5 authored Dec 20, 2018
2 parents 9bfd2c8 + 060f9aa commit db405e0
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/Api/Clips.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,17 @@ trait Clips
/**
* Get a clip
*
* @param string $channel
* @param string $slug
* @throws InvalidTypeException
* @return array|json
*/
public function getClip($channel, $slug)
public function getClip($slug)
{
if (!is_string($channel)) {
throw new InvalidTypeException('Channel', 'string', gettype($channel));
}

if (!is_string($slug)) {
throw new InvalidTypeException('Slug', 'string', gettype($slug));
}

return $this->get(sprintf('clips/%s/%s', $channel, $slug));
return $this->get(sprintf('clips/%s', $slug));
}

/**
Expand Down

0 comments on commit db405e0

Please sign in to comment.