Completed
Push — master ( ca53a0...88b32b )
by Nils
04:29
created

ChromeClient::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace whm\Smoke\Http;
4
5
use phm\HttpWebdriverClient\Http\Client\Chrome\ChromeClient as phmChromeClient;
6
7
class ChromeClient extends phmChromeClient
8
{
9
    public function init($host = 'localhost', $port = 4444)
10
    {
11
        $this->setWebdriverHost($host);
0 ignored issues
show
Bug introduced by
The method setWebdriverHost() does not seem to exist on object<whm\Smoke\Http\ChromeClient>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
12
        $this->setWebdriverPort($port);
0 ignored issues
show
Bug introduced by
The method setWebdriverPort() does not seem to exist on object<whm\Smoke\Http\ChromeClient>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
13
    }
14
}