original_string: public function addSection($name, $label, $position=0)
      {
          $sectionManager = $this->container->get('admin.configuration.configsection_manager');
          $section = $sectionManager->getRepository()->findOneByName($name);
          if (!$section) {
              $section = new ConfigSection();
              $section->setName($name);
              $section->setSLabel($label);
              $section->setPosition($position);
              $sectionManager->create($section);
  
              return true;
          }
  
          return false;
      }
code: public function addSection($name, $label, $position=0)
      {
          $sectionManager = $this->container->get('admin.configuration.configsection_manager');
          $section = $sectionManager->getRepository()->findOneByName($name);
          if (!$section) {
              $section = new ConfigSection();
              $section->setName($name);
              $section->setSLabel($label);
              $section->setPosition($position);
              $sectionManager->create($section);
  
              return true;
          }
  
          return false;
      }
code_tokens: public function addSection ( $ name , $ label , $ position = 0 ) { $ sectionManager = $ this -> container -> get ( 'admin.configuration.configsection_manager' ) ; $ section = $ sectionManager -> getRepository ( ) -> findOneByName ( $ name ) ; if ( ! $ section ) { $ section = new ConfigSection ( ) ; $ section -> setName ( $ name ) ; $ section -> setSLabel ( $ label ) ; $ section -> setPosition ( $ position ) ; $ sectionManager -> create ( $ section ) ; return true ; } return false ; }
docstring: Add a ConfigSection
  If a ConfigSection with the same name exists then it does nothing
  
  @param string  $name     Name
  @param string  $label    Label
  @param integer $position Position
  
  @return boolean
docstring_tokens: Add a ConfigSection If a ConfigSection with the same name exists then it does nothing