original_string: protected function get_options() {
          global $CFG;
  
          require_once("$CFG->libdir/filelib.php");
          require_once("$CFG->dirroot/repository/lib.php");
          $defaults = array(
              'mainfile' => '', 'subdirs' => 0, 'maxbytes' => -1, 'maxfiles' => 1,
              'accepted_types' => '*', 'return_types' => FILE_INTERNAL, 'areamaxbytes' => FILE_AREA_MAX_BYTES_UNLIMITED,
              'context' => context_system::instance());
          foreach($this->options as $k => $v) {
              $defaults[$k] = $v;
          }
  
          return $defaults;
      }
code: protected function get_options() {
          global $CFG;
  
          require_once("$CFG->libdir/filelib.php");
          require_once("$CFG->dirroot/repository/lib.php");
          $defaults = array(
              'mainfile' => '', 'subdirs' => 0, 'maxbytes' => -1, 'maxfiles' => 1,
              'accepted_types' => '*', 'return_types' => FILE_INTERNAL, 'areamaxbytes' => FILE_AREA_MAX_BYTES_UNLIMITED,
              'context' => context_system::instance());
          foreach($this->options as $k => $v) {
              $defaults[$k] = $v;
          }
  
          return $defaults;
      }
code_tokens: protected function get_options ( ) { global $ CFG ; require_once ( "$CFG->libdir/filelib.php" ) ; require_once ( "$CFG->dirroot/repository/lib.php" ) ; $ defaults = array ( 'mainfile' => '' , 'subdirs' => 0 , 'maxbytes' => - 1 , 'maxfiles' => 1 , 'accepted_types' => '*' , 'return_types' => FILE_INTERNAL , 'areamaxbytes' => FILE_AREA_MAX_BYTES_UNLIMITED , 'context' => context_system :: instance ( ) ) ; foreach ( $ this -> options as $ k => $ v ) { $ defaults [ $ k ] = $ v ; } return $ defaults ; }
docstring: Applies defaults and returns all options.
  @return array
docstring_tokens: Applies defaults and returns all options .