| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 12 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 16 | public function __invoke($identifier)  | 
            ||
| 17 |     { | 
            ||
| 18 | // this is possible to create a specific game design in /design/frontend/default/custom.  | 
            ||
| 19 | //It will precede all others templates.  | 
            ||
| 20 |         $templatePathResolver = $this->service->getServiceManager()->get('Zend\View\Resolver\TemplatePathStack'); | 
            ||
| 21 | $l = $templatePathResolver->getPaths();  | 
            ||
| 22 | $templatePathResolver->addPath($l[0].'custom/'.$identifier);  | 
            ||
| 23 | $game = $this->service->checkGame($identifier, false);  | 
            ||
| 24 | $comments = $this->service->getCommentsForPostvote($game);  | 
            ||
| 25 | |||
| 26 |         return $this->getView()->render('playground-game/post-vote/widget/share-events', array('comments' => $comments)); | 
            ||
| 27 | }  | 
            ||
| 28 | }  |