original_string: protected function firePreProcessEvent($name = null, $resource = null)
      {
          if (empty($name)) {
              $name = $this->getEventName();
          }
          if (empty($resource)) {
              $resource = $this->getEventResource();
          }
          $event = new PreProcessApiEvent($name, $this->request, $this->response, $resource);
          /** @noinspection PhpUnusedLocalVariableInspection */
          $results = \Event::fire($event);
          $this->response = $event->response;
      }
code: protected function firePreProcessEvent($name = null, $resource = null)
      {
          if (empty($name)) {
              $name = $this->getEventName();
          }
          if (empty($resource)) {
              $resource = $this->getEventResource();
          }
          $event = new PreProcessApiEvent($name, $this->request, $this->response, $resource);
          /** @noinspection PhpUnusedLocalVariableInspection */
          $results = \Event::fire($event);
          $this->response = $event->response;
      }
code_tokens: protected function firePreProcessEvent ( $ name = null , $ resource = null ) { if ( empty ( $ name ) ) { $ name = $ this -> getEventName ( ) ; } if ( empty ( $ resource ) ) { $ resource = $ this -> getEventResource ( ) ; } $ event = new PreProcessApiEvent ( $ name , $ this -> request , $ this -> response , $ resource ) ; /** @noinspection PhpUnusedLocalVariableInspection */ $ results = \ Event :: fire ( $ event ) ; $ this -> response = $ event -> response ; }
docstring: Fires pre process event
  @param string|null $name     Optional override for name
  @param string|null $resource Optional override for resource
docstring_tokens: Fires pre process event