original_string: private function generateOptions(TaskDescriptionInterface $description)
      {
          $cmdPart = '';
          $options = $description->getOptions();
          if (!is_array($options)) {
              return $cmdPart;
          }
          foreach ($options as $optionName => $optionValue) {
              //validate the option name
              if (!$this->isValidOptionName($optionName)) {
                  continue;
              }
              if (is_bool($optionValue) && $optionValue) {
                  $cmdPart .= ' --' . $optionName;
              } elseif (is_string($optionValue)|| is_integer($optionValue)) {
                  $cmdPart .= ' --' . $optionName . '=' . escapeshellarg($optionValue);
              }
          }
          return $cmdPart;
  
      }
code: private function generateOptions(TaskDescriptionInterface $description)
      {
          $cmdPart = '';
          $options = $description->getOptions();
          if (!is_array($options)) {
              return $cmdPart;
          }
          foreach ($options as $optionName => $optionValue) {
              //validate the option name
              if (!$this->isValidOptionName($optionName)) {
                  continue;
              }
              if (is_bool($optionValue) && $optionValue) {
                  $cmdPart .= ' --' . $optionName;
              } elseif (is_string($optionValue)|| is_integer($optionValue)) {
                  $cmdPart .= ' --' . $optionName . '=' . escapeshellarg($optionValue);
              }
          }
          return $cmdPart;
  
      }
code_tokens: private function generateOptions ( TaskDescriptionInterface $ description ) { $ cmdPart = '' ; $ options = $ description -> getOptions ( ) ; if ( ! is_array ( $ options ) ) { return $ cmdPart ; } foreach ( $ options as $ optionName => $ optionValue ) { //validate the option name if ( ! $ this -> isValidOptionName ( $ optionName ) ) { continue ; } if ( is_bool ( $ optionValue ) && $ optionValue ) { $ cmdPart .= ' --' . $ optionName ; } elseif ( is_string ( $ optionValue ) || is_integer ( $ optionValue ) ) { $ cmdPart .= ' --' . $ optionName . '=' . escapeshellarg ( $ optionValue ) ; } } return $ cmdPart ; }
docstring: Generates the options part of the command
  
  @param TaskDescriptionInterface $description
  @return string
docstring_tokens: Generates the options part of the command