Skip to content

Commit

Permalink
fixed versioneye badge: don't show when no dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Sep 8, 2015
1 parent b2ab575 commit 64d022d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/goals/ReadmeGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ public function renderSection($section, $default = null)

public function renderBadges()
{
$c = $this->config->get('composer.json');
if (!$c->has('require') && !$c->has('require-dev')) {
unset($this->badges['versioneye.status']);
}
$res = '';
foreach ($this->badges as $badge) {
$res .= $this->renderBadge($badge) . "\n";
Expand Down

0 comments on commit 64d022d

Please sign in to comment.