Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3.072 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
21 | 1 | public function __construct(?string $apiMethodName, ?string $authToken) |
|
22 | { |
||
23 | 1 | if (empty($apiMethodName)) |
|
24 | throw new ErrorException('Api method name is empty.'); |
||
25 | |||
26 | 1 | if (empty($authToken)) |
|
27 | throw new ErrorException('Auth token is empty.'); |
||
28 | |||
29 | 1 | $this->apiMethodName = $apiMethodName; |
|
30 | 1 | $this->authToken = $authToken; |
|
31 | 1 | $this->mainElement = new SimpleXMLElement("<$this->apiMethodName></$this->apiMethodName>"); |
|
32 | 1 | $auth = $this->mainElement->addChild('auth'); |
|
33 | 1 | $auth->addAttribute('token', $this->authToken); |
|
34 | 1 | } |
|
60 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths