| Conditions | 4 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | 3 | public function logQuery(array $query) |
|
| 46 | { |
||
| 47 | 3 | if (isset($query['batchInsert']) |
|
| 48 | 3 | && null !== $this->batchInsertThreshold && $this->batchInsertThreshold <= $query['num']) { |
|
| 49 | 1 | $query['data'] = '**'.$query['num'].' item(s)**'; |
|
| 50 | } |
||
| 51 | |||
| 52 | 3 | array_walk_recursive($query, function (&$value) { |
|
| 53 | 3 | $value = $this->flatValue($value); |
|
| 54 | 3 | }); |
|
| 55 | |||
| 56 | 3 | $this->logger->debug($this->prefix.json_encode($query)); |
|
| 57 | 3 | } |
|
| 58 | |||
| 77 |