original_string: protected function addMoodleOption(Command $command)
      {
          $moodle = getenv('MOODLE_DIR') !== false ? getenv('MOODLE_DIR') : '.';
          $command->addOption('moodle', 'm', InputOption::VALUE_REQUIRED, 'Path to Moodle', $moodle);
  
          return $command;
      }
code: protected function addMoodleOption(Command $command)
      {
          $moodle = getenv('MOODLE_DIR') !== false ? getenv('MOODLE_DIR') : '.';
          $command->addOption('moodle', 'm', InputOption::VALUE_REQUIRED, 'Path to Moodle', $moodle);
  
          return $command;
      }
code_tokens: protected function addMoodleOption ( Command $ command ) { $ moodle = getenv ( 'MOODLE_DIR' ) !== false ? getenv ( 'MOODLE_DIR' ) : '.' ; $ command -> addOption ( 'moodle' , 'm' , InputOption :: VALUE_REQUIRED , 'Path to Moodle' , $ moodle ) ; return $ command ; }
docstring: Adds the 'moodle' option to a command.
  
  @param Command $command
  
  @return Command
docstring_tokens: Adds the moodle option to a command .