original_string: protected function initializeMoodle(InputInterface $input)
      {
          if (!$this->moodle) {
              $validate     = new Validate();
              $moodleDir    = realpath($validate->directory($input->getOption('moodle')));
              $this->moodle = new Moodle($moodleDir);
          }
      }
code: protected function initializeMoodle(InputInterface $input)
      {
          if (!$this->moodle) {
              $validate     = new Validate();
              $moodleDir    = realpath($validate->directory($input->getOption('moodle')));
              $this->moodle = new Moodle($moodleDir);
          }
      }
code_tokens: protected function initializeMoodle ( InputInterface $ input ) { if ( ! $ this -> moodle ) { $ validate = new Validate ( ) ; $ moodleDir = realpath ( $ validate -> directory ( $ input -> getOption ( 'moodle' ) ) ) ; $ this -> moodle = new Moodle ( $ moodleDir ) ; } }
docstring: Initialize the moodle property based on input if necessary.
  
  @param InputInterface $input
docstring_tokens: Initialize the moodle property based on input if necessary .