| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | protected function isKeyAnAttachedAssetId(Collection $existingAttachedAssets, string $locale, string $type, $assetId): bool |
||
| 21 | { |
||
| 22 | return ($this->looksLikeAnAssetId($assetId) && $existingAttachedAssets |
||
| 23 | ->where('pivot.locale', $locale) |
||
| 24 | ->where('pivot.type', $type) |
||
| 25 | ->where('pivot.asset_id', $assetId) |
||
| 26 | ->count()); |
||
| 27 | } |
||
| 29 |