@@ -198,14 +198,14 @@ protected function curl($requestMethod, $command, $parameters = null, $extraOpti
198198
199199 $ result = json_decode ($ rawResult , true );
200200
201- if (!empty ($ rawResult ) && $ result === null && json_last_error () != JSON_ERROR_NONE ) {
201+ if (! empty ($ rawResult ) && $ result === null && json_last_error () != JSON_ERROR_NONE ) {
202202 throw WebDriverException::factory (
203203 WebDriverException::CURL_EXEC ,
204204 'Payload received from webdriver is not valid json: ' . substr ($ rawResult , 0 , 1000 )
205205 );
206206 }
207207
208- if (is_array ($ result ) && !array_key_exists ('status ' , $ result )) {
208+ if (is_array ($ result ) && ! array_key_exists ('status ' , $ result )) {
209209 throw WebDriverException::factory (
210210 WebDriverException::CURL_EXEC ,
211211 'Payload received from webdriver is valid but unexpected json: ' . substr ($ rawResult , 0 , 1000 )
@@ -264,7 +264,7 @@ public function __call($name, $arguments)
264264
265265 $ methods = $ this ->methods ();
266266
267- if (!in_array ($ requestMethod , (array ) $ methods [$ webdriverCommand ])) {
267+ if (! in_array ($ requestMethod , (array ) $ methods [$ webdriverCommand ])) {
268268 throw WebDriverException::factory (
269269 WebDriverException::INVALID_REQUEST ,
270270 sprintf (
@@ -295,7 +295,7 @@ public function __call($name, $arguments)
295295 */
296296 private function getRequestMethod ($ webdriverCommand )
297297 {
298- if (!array_key_exists ($ webdriverCommand , $ this ->methods ())) {
298+ if (! array_key_exists ($ webdriverCommand , $ this ->methods ())) {
299299 throw WebDriverException::factory (
300300 array_key_exists ($ webdriverCommand , $ this ->obsoleteMethods ())
301301 ? WebDriverException::OBSOLETE_COMMAND : WebDriverException::UNKNOWN_COMMAND ,
0 commit comments