| Conditions | 6 | 
| Paths | 3 | 
| Total Lines | 22 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 29 | public function receive(Signal $signal)  | 
            ||
| 30 |     { | 
            ||
| 31 |         if (!$signal instanceof Signal\UserService\MoveUserGroupSignal || !$this->canIndex()) { | 
            ||
| 32 | return;  | 
            ||
| 33 | }  | 
            ||
| 34 | |||
| 35 | if (  | 
            ||
| 36 | $this->searchHandler instanceof FullTextIndexing &&  | 
            ||
| 37 | !$this->searchHandler instanceof ContentIndexing &&  | 
            ||
| 38 | !$this->searchHandler instanceof LocationIndexing  | 
            ||
| 39 |         ) { | 
            ||
| 40 | return;  | 
            ||
| 41 | }  | 
            ||
| 42 | |||
| 43 | $userGroupContentInfo = $this->persistenceHandler->contentHandler()->loadContentInfo(  | 
            ||
| 44 | $signal->userGroupId  | 
            ||
| 45 | );  | 
            ||
| 46 | |||
| 47 | // Moving UserGroup moves its main Location, so we only need to  | 
            ||
| 48 | // (re)index main Location's subtree  | 
            ||
| 49 | $this->indexSubtree($userGroupContentInfo->mainLocationId);  | 
            ||
| 50 | }  | 
            ||
| 51 | }  | 
            ||
| 52 |