CrawlerClient::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 3
1
<?php
2
3
namespace SurajAdsul\AppMarket;
4
5
use Goutte\Client;
6
use Symfony\Component\BrowserKit\History;
7
use Symfony\Component\BrowserKit\CookieJar;
8
9
class CrawlerClient extends Client
10
{
11
    public function __construct(array $server = [], History $history = null, CookieJar $cookieJar = null)
12
    {
13
        $server['HTTP_USER_AGENT'] = array_get($server, 'HTTP_USER_AGENT', 'Other');
14
15
        parent::__construct($server, $history, $cookieJar);
16
    }
17
}
18