original_string: private function getSchemaToolServiceIdForCurrentConfig(array $currentManagerConfig, ContainerBuilder $container)
      {
          // If there is a schema_tool configured, use it.
          if(!empty($currentManagerConfig['schema_tool'])) {
              return $currentManagerConfig['schema_tool'];
          }
  
          $serviceId = sprintf(
              'h4cc_alice_fixtures.orm.schema_tool.%s',
              $this->getCleanDoctrineConfigName($currentManagerConfig['doctrine'])
          );
  
          if (!$container->has($serviceId)) {
              $schemaToolDefinition = new Definition();
              $schemaToolDefinition->setClass($this->getSchemaToolClass($currentManagerConfig['doctrine']));
              $schemaToolDefinition->setArguments(array(
                  new Reference($this->getCleanDoctrineConfigName($currentManagerConfig['doctrine']))
              ));
              $container->setDefinition($serviceId, $schemaToolDefinition);
          }
  
          return $serviceId;
      }
code: private function getSchemaToolServiceIdForCurrentConfig(array $currentManagerConfig, ContainerBuilder $container)
      {
          // If there is a schema_tool configured, use it.
          if(!empty($currentManagerConfig['schema_tool'])) {
              return $currentManagerConfig['schema_tool'];
          }
  
          $serviceId = sprintf(
              'h4cc_alice_fixtures.orm.schema_tool.%s',
              $this->getCleanDoctrineConfigName($currentManagerConfig['doctrine'])
          );
  
          if (!$container->has($serviceId)) {
              $schemaToolDefinition = new Definition();
              $schemaToolDefinition->setClass($this->getSchemaToolClass($currentManagerConfig['doctrine']));
              $schemaToolDefinition->setArguments(array(
                  new Reference($this->getCleanDoctrineConfigName($currentManagerConfig['doctrine']))
              ));
              $container->setDefinition($serviceId, $schemaToolDefinition);
          }
  
          return $serviceId;
      }
code_tokens: private function getSchemaToolServiceIdForCurrentConfig ( array $ currentManagerConfig , ContainerBuilder $ container ) { // If there is a schema_tool configured, use it. if ( ! empty ( $ currentManagerConfig [ 'schema_tool' ] ) ) { return $ currentManagerConfig [ 'schema_tool' ] ; } $ serviceId = sprintf ( 'h4cc_alice_fixtures.orm.schema_tool.%s' , $ this -> getCleanDoctrineConfigName ( $ currentManagerConfig [ 'doctrine' ] ) ) ; if ( ! $ container -> has ( $ serviceId ) ) { $ schemaToolDefinition = new Definition ( ) ; $ schemaToolDefinition -> setClass ( $ this -> getSchemaToolClass ( $ currentManagerConfig [ 'doctrine' ] ) ) ; $ schemaToolDefinition -> setArguments ( array ( new Reference ( $ this -> getCleanDoctrineConfigName ( $ currentManagerConfig [ 'doctrine' ] ) ) ) ) ; $ container -> setDefinition ( $ serviceId , $ schemaToolDefinition ) ; } return $ serviceId ; }
docstring: Will return the configured schema_tool service id,
  or will define a default one lazy and return its id.
  
  @param array $currentManagerConfig
  @param ContainerBuilder $container
  @return string
docstring_tokens: Will return the configured schema_tool service id or will define a default one lazy and return its id .