carono /
php-commerceml
| 1 | <?php |
||
| 2 | |||
| 3 | |||
| 4 | namespace Zenwalker\CommerceML\Collections; |
||
| 5 | |||
| 6 | |||
| 7 | use Zenwalker\CommerceML\Model\Image; |
||
|
0 ignored issues
–
show
|
|||
| 8 | use Zenwalker\CommerceML\Model\Simple; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Class Image |
||
| 12 | * |
||
| 13 | * @package Zenwalker\CommerceML\Model |
||
| 14 | */ |
||
| 15 | class ImageCollection extends Simple |
||
| 16 | { |
||
| 17 | 1 | public function init() |
|
| 18 | { |
||
| 19 | 1 | if ($this->xml) { |
|
| 20 | 1 | foreach ($this->xml as $image) { |
|
| 21 | 1 | $this->append(new Image($this->owner, $image)); |
|
| 22 | } |
||
| 23 | } |
||
| 24 | 1 | parent::init(); |
|
| 25 | } |
||
| 26 | } |
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