public function fetchComposerKeywords(Bundle $bundle)
{
try {
$file = $this->github->api('repo')->contents()->show($bundle->getOwnerName(), $bundle->getName(), 'composer.json');
if ('base64' == $file['encoding']) {
$composer = json_decode(base64_decode($file['content']), true);
if (JSON_ERROR_NONE === json_last_error()) {
return isset($composer['keywords']) ? $composer['keywords'] : array();
}
}
} catch (RuntimeException $e) {
}
return array();
}