original_string: private function addSubForms(FormBuilderInterface $builder, array $choiceViews, array $options)
      {
          foreach ($choiceViews as $name => $choiceView) {
              // Flatten groups
              if (\is_array($choiceView)) {
                  $this->addSubForms($builder, $choiceView, $options);
                  continue;
              }
  
              if ($choiceView instanceof ChoiceGroupView) {
                  $this->addSubForms($builder, $choiceView->choices, $options);
                  continue;
              }
  
              $this->addSubForm($builder, $name, $choiceView, $options);
          }
      }
code: private function addSubForms(FormBuilderInterface $builder, array $choiceViews, array $options)
      {
          foreach ($choiceViews as $name => $choiceView) {
              // Flatten groups
              if (\is_array($choiceView)) {
                  $this->addSubForms($builder, $choiceView, $options);
                  continue;
              }
  
              if ($choiceView instanceof ChoiceGroupView) {
                  $this->addSubForms($builder, $choiceView->choices, $options);
                  continue;
              }
  
              $this->addSubForm($builder, $name, $choiceView, $options);
          }
      }
code_tokens: private function addSubForms ( FormBuilderInterface $ builder , array $ choiceViews , array $ options ) { foreach ( $ choiceViews as $ name => $ choiceView ) { // Flatten groups if ( \ is_array ( $ choiceView ) ) { $ this -> addSubForms ( $ builder , $ choiceView , $ options ) ; continue ; } if ( $ choiceView instanceof ChoiceGroupView ) { $ this -> addSubForms ( $ builder , $ choiceView -> choices , $ options ) ; continue ; } $ this -> addSubForm ( $ builder , $ name , $ choiceView , $ options ) ; } }
docstring: Adds the sub fields for an expanded choice field.
docstring_tokens: Adds the sub fields for an expanded choice field .