/** * {@inheritdoc} */ public function updateScore(Bundle $bundle) { $bundle->addScoreDetail('composer', $bundle->getComposerName() ? 5 : 0); }
/** * {@inheritdoc} */ public function updateScore(Bundle $bundle) { $bundle->addScoreDetail('followers', $bundle->getNbFollowers()); }
/** * {@inheritdoc} */ public function updateScore(Bundle $bundle) { $bundle->addScoreDetail('recommenders', 5 * $bundle->getNbRecommenders()); }
/** * {@inheritdoc} */ public function updateScore(Bundle $bundle) { $bundle->addScoreDetail('readme', mb_strlen($bundle->getReadme()) > 300 ? 5 : 0); }
/** * {@inheritdoc} */ public function updateScore(Bundle $bundle) { $bundle->addScoreDetail('travisci', $bundle->getUsesTravisCi() ? 5 : 0); $bundle->addScoreDetail('travisbuild', $bundle->getTravisCiBuildStatus() ? 5 : 0); }
/** * {@inheritdoc} */ public function updateScore(Bundle $bundle) { $bundle->addScoreDetail('activity', $bundle->getDaysSinceLastCommit() < 30 ? (30 - $bundle->getDaysSinceLastCommit()) / 5 : 0); }