original_string: public function init()
      {
          parent::init();
  
          //catch preflight request
          if ($this->request->httpMethod() === 'OPTIONS') {
              $answer = $this->answer(null, true);
              $answer->output();
              exit;
          }
      }
code: public function init()
      {
          parent::init();
  
          //catch preflight request
          if ($this->request->httpMethod() === 'OPTIONS') {
              $answer = $this->answer(null, true);
              $answer->output();
              exit;
          }
      }
code_tokens: public function init ( ) { parent :: init ( ) ; //catch preflight request if ( $ this -> request -> httpMethod ( ) === 'OPTIONS' ) { $ answer = $ this -> answer ( null , true ) ; $ answer -> output ( ) ; exit ; } }
docstring: Controller inititalisation
  Catches CORS preflight request marked with HTTPMethod 'OPTIONS'
docstring_tokens: Controller inititalisation Catches CORS preflight request marked with HTTPMethod OPTIONS