original_string: protected function getBuilder()
      {
          $isArray = false;
  
          // guess builder type based on arguments
          if ($this->actions) {
              /** @var Action $action */
              $action = reset($this->actions);
              $arguments = $action->getArguments();
              if ($arguments) {
                  $argument = reset($arguments);
                  if (is_array($argument)) {
                      $isArray = true;
                  }
              }
          }
  
          if ($isArray) {
              return new ArrayOptionValueBuilder();
          }
  
          return new StringOptionValueBuilder();
      }
code: protected function getBuilder()
      {
          $isArray = false;
  
          // guess builder type based on arguments
          if ($this->actions) {
              /** @var Action $action */
              $action = reset($this->actions);
              $arguments = $action->getArguments();
              if ($arguments) {
                  $argument = reset($arguments);
                  if (is_array($argument)) {
                      $isArray = true;
                  }
              }
          }
  
          if ($isArray) {
              return new ArrayOptionValueBuilder();
          }
  
          return new StringOptionValueBuilder();
      }
code_tokens: protected function getBuilder ( ) { $ isArray = false ; // guess builder type based on arguments if ( $ this -> actions ) { /** @var Action $action */ $ action = reset ( $ this -> actions ) ; $ arguments = $ action -> getArguments ( ) ; if ( $ arguments ) { $ argument = reset ( $ arguments ) ; if ( is_array ( $ argument ) ) { $ isArray = true ; } } } if ( $ isArray ) { return new ArrayOptionValueBuilder ( ) ; } return new StringOptionValueBuilder ( ) ; }
docstring: Returns options builder based on values in value bag
  
  @return OptionValueBuilderInterface
docstring_tokens: Returns options builder based on values in value bag