| Conditions | 3 | 
| Paths | 4 | 
| Total Lines | 21 | 
| Code Lines | 13 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 11 | public function importLabels(\CultureFeed_Cdb_Item_Base $item, $jsonLD)  | 
            ||
| 12 |     { | 
            ||
| 13 | $labelCollection = LabelCollection::fromKeywords(  | 
            ||
| 14 | $item->getKeywords(true)  | 
            ||
| 15 | );  | 
            ||
| 16 | |||
| 17 | $visibleLabels = $labelCollection->filter(  | 
            ||
| 18 |             function (Label $label) { | 
            ||
| 19 | return $label->isVisible();  | 
            ||
| 20 | }  | 
            ||
| 21 | )->toStrings();  | 
            ||
| 22 | |||
| 23 | $hiddenLabels = $labelCollection->filter(  | 
            ||
| 24 |             function (Label $label) { | 
            ||
| 25 | return !$label->isVisible();  | 
            ||
| 26 | }  | 
            ||
| 27 | )->toStrings();  | 
            ||
| 28 | |||
| 29 | empty($visibleLabels) ?: $jsonLD->labels = $visibleLabels;  | 
            ||
| 30 | empty($hiddenLabels) ?: $jsonLD->hiddenLabels = $hiddenLabels;  | 
            ||
| 31 | }  | 
            ||
| 32 | }  | 
            ||
| 33 |