private function prioritiseJobs()
    {
        $background = [];
        $foreground = [];

        foreach ($this->jobs as $job) {
            if ($job->canRunInBackground()) {
                $background[] = $job;
            } else {
                $foreground[] = $job;
            }
        }

        return array_merge($background, $foreground);
    }
private function prioritiseJobs()
    {
        $background = [];
        $foreground = [];

        foreach ($this->jobs as $job) {
            if ($job->canRunInBackground()) {
                $background[] = $job;
            } else {
                $foreground[] = $job;
            }
        }

        return array_merge($background, $foreground);
    }
private function prioritiseJobs ( ) { $ background = [ ] ; $ foreground = [ ] ; foreach ( $ this -> jobs as $ job ) { if ( $ job -> canRunInBackground ( ) ) { $ background [ ] = $ job ; } else { $ foreground [ ] = $ job ; } } return array_merge ( $ background , $ foreground ) ; }
Prioritise jobs in background.

@return array
Prioritise jobs in background .