Conditions | 5 |
Paths | 5 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | private function transformUuidsToBytes(QueryBuilder $qb, array $parameters): void |
||
24 | { |
||
25 | $parameters = array_merge(['id'], $parameters); |
||
26 | |||
27 | foreach ($qb->getParameters() as $key => $value) { |
||
28 | if (empty($value) && !in_array($key, $parameters)) { |
||
29 | continue; |
||
30 | } |
||
31 | |||
32 | try { |
||
33 | $value = Uuid::fromString($value)->getBytes(); |
||
34 | $qb->setParameter($key, $value); |
||
35 | } catch (InvalidUuidStringException $e) { |
||
36 | // just skip it |
||
41 |