Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class PackageSource implements \Vaimo\ComposerPatches\Interfaces\PatchSourceListInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | private $packages; |
||
17 | |||
18 | /** |
||
19 | * @var \Vaimo\ComposerPatches\Utils\FilterUtils |
||
20 | */ |
||
21 | private $filterUtils; |
||
22 | |||
23 | /** |
||
24 | * @param array $packages |
||
25 | */ |
||
26 | public function __construct( |
||
32 | } |
||
33 | |||
34 | public function getItems(WritableRepositoryInterface $repository) |
||
52 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: