original_string: public function prepare($command, array $arguments = array())
      {
          $commandline = $command;
  
          foreach ($arguments as $option => $value) {
              if (is_bool($value)) {
                  if ($value === true) {
                      $commandline .= ' ' . $option;
                  }
              } else {
                  $seperator = ' ';
                  if (!is_integer($option)) {
                      $commandline .= ' ' . $option;
                      if (substr($option, -1, 1) == '=') {
                          $seperator = '';
                      }
                  }
                  $commandline .= $seperator . ProcessUtils::escapeArgument($value);
              }
          }
  
          return $commandline;
      }
code: public function prepare($command, array $arguments = array())
      {
          $commandline = $command;
  
          foreach ($arguments as $option => $value) {
              if (is_bool($value)) {
                  if ($value === true) {
                      $commandline .= ' ' . $option;
                  }
              } else {
                  $seperator = ' ';
                  if (!is_integer($option)) {
                      $commandline .= ' ' . $option;
                      if (substr($option, -1, 1) == '=') {
                          $seperator = '';
                      }
                  }
                  $commandline .= $seperator . ProcessUtils::escapeArgument($value);
              }
          }
  
          return $commandline;
      }
code_tokens: public function prepare ( $ command , array $ arguments = array ( ) ) { $ commandline = $ command ; foreach ( $ arguments as $ option => $ value ) { if ( is_bool ( $ value ) ) { if ( $ value === true ) { $ commandline .= ' ' . $ option ; } } else { $ seperator = ' ' ; if ( ! is_integer ( $ option ) ) { $ commandline .= ' ' . $ option ; if ( substr ( $ option , - 1 , 1 ) == '=' ) { $ seperator = '' ; } } $ commandline .= $ seperator . ProcessUtils :: escapeArgument ( $ value ) ; } } return $ commandline ; }
docstring: Prepares a commandline
  
  @param  string $command
  @param  array  $arguments
  @return string
docstring_tokens: Prepares a commandline