private function prepareOptions($options, $forceOptions = [])
    {
        $optionString = '';

        foreach ($forceOptions as $option => $value) {
            if (is_numeric($option)) {
                $options[$value] = null;
            } else {
                $options[$option] = $value;
            }
        }

        foreach ($options as $option => $value) {

            if (is_null($value)) {
                $optionString .= ' ' . $option;
            } else {
                $optionString .= ' ' . $option . '=' . $value;
            }
        }

        return $optionString;
    }
private function prepareOptions($options, $forceOptions = [])
    {
        $optionString = '';

        foreach ($forceOptions as $option => $value) {
            if (is_numeric($option)) {
                $options[$value] = null;
            } else {
                $options[$option] = $value;
            }
        }

        foreach ($options as $option => $value) {

            if (is_null($value)) {
                $optionString .= ' ' . $option;
            } else {
                $optionString .= ' ' . $option . '=' . $value;
            }
        }

        return $optionString;
    }
private function prepareOptions ( $ options , $ forceOptions = [ ] ) { $ optionString = '' ; foreach ( $ forceOptions as $ option => $ value ) { if ( is_numeric ( $ option ) ) { $ options [ $ value ] = null ; } else { $ options [ $ option ] = $ value ; } } foreach ( $ options as $ option => $ value ) { if ( is_null ( $ value ) ) { $ optionString .= ' ' . $ option ; } else { $ optionString .= ' ' . $ option . '=' . $ value ; } } return $ optionString ; }
Prepares the options string.

@param $options
@param $forceOptions
@return string
Prepares the options string .