| Conditions | 5 | 
| Paths | 8 | 
| Total Lines | 18 | 
| Code Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 41 | public function parseRequest($manager, $request)  | 
            ||
| 42 |     { | 
            ||
| 43 |         if ($request->serverName == Yii::$app->getModule('core')->serverName | 
            ||
| 44 |             && $request->port == Yii::$app->getModule('core')->serverPort | 
            ||
| 45 |         ) { | 
            ||
| 46 | $_path = $request->getPathInfo();  | 
            ||
| 47 |         } else { | 
            ||
| 48 | $_path = $request->absoluteUrl;  | 
            ||
| 49 | }  | 
            ||
| 50 | $_path = !empty($_path) ? $_path : ':mainpage:';  | 
            ||
| 51 |         if (null !== $model = Page::getByUrlPath($_path)) { | 
            ||
| 52 | return [  | 
            ||
| 53 | '/page/page/' . $model['show_type'],  | 
            ||
| 54 | ['id' => $model['id']]  | 
            ||
| 55 | ];  | 
            ||
| 56 | }  | 
            ||
| 57 | return false;  | 
            ||
| 58 | }  | 
            ||
| 59 | }  | 
            ||
| 60 | 
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.