original_string: private function addFormDeclaration($formTypeName)
      {
          $name = strtolower($this->model);
          $extension = $matches = preg_split('/(?=[A-Z])/', $this->bundle->getName(), -1, PREG_SPLIT_NO_EMPTY);
          $bundleName = $this->getBundlePrefix();
          array_pop($extension);
          $path = $this->bundle->getPath() . '/Resources/config/forms.xml';
  
          if (!file_exists($path)) {
              $this->renderFile('form/ServicesForms.xml.twig', $path, array());
              $ref = 'protected $configFiles = array(';
  
              $this->dumpFile(
                  $this->bundle->getPath() . '/DependencyInjection/' . implode('', $extension) . 'Extension.php',
                  "\n        'forms',",
                  $ref
              );die;
          }
  
          $this->addService($path, $bundleName, $name, $formTypeName);
          $this->addParameter($path, $bundleName, $name);
      }
code: private function addFormDeclaration($formTypeName)
      {
          $name = strtolower($this->model);
          $extension = $matches = preg_split('/(?=[A-Z])/', $this->bundle->getName(), -1, PREG_SPLIT_NO_EMPTY);
          $bundleName = $this->getBundlePrefix();
          array_pop($extension);
          $path = $this->bundle->getPath() . '/Resources/config/forms.xml';
  
          if (!file_exists($path)) {
              $this->renderFile('form/ServicesForms.xml.twig', $path, array());
              $ref = 'protected $configFiles = array(';
  
              $this->dumpFile(
                  $this->bundle->getPath() . '/DependencyInjection/' . implode('', $extension) . 'Extension.php',
                  "\n        'forms',",
                  $ref
              );die;
          }
  
          $this->addService($path, $bundleName, $name, $formTypeName);
          $this->addParameter($path, $bundleName, $name);
      }
code_tokens: private function addFormDeclaration ( $ formTypeName ) { $ name = strtolower ( $ this -> model ) ; $ extension = $ matches = preg_split ( '/(?=[A-Z])/' , $ this -> bundle -> getName ( ) , - 1 , PREG_SPLIT_NO_EMPTY ) ; $ bundleName = $ this -> getBundlePrefix ( ) ; array_pop ( $ extension ) ; $ path = $ this -> bundle -> getPath ( ) . '/Resources/config/forms.xml' ; if ( ! file_exists ( $ path ) ) { $ this -> renderFile ( 'form/ServicesForms.xml.twig' , $ path , array ( ) ) ; $ ref = 'protected $configFiles = array(' ; $ this -> dumpFile ( $ this -> bundle -> getPath ( ) . '/DependencyInjection/' . implode ( '' , $ extension ) . 'Extension.php' , "\n        'forms'," , $ ref ) ; die ; } $ this -> addService ( $ path , $ bundleName , $ name , $ formTypeName ) ; $ this -> addParameter ( $ path , $ bundleName , $ name ) ; }
docstring: Add service form declaration
  
  @param string $formTypeName
docstring_tokens: Add service form declaration