| Conditions | 2 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | public function run() |
||
|
|
|||
| 18 | { |
||
| 19 | $wishlists = Wishlist::getWishlist((!Yii::$app->user->isGuest ? Yii::$app->user->id : 0), Yii::$app->session->get('wishlists', [])); |
||
| 20 | $model = new Wishlist(); |
||
| 21 | return $this->render($this->viewFile, |
||
| 22 | [ |
||
| 23 | 'id' => $this->id, |
||
| 24 | 'wishlists' => $wishlists, |
||
| 25 | 'model' => $model, |
||
| 26 | ] |
||
| 27 | ); |
||
| 28 | } |
||
| 29 | } |
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.