addScoreDetail() 공개 메소드

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