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