| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php # -*- coding: utf-8 -*- |
||
| 9 | trait Helper |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Check if the given site Id prefix exists into the give attachment id |
||
| 13 | * |
||
| 14 | * @param int $attachmentId |
||
| 15 | * @param string $siteIdPrefix |
||
| 16 | * @return bool |
||
| 17 | */ |
||
| 18 | private function idPrefixIncludedInAttachmentId( |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Remove the site Id prefix from the give attachment id |
||
| 28 | * |
||
| 29 | * @param string $idPrefix |
||
| 30 | * @param int $attachmentId |
||
| 31 | * @return int |
||
| 32 | */ |
||
| 33 | private function stripSiteIdPrefixFromAttachmentId(string $idPrefix, int $attachmentId): int |
||
| 38 |