| Total Complexity | 6 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class DotpayManager |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var DotpayApi |
||
| 17 | */ |
||
| 18 | private $dotpayApi; |
||
| 19 | /** |
||
| 20 | * @var |
||
| 21 | */ |
||
| 22 | private $response; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * DotpayManager constructor. |
||
| 26 | * @param DotpayApi $dotpayApi |
||
| 27 | */ |
||
| 28 | public function __construct(DotpayApi $dotpayApi) |
||
| 31 | } |
||
| 32 | |||
| 33 | //It will return url for dotpay transaction |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param $data |
||
| 37 | * @return mixed|string |
||
| 38 | */ |
||
| 39 | public function createPayment($data) |
||
| 40 | { |
||
| 41 | return $this->dotpayApi->createPayment($data); |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param $data |
||
| 46 | * @return mixed |
||
| 47 | */ |
||
| 48 | public function refundPayment($data){ |
||
| 49 | return $this->dotpayApi->refundPayment($data); |
||
| 50 | } |
||
| 51 | |||
| 52 | |||
| 53 | /** |
||
| 54 | * @return mixed |
||
| 55 | */ |
||
| 56 | public function response() |
||
| 59 | } |
||
| 60 | |||
| 61 | //It will listen for dotpay POST with status. We need to calculate hash and check status |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @param array $data |
||
| 65 | * @return Response |
||
| 66 | */ |
||
| 67 | public function callback(array $data) |
||
| 73 | } |
||
| 74 | } |
||
| 75 |
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