private function splitKeyValuePair(string $pair): array
    {
        $option = explode('=', $pair);
        if (count($option) !== 2) {
            throw new InvalidArgumentException(
                sprintf('"%s" is not a valid query or parameter.', $pair)
            );
        }

        return $option;
    }
private function splitKeyValuePair(string $pair): array
    {
        $option = explode('=', $pair);
        if (count($option) !== 2) {
            throw new InvalidArgumentException(
                sprintf('"%s" is not a valid query or parameter.', $pair)
            );
        }

        return $option;
    }
private function splitKeyValuePair ( string $ pair ) : array { $ option = explode ( '=' , $ pair ) ; if ( count ( $ option ) !== 2 ) { throw new InvalidArgumentException ( sprintf ( '"%s" is not a valid query or parameter.' , $ pair ) ) ; } return $ option ; }
Splits a key-value pair

@return string[]
@throws InvalidArgumentException
Splits a key - value pair