| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | 6 | public static function box(array $params) |
|
| 14 | { |
||
| 15 | 6 | $rawIds = $params['ids']; |
|
| 16 | 6 | $operator = key($rawIds); |
|
| 17 | 6 | $ids = join(',', current($rawIds)); |
|
| 18 | 6 | $path = $params['path']; |
|
| 19 | 6 | $rawFilter = $path . '.id|' . $operator; |
|
| 20 | |||
| 21 | 6 | return new self([ |
|
| 22 | 6 | 'raw_filter' => $rawFilter, |
|
| 23 | 6 | 'ids' => $ids, |
|
| 24 | 6 | 'operator' => $operator, |
|
| 25 | 6 | 'path' => $path, |
|
| 26 | ]); |
||
| 57 |