original_string: public function onSuccess(Closure $callback)
      {
          return $this->then(function (Container $container) use ($callback) {
              if (0 === $this->exitCode) {
                  $container->call($callback);
              }
          });
      }
code: public function onSuccess(Closure $callback)
      {
          return $this->then(function (Container $container) use ($callback) {
              if (0 === $this->exitCode) {
                  $container->call($callback);
              }
          });
      }
code_tokens: public function onSuccess ( Closure $ callback ) { return $ this -> then ( function ( Container $ container ) use ( $ callback ) { if ( 0 === $ this -> exitCode ) { $ container -> call ( $ callback ) ; } } ) ; }
docstring: Register a callback to be called if the operation succeeds.
  
  @param  \Closure  $callback
  @return $this
docstring_tokens: Register a callback to be called if the operation succeeds .