original_string: public function registerService($service, $name = '') {
          if (empty($name)) {
              $name = Assist::classNameShort($service);
          }
  
          static::$container->offsetSet(strtolower($name), $service);
      }
code: public function registerService($service, $name = '') {
          if (empty($name)) {
              $name = Assist::classNameShort($service);
          }
  
          static::$container->offsetSet(strtolower($name), $service);
      }
code_tokens: public function registerService ( $ service , $ name = '' ) { if ( empty ( $ name ) ) { $ name = Assist :: classNameShort ( $ service ) ; } static :: $ container -> offsetSet ( strtolower ( $ name ) , $ service ) ; }
docstring: Register a service
  
  @param object $service
  @param string $name
docstring_tokens: Register a service