public function get_current_run() {
        global $CFG;

        // Get number of parallel runs if not passed.
        if (empty($this->currentrun) && ($this->currentrun !== false) && !empty($CFG->behatrunprocess)) {
            $this->currentrun = $CFG->behatrunprocess;
        }

        return $this->currentrun;
    }
public function get_current_run() {
        global $CFG;

        // Get number of parallel runs if not passed.
        if (empty($this->currentrun) && ($this->currentrun !== false) && !empty($CFG->behatrunprocess)) {
            $this->currentrun = $CFG->behatrunprocess;
        }

        return $this->currentrun;
    }
public function get_current_run ( ) { global $ CFG ; // Get number of parallel runs if not passed. if ( empty ( $ this -> currentrun ) && ( $ this -> currentrun !== false ) && ! empty ( $ CFG -> behatrunprocess ) ) { $ this -> currentrun = $ CFG -> behatrunprocess ; } return $ this -> currentrun ; }
Return current run

@return int current run.
Return current run