1 | <?php |
||
2 | /** |
||
3 | * API for Billing |
||
4 | * |
||
5 | * @link https://github.com/hiqdev/billing-hiapi |
||
6 | * @package billing-hiapi |
||
7 | * @license BSD-3-Clause |
||
8 | * @copyright Copyright (c) 2017-2018, HiQDev (http://hiqdev.com/) |
||
9 | */ |
||
10 | |||
11 | namespace hiqdev\billing\hiapi\price; |
||
12 | |||
13 | /** |
||
14 | * EnumPrice Hydrator. |
||
15 | * |
||
16 | * @author Andrii Vasyliev <[email protected]> |
||
17 | */ |
||
18 | class EnumPriceHydrator extends PriceHydrator |
||
19 | { |
||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | * @param object|Plan $object |
||
0 ignored issues
–
show
|
|||
23 | */ |
||
24 | public function extract($object) |
||
25 | { |
||
26 | return array_merge(parent::extract($object), array_filter([ |
||
27 | 'unit' => $this->hydrator->extract($object->getUnit()), |
||
28 | 'currency' => $this->hydrator->extract($object->getCurrency()), |
||
29 | 'sums' => $object->getSums(), |
||
30 | ])); |
||
31 | } |
||
32 | } |
||
33 |
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