| Conditions | 3 |
| Paths | 4 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | public function prepare($builder) |
||
| 45 | { |
||
| 46 | if ($this->user !== null) { |
||
| 47 | $this->andWhere( |
||
| 48 | Db::parseParam('userId', $this->parseUserValue($this->user)) |
||
| 49 | ); |
||
| 50 | } |
||
| 51 | |||
| 52 | if ($this->organization !== null) { |
||
| 53 | $this->andWhere( |
||
| 54 | Db::parseParam('organizationId', $this->parseOrganizationValue($this->organization)) |
||
| 55 | ); |
||
| 56 | } |
||
| 57 | |||
| 58 | return parent::prepare($builder); |
||
| 59 | } |
||
| 60 | } |
||
| 61 |