| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class VendorSource implements \Vaimo\ComposerPatches\Interfaces\PatchSourceListInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | private $vendors; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param array $vendors |
||
| 22 | */ |
||
| 23 | public function __construct( |
||
| 24 | array $vendors = array() |
||
| 25 | ) { |
||
| 26 | $this->vendors = $vendors; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getItems(WritableRepositoryInterface $repository) |
||
| 44 | } |
||
| 45 | ); |
||
| 48 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: