| Conditions | 4 |
| Paths | 6 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | 4 | public function handleBatch(array $records): void |
|
| 20 | { |
||
| 21 | 4 | $batchRecords = []; |
|
| 22 | |||
| 23 | 4 | foreach ($records as $record) { |
|
| 24 | 4 | if ($record['level'] < $this->level) { |
|
| 25 | 3 | continue; |
|
| 26 | } |
||
| 27 | 3 | $batchRecords[] = $this->processRecord($record); |
|
| 28 | } |
||
| 29 | |||
| 30 | 4 | if (!empty($batchRecords)) { |
|
| 31 | 3 | $this->send((string) $this->getFormatter()->formatBatch($batchRecords), $batchRecords); |
|
| 32 | } |
||
| 63 |