| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 16 | 
| Lines | 16 | 
| Ratio | 100 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 21 | View Code Duplication | public function onSetContentState(SetContentStateEvent $event)  | 
            |
| 22 |     { | 
            ||
| 23 | $contentInfo = $this->persistenceHandler->contentHandler()->loadContentInfo($event->getContentInfo()->id);  | 
            ||
| 24 | |||
| 25 | $this->searchHandler->indexContent(  | 
            ||
| 26 | $this->persistenceHandler->contentHandler()->load(  | 
            ||
| 27 | $contentInfo->id,  | 
            ||
| 28 | $contentInfo->currentVersionNo  | 
            ||
| 29 | )  | 
            ||
| 30 | );  | 
            ||
| 31 | |||
| 32 | $locations = $this->persistenceHandler->locationHandler()->loadLocationsByContent($contentInfo->id);  | 
            ||
| 33 |         foreach ($locations as $location) { | 
            ||
| 34 | $this->searchHandler->indexLocation($location);  | 
            ||
| 35 | }  | 
            ||
| 36 | }  | 
            ||
| 37 | }  | 
            ||
| 38 |