Conditions | 4 |
Paths | 5 |
Total Lines | 21 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
31 | $idList = array_unique(array_filter(array_map($castInt, $idList))); |
||
32 | $idList = empty($idList) ? [null] : $idList; |
||
33 | |||
34 | $bindParam = '_id' . uniqid('_', true) . '_'; |
||
35 | |||
36 | return self::find([ |
||
37 | '[id] = ({'.$bindParam.':array})', |
||
38 | 'bind' => [$bindParam => $idList], |
||
39 | 'bindTypes' => [$bindParam => Column::BIND_PARAM_INT] |
||
40 | ]); |
||
41 | } |
||
42 | } |
||
43 |