Total Complexity | 9 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
9 | class Container extends Resource { |
||
10 | |||
11 | private $containerId; |
||
12 | private $statusCache; |
||
13 | |||
14 | public function __construct(KeyManager $km, string $id) { |
||
15 | parent::__construct($km); |
||
16 | $this->containerId = $id; |
||
17 | $this->UpdateStatus(); |
||
18 | } |
||
19 | |||
20 | private function UpdateStatus() { |
||
21 | $request = Request::get("https://api.csfcloud.com/container/" . urlencode($this->containerId) . "?key=" . urlencode($this->keymanager->GetServerKey()))->expectsText()->send(); |
||
22 | $this->statusCache = json_decode($request->body, true); |
||
23 | } |
||
24 | |||
25 | public function GetConfiguration() : array { |
||
26 | return $this->statusCache["configuration"]; |
||
27 | } |
||
28 | |||
29 | public function SetConfiguration(array $cnf) { |
||
31 | } |
||
32 | |||
33 | public function UpdateChanges() { |
||
34 | Request::put("https://api.csfcloud.com/container/" . urlencode($this->containerId) . "?key=" . urlencode($this->keymanager->GetServerKey())) |
||
35 | ->sendsJson()->body(json_encode($this->statusCache["configuration"]))->send(); |
||
36 | } |
||
37 | |||
38 | public function GetContainerName() : string { |
||
40 | } |
||
41 | |||
42 | public function SetContainerName(string $newname) { |
||
44 | } |
||
45 | |||
46 | public function IsRunning() : boolean { |
||
48 | } |
||
49 | |||
50 | public function GetLastLogId() : ?string { |
||
54 | } |
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