Esempio n. 1
0
 /**
  * Sort methods best score first.
  */
 private function sortByMethodScore()
 {
     uasort($this->methods, function ($first, $second) {
         $aScore = $this->result->getMethodScore($first);
         $bScore = $this->result->getMethodScore($second);
         if ($aScore === $bScore) {
             return 0;
         }
         return $aScore < $bScore ? -1 : 1;
     });
 }