| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function end(string $token, array $context = []): void |
||
| 30 | { |
||
| 31 | $key = $this->getKey([$token, $context]); |
||
| 32 | if (isset($this->tokens[$key])) { |
||
| 33 | $elapsed = microtime(true) - $this->tokens[$key]; |
||
| 34 | } |
||
| 35 | |||
| 36 | $this->logger->info(sprintf('End of query "%s"', $token), ['elapsed' => $elapsed ?? 'undefined'] + $context); |
||
| 37 | } |
||
| 39 |