private function getProcessResults(int $numberOfParallelJobs)
    {
        for ($index = $this->runningProcesses->count();
             $this->filesCollection->hasFiles() > 0 && $index < $numberOfParallelJobs;
             $index++) {
            $file = $this->filesCollection->getNextFile();

            $process = $this->processFactory->createGitCommitProcess($file);
            $process->start();
            $this->runningProcesses->put($process->getKey(), $process);
            $process = $this->processFactory->createCyclomaticComplexityProcess($file);
            $process->start();
            $this->runningProcesses->put($process->getKey(), $process);
        }

        foreach ($this->runningProcesses as $file => $process) {
            if ($process->isSuccessful()) {
                $this->runningProcesses->forget($process->getKey());
                $this->completedProcessesArray[$process->getFileName()][$process->getType()] = $process;
            }
        }
    }
private function getProcessResults(int $numberOfParallelJobs)
    {
        for ($index = $this->runningProcesses->count();
             $this->filesCollection->hasFiles() > 0 && $index < $numberOfParallelJobs;
             $index++) {
            $file = $this->filesCollection->getNextFile();

            $process = $this->processFactory->createGitCommitProcess($file);
            $process->start();
            $this->runningProcesses->put($process->getKey(), $process);
            $process = $this->processFactory->createCyclomaticComplexityProcess($file);
            $process->start();
            $this->runningProcesses->put($process->getKey(), $process);
        }

        foreach ($this->runningProcesses as $file => $process) {
            if ($process->isSuccessful()) {
                $this->runningProcesses->forget($process->getKey());
                $this->completedProcessesArray[$process->getFileName()][$process->getType()] = $process;
            }
        }
    }
private function getProcessResults ( int $ numberOfParallelJobs ) { for ( $ index = $ this -> runningProcesses -> count ( ) ; $ this -> filesCollection -> hasFiles ( ) > 0 && $ index < $ numberOfParallelJobs ; $ index ++ ) { $ file = $ this -> filesCollection -> getNextFile ( ) ; $ process = $ this -> processFactory -> createGitCommitProcess ( $ file ) ; $ process -> start ( ) ; $ this -> runningProcesses -> put ( $ process -> getKey ( ) , $ process ) ; $ process = $ this -> processFactory -> createCyclomaticComplexityProcess ( $ file ) ; $ process -> start ( ) ; $ this -> runningProcesses -> put ( $ process -> getKey ( ) , $ process ) ; } foreach ( $ this -> runningProcesses as $ file => $ process ) { if ( $ process -> isSuccessful ( ) ) { $ this -> runningProcesses -> forget ( $ process -> getKey ( ) ) ; $ this -> completedProcessesArray [ $ process -> getFileName ( ) ] [ $ process -> getType ( ) ] = $ process ; } } }
Get the results of the processes.
@param integer $numberOfParallelJobs Number of parallel jobs to run.
@return void
Get the results of the processes .