WebDriverFactory::create()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 10
rs 9.4285
cc 1
eloc 8
nc 1
nop 6
1
<?php
2
3
4
namespace Magium\WebDriver;
5
6
class WebDriverFactory
7
{
8
9
    public static function create(
10
        $url = 'http://localhost:4444/wd/hub',
11
        $desired_capabilities = null,
12
        $connection_timeout_in_ms = null,
13
        $request_timeout_in_ms = null,
14
        $http_proxy = null,
15
        $http_proxy_port = null
16
    ) {
17
        return WebDriver::create($url, $desired_capabilities, $connection_timeout_in_ms, $request_timeout_in_ms, $http_proxy, $http_proxy_port);
18
    }
19
20
}