Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class ProjectSource implements \Vaimo\ComposerPatches\Interfaces\PatchSourceListInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var \Composer\Package\RootPackageInterface |
||
12 | */ |
||
13 | private $rootPackage; |
||
14 | |||
15 | /** |
||
16 | * @param \Composer\Package\RootPackageInterface $rootPackage |
||
17 | */ |
||
18 | public function __construct( |
||
22 | } |
||
23 | |||
24 | public function getItems(\Composer\Repository\WritableRepositoryInterface $repository) |
||
29 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: