Skip to content

Commit 3c219c2

Browse files
committed
Coding style tweaks
1 parent e8f4d1b commit 3c219c2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lib/WebDriver/SauceLabs/SauceRest.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,15 +267,17 @@ public function getStatus()
267267
/**
268268
* Get currently supported browsers: /rest/v1/info/browsers (GET)
269269
*
270+
* @param string $termination Optional termination (one of "all", "selenium-rc", or "webdriver')
271+
*
270272
* @return array
271273
*/
272-
public function getBrowsers($browser = FALSE)
274+
public function getBrowsers($termination = false)
273275
{
274-
if($browser) {
275-
return $this->execute('GET', 'info/browsers/' . $browser);
276-
} else {
277-
return $this->execute('GET', 'info/browsers');
276+
if ($termination) {
277+
return $this->execute('GET', 'info/browsers/' . $termination);
278278
}
279+
280+
return $this->execute('GET', 'info/browsers');
279281
}
280282

281283
/**

0 commit comments

Comments
 (0)