src/php/DataSift/WebDriver/WebDriverBase.php
private function getHttpVerb($webdriver_command)
    {
        $methods = $this->getMethods();

        if (!isset($methods[$webdriver_command])) {
            throw new E5xx_BadMethodCallWebDriverError(sprintf(
                '%s is not a valid webdriver command.',
                $webdriver_command
            ));
        }

        // the first element in the array is the default HTTP verb to use
        return $methods[$webdriver_command];
    }
private function getHttpVerb($webdriver_command)
    {
        $methods = $this->getMethods();

        if (!isset($methods[$webdriver_command])) {
            throw new E5xx_BadMethodCallWebDriverError(sprintf(
                '%s is not a valid webdriver command.',
                $webdriver_command
            ));
        }

        // the first element in the array is the default HTTP verb to use
        return $methods[$webdriver_command];
    }
private function getHttpVerb ( $ webdriver_command ) { $ methods = $ this -> getMethods ( ) ; if ( ! isset ( $ methods [ $ webdriver_command ] ) ) { throw new E5xx_BadMethodCallWebDriverError ( sprintf ( '%s is not a valid webdriver command.' , $ webdriver_command ) ) ; } // the first element in the array is the default HTTP verb to use return $ methods [ $ webdriver_command ] ; }
determine the HTTP verb to use for a given webdriver command

@param  string $webdriver_command the webdriver command to use
@return string                    the HTTP verb to use
determine the HTTP verb to use for a given webdriver command