original_string: public function onRegister($name, Closure $callback)
      {
          $priority                  = $this->getPluginPriority($name);
          $this->registerCallbacks[] = compact('name', 'priority', 'callback');
      }
code: public function onRegister($name, Closure $callback)
      {
          $priority                  = $this->getPluginPriority($name);
          $this->registerCallbacks[] = compact('name', 'priority', 'callback');
      }
code_tokens: public function onRegister ( $ name , Closure $ callback ) { $ priority = $ this -> getPluginPriority ( $ name ) ; $ this -> registerCallbacks [ ] = compact ( 'name' , 'priority' , 'callback' ) ; }
docstring: onRegister method.
  
  @param          $name
  @param \Closure $callback
docstring_tokens: onRegister method .