original_string: protected function assembleOptionString()
      {
          $optionString = '';
  
          foreach ($this->options as $name => $option) {
              if ($option === true) {
                  $optionString .= " {$name}";
              } elseif (is_string($option) && $option !== '') {
                  $optionString .= " {$name} " . escapeshellarg($option);
              } elseif (is_array($option) && !empty($option)) {
                  $optionString .= " {$name} " . implode(' ', $option);
              }
          }
  
          return $optionString !== '' ? $optionString . '' : ' ';
      }
code: protected function assembleOptionString()
      {
          $optionString = '';
  
          foreach ($this->options as $name => $option) {
              if ($option === true) {
                  $optionString .= " {$name}";
              } elseif (is_string($option) && $option !== '') {
                  $optionString .= " {$name} " . escapeshellarg($option);
              } elseif (is_array($option) && !empty($option)) {
                  $optionString .= " {$name} " . implode(' ', $option);
              }
          }
  
          return $optionString !== '' ? $optionString . '' : ' ';
      }
code_tokens: protected function assembleOptionString ( ) { $ optionString = '' ; foreach ( $ this -> options as $ name => $ option ) { if ( $ option === true ) { $ optionString .= " {$name}" ; } elseif ( is_string ( $ option ) && $ option !== '' ) { $ optionString .= " {$name} " . escapeshellarg ( $ option ) ; } elseif ( is_array ( $ option ) && ! empty ( $ option ) ) { $ optionString .= " {$name} " . implode ( ' ' , $ option ) ; } } return $ optionString !== '' ? $ optionString . '' : ' ' ; }
docstring: Concatinates string options.
  
  @return string
docstring_tokens: Concatinates string options .