| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 16 | public function perform(FeedIo $feedIo, Feed $feed, Result $result): bool |
||
| 17 | {
|
||
| 18 | $publicIds = []; |
||
| 19 | /** @var Feed\ItemInterface $item */ |
||
| 20 | foreach ($feed as $i => $item) {
|
||
| 21 | $publicIds[] = $item->getPublicId(); |
||
| 22 | } |
||
| 23 | |||
| 24 | if (!$this->checkPublicIds($publicIds)) {
|
||
| 25 | $result->markAsFailed(Result::TEST_UNIQUE_IDS); |
||
| 26 | } |
||
| 27 | return true; |
||
| 28 | } |
||
| 29 | |||
| 36 | } |