protected function getGithubTags($repo)
    {
        $jsonTags = $this->retrieveContentFromUrl(
            'https://api.github.com/repos/' . $repo . '/tags'
        );

        return array_map(
            function ($tag) {
                return $tag['name'];
            },
            json_decode($jsonTags, true)
        );
    }
protected function getGithubTags($repo)
    {
        $jsonTags = $this->retrieveContentFromUrl(
            'https://api.github.com/repos/' . $repo . '/tags'
        );

        return array_map(
            function ($tag) {
                return $tag['name'];
            },
            json_decode($jsonTags, true)
        );
    }
protected function getGithubTags ( $ repo ) { $ jsonTags = $ this -> retrieveContentFromUrl ( 'https://api.github.com/repos/' . $ repo . '/tags' ) ; return array_map ( function ( $ tag ) { return $ tag [ 'name' ] ; } , json_decode ( $ jsonTags , true ) ) ; }
Returns an array of tags from a github repo.

@param  string $repo The repository name to check upon.
@return array
Returns an array of tags from a github repo .