SoapClient   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 9
Bugs 1 Features 0
Metric Value
eloc 3
dl 0
loc 7
rs 10
c 9
b 1
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __doRequest() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GusApi\Client;
6
7
class SoapClient extends \SoapClient
8
{
9
    public function __doRequest(string $request, string $location, string $action, int $version, bool $oneWay = false): string
10
    {
11
        $response = parent::__doRequest($request, $location, $action, $version, $oneWay);
0 ignored issues
show
Bug introduced by
$oneWay of type boolean is incompatible with the type integer expected by parameter $oneWay of SoapClient::__doRequest(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

11
        $response = parent::__doRequest($request, $location, $action, $version, /** @scrutinizer ignore-type */ $oneWay);
Loading history...
12
13
        return MultipartResponseDecoder::decode((string) $response);
14
    }
15
}
16