| Total Complexity | 7 |
| Total Lines | 61 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Action implements ActionInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Endpoint for the action |
||
| 17 | * |
||
| 18 | * @const ENDPOINT |
||
| 19 | */ |
||
| 20 | const ENDPOINT = 'https://api.digitalocean.com/v2/droplets/[:id:]/actions'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * HTTP Method |
||
| 24 | * |
||
| 25 | * @const METHOD |
||
| 26 | */ |
||
| 27 | const METHOD = 'POST'; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * ID of the droplet to perform the action on |
||
| 31 | * |
||
| 32 | * @var mixed $id |
||
| 33 | */ |
||
| 34 | protected $id; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Set the droplet id |
||
| 38 | * |
||
| 39 | * @param mixed $id |
||
| 40 | */ |
||
| 41 | public function setId($id) |
||
| 42 | { |
||
| 43 | $this->id = $id; |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Method to return the action request object |
||
| 48 | * |
||
| 49 | * @param Array $headers |
||
| 50 | * @param string $body |
||
| 51 | * @return \GuzzleHttp\Message\Request |
||
|
|
|||
| 52 | */ |
||
| 53 | public function getRequest(Array $headers = [], $body = '') |
||
| 74 | ); |
||
| 75 | } |
||
| 77 |
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