Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
49 | public function stopQuery() |
||
50 | { |
||
51 | $q = $this->queries[$this->current]; |
||
52 | $q['dur'] = (float) microtime(true) - $this->start; |
||
53 | $log = sprintf("%s \n\n%s \n\n%s ms \n\n%s \n\n", |
||
54 | "#$this->current:", |
||
55 | $q['sql'], |
||
56 | round($q['dur'] * 1000, 3), |
||
57 | var_export($q['params'], true) |
||
58 | ); |
||
59 | file_put_contents($this->file, $log, FILE_APPEND); |
||
60 | } |
||
63 |