original_string: public static function get_behat_cli_config_filepath($runprocess = 0) {
          global $CFG;
  
          if ($runprocess) {
              if (isset($CFG->behat_parallel_run[$runprocess - 1 ]['behat_dataroot'])) {
                  $command = $CFG->behat_parallel_run[$runprocess - 1]['behat_dataroot'];
              } else {
                  $command = $CFG->behat_dataroot . $runprocess;
              }
          } else {
              $command = $CFG->behat_dataroot;
          }
          $command .= DIRECTORY_SEPARATOR . 'behat' . DIRECTORY_SEPARATOR . 'behat.yml';
  
          // Cygwin uses linux-style directory separators.
          if (testing_is_cygwin()) {
              $command = str_replace('\\', '/', $command);
          }
  
          return $command;
      }
code: public static function get_behat_cli_config_filepath($runprocess = 0) {
          global $CFG;
  
          if ($runprocess) {
              if (isset($CFG->behat_parallel_run[$runprocess - 1 ]['behat_dataroot'])) {
                  $command = $CFG->behat_parallel_run[$runprocess - 1]['behat_dataroot'];
              } else {
                  $command = $CFG->behat_dataroot . $runprocess;
              }
          } else {
              $command = $CFG->behat_dataroot;
          }
          $command .= DIRECTORY_SEPARATOR . 'behat' . DIRECTORY_SEPARATOR . 'behat.yml';
  
          // Cygwin uses linux-style directory separators.
          if (testing_is_cygwin()) {
              $command = str_replace('\\', '/', $command);
          }
  
          return $command;
      }
code_tokens: public static function get_behat_cli_config_filepath ( $ runprocess = 0 ) { global $ CFG ; if ( $ runprocess ) { if ( isset ( $ CFG -> behat_parallel_run [ $ runprocess - 1 ] [ 'behat_dataroot' ] ) ) { $ command = $ CFG -> behat_parallel_run [ $ runprocess - 1 ] [ 'behat_dataroot' ] ; } else { $ command = $ CFG -> behat_dataroot . $ runprocess ; } } else { $ command = $ CFG -> behat_dataroot ; } $ command .= DIRECTORY_SEPARATOR . 'behat' . DIRECTORY_SEPARATOR . 'behat.yml' ; // Cygwin uses linux-style directory separators. if ( testing_is_cygwin ( ) ) { $ command = str_replace ( '\\' , '/' , $ command ) ; } return $ command ; }
docstring: Returns the behat config file path used by the behat cli command.
  
  @param int $runprocess Runprocess.
  @return string
docstring_tokens: Returns the behat config file path used by the behat cli command .