original_string: public function handleInit(Control $control, Context $context)
      {
          if (! $context->pidfile instanceof Pidfile) {
              $context->pidfile = new Pidfile($control, $this->getOption('name'), $this->getOption('lock_dir'));
          }
          $context->isRunning = $context->pidfile->isActive();
          $context->processId = $context->pidfile->getProcessId();
      }
code: public function handleInit(Control $control, Context $context)
      {
          if (! $context->pidfile instanceof Pidfile) {
              $context->pidfile = new Pidfile($control, $this->getOption('name'), $this->getOption('lock_dir'));
          }
          $context->isRunning = $context->pidfile->isActive();
          $context->processId = $context->pidfile->getProcessId();
      }
code_tokens: public function handleInit ( Control $ control , Context $ context ) { if ( ! $ context -> pidfile instanceof Pidfile ) { $ context -> pidfile = new Pidfile ( $ control , $ this -> getOption ( 'name' ) , $ this -> getOption ( 'lock_dir' ) ) ; } $ context -> isRunning = $ context -> pidfile -> isActive ( ) ; $ context -> processId = $ context -> pidfile -> getProcessId ( ) ; }
docstring: Default trigger for EVENT_INIT.
  
  @param Control $control
  @param Context $context
docstring_tokens: Default trigger for EVENT_INIT .