| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function withSellerOptions(): self |
||
| 34 | { |
||
| 35 | $options = Yii::$app->user->isGuest ? ['seller' => Yii::$app->params['user.seller']] : [ |
||
| 36 | 'seller' => Yii::$app->user->identity->seller, |
||
|
|
|||
| 37 | 'seller_id' => Yii::$app->user->identity->seller_id, |
||
| 38 | ]; |
||
| 39 | $this->andWhere($options); |
||
| 40 | |||
| 41 | return $this; |
||
| 42 | } |
||
| 44 |