| Total Complexity | 5 |
| Total Lines | 65 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class SetWebhook extends AbstractMethod |
||
| 18 | { |
||
| 19 | use File; |
||
| 20 | |||
| 21 | const NAME = 'setWebhook'; |
||
| 22 | |||
| 23 | const RETURN_ENTITY = Message::class; |
||
| 24 | |||
| 25 | protected $url; |
||
| 26 | |||
| 27 | protected $certificate; |
||
| 28 | |||
| 29 | protected $supportedProperties = [ |
||
| 30 | 'url' => false, |
||
| 31 | 'certificate' => false |
||
| 32 | ]; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return mixed |
||
| 36 | */ |
||
| 37 | public function getUrl() |
||
| 38 | { |
||
| 39 | return $this->url; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param mixed $url |
||
| 44 | * |
||
| 45 | * @return $this |
||
| 46 | */ |
||
| 47 | public function setUrl($url) |
||
| 48 | { |
||
| 49 | $this->url = $url; |
||
| 50 | |||
| 51 | return $this; |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Removes webhook |
||
| 56 | * |
||
| 57 | * @return $this |
||
| 58 | */ |
||
| 59 | public function removeHook() |
||
| 60 | { |
||
| 61 | return $this->setUrl(''); |
||
| 62 | } |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return \CURLFile|string |
||
|
|
|||
| 66 | */ |
||
| 67 | public function getCertificate() |
||
| 70 | } |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @param string $certificate |
||
| 74 | * |
||
| 75 | * @return $this |
||
| 76 | */ |
||
| 77 | public function setCertificate($certificate) |
||
| 82 | } |
||
| 83 | } |
||
| 84 |
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