public function process(Collection $completedProcesses, float $minScore, int $filesToShow): ResultCollection
    {
        $resultCollection = $this->parser->parse($completedProcesses);
        $resultCollection = $resultCollection->whereScoreAbove($minScore);
        $resultCollection = $resultCollection->orderByScoreDesc();
        return $resultCollection->take($filesToShow);
    }
public function process(Collection $completedProcesses, float $minScore, int $filesToShow): ResultCollection
    {
        $resultCollection = $this->parser->parse($completedProcesses);
        $resultCollection = $resultCollection->whereScoreAbove($minScore);
        $resultCollection = $resultCollection->orderByScoreDesc();
        return $resultCollection->take($filesToShow);
    }
public function process ( Collection $ completedProcesses , float $ minScore , int $ filesToShow ) : ResultCollection { $ resultCollection = $ this -> parser -> parse ( $ completedProcesses ) ; $ resultCollection = $ resultCollection -> whereScoreAbove ( $ minScore ) ; $ resultCollection = $ resultCollection -> orderByScoreDesc ( ) ; return $ resultCollection -> take ( $ filesToShow ) ; }
Processes the results into a ResultCollection.
@param Collection $completedProcesses Collection of completed processes.
@param float      $minScore           Minimum score to show.
@param integer    $filesToShow        Max number of files to show.
@return ResultCollection
Processes the results into a ResultCollection .