original_string: public function resolveGroups($formType)
      {
          $formGroups = null;
          if (isset($this->formConfig[$formType]['default_groups'])) {
              $formGroups = $this->formConfig[$formType]['default_groups'];
          }
  
          if(is_array($formGroups)) {
              $groups = $formGroups;
          } else {
              $groups = $this->defaultGroups;
          }
  
          return $this->groupManager->getGroupsByCodes($groups);
      }
code: public function resolveGroups($formType)
      {
          $formGroups = null;
          if (isset($this->formConfig[$formType]['default_groups'])) {
              $formGroups = $this->formConfig[$formType]['default_groups'];
          }
  
          if(is_array($formGroups)) {
              $groups = $formGroups;
          } else {
              $groups = $this->defaultGroups;
          }
  
          return $this->groupManager->getGroupsByCodes($groups);
      }
code_tokens: public function resolveGroups ( $ formType ) { $ formGroups = null ; if ( isset ( $ this -> formConfig [ $ formType ] [ 'default_groups' ] ) ) { $ formGroups = $ this -> formConfig [ $ formType ] [ 'default_groups' ] ; } if ( is_array ( $ formGroups ) ) { $ groups = $ formGroups ; } else { $ groups = $ this -> defaultGroups ; } return $ this -> groupManager -> getGroupsByCodes ( $ groups ) ; }
docstring: Return groups by form type
  
  @param string $formType
  
  @return Group[]
docstring_tokens: Return groups by form type