original_string: protected function before_user_func()
      {
          if ($this->config['error_reporting'] !== false) {
              set_error_handler(sprintf('%s::error_handler', __CLASS__), $this->config['error_reporting']);
          }
  
          if (empty($_POST['phery']['csrf'])) {
              $_POST['phery']['csrf'] = '';
          }
  
          if ($this->csrf($_POST['phery']['csrf']) === false) {
              self::exception($this, 'Invalid CSRF token', self::ERROR_CSRF);
          }
      }
code: protected function before_user_func()
      {
          if ($this->config['error_reporting'] !== false) {
              set_error_handler(sprintf('%s::error_handler', __CLASS__), $this->config['error_reporting']);
          }
  
          if (empty($_POST['phery']['csrf'])) {
              $_POST['phery']['csrf'] = '';
          }
  
          if ($this->csrf($_POST['phery']['csrf']) === false) {
              self::exception($this, 'Invalid CSRF token', self::ERROR_CSRF);
          }
      }
code_tokens: protected function before_user_func ( ) { if ( $ this -> config [ 'error_reporting' ] !== false ) { set_error_handler ( sprintf ( '%s::error_handler' , __CLASS__ ) , $ this -> config [ 'error_reporting' ] ) ; } if ( empty ( $ _POST [ 'phery' ] [ 'csrf' ] ) ) { $ _POST [ 'phery' ] [ 'csrf' ] = '' ; } if ( $ this -> csrf ( $ _POST [ 'phery' ] [ 'csrf' ] ) === false ) { self :: exception ( $ this , 'Invalid CSRF token' , self :: ERROR_CSRF ) ; } }
docstring: Initialize stuff before calling the AJAX function
  
  @return void
docstring_tokens: Initialize stuff before calling the AJAX function