private function parseOptions($options)
    {
        if (empty($options)) return [];

        foreach ($options as $option) {
            if (str_contains($option, '(')) {
                preg_match('/([a-z]+)\(([^\)]+)\)/i', $option, $matches);

                $results[$matches[1]] = $matches[2];
            } else {
                $results[$option] = true;
            }
        }

        return $results;
    }
private function parseOptions($options)
    {
        if (empty($options)) return [];

        foreach ($options as $option) {
            if (str_contains($option, '(')) {
                preg_match('/([a-z]+)\(([^\)]+)\)/i', $option, $matches);

                $results[$matches[1]] = $matches[2];
            } else {
                $results[$option] = true;
            }
        }

        return $results;
    }
private function parseOptions ( $ options ) { if ( empty ( $ options ) ) return [ ] ; foreach ( $ options as $ option ) { if ( str_contains ( $ option , '(' ) ) { preg_match ( '/([a-z]+)\(([^\)]+)\)/i' , $ option , $ matches ) ; $ results [ $ matches [ 1 ] ] = $ matches [ 2 ] ; } else { $ results [ $ option ] = true ; } } return $ results ; }
Parse any given options into something usable.

@param  array $options
@return array
Parse any given options into something usable .