File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 3535 "require" : {
3636 "php" : " >=8.3" ,
3737 "ext-mysqli" : " *" ,
38- "aplus/debug" : " ^4.0 " ,
38+ "aplus/debug" : " ^4.3 " ,
3939 "aplus/log" : " ^4.0"
4040 },
4141 "require-dev" : {
Original file line number Diff line number Diff line change 33 <!-- cleancode -->
44 <rule ref =" rulesets/cleancode.xml" >
55 <exclude name =" BooleanArgumentFlag" />
6+ <exclude name =" StaticAccess" />
67 </rule >
78 <!-- codesize -->
89 <rule ref =" rulesets/codesize.xml/TooManyPublicMethods" >
Original file line number Diff line number Diff line change 1111
1212use Framework \Database \Database ;
1313use Framework \Debug \Collector ;
14+ use Framework \Debug \Debugger ;
1415
1516/**
1617 * Class DatabaseCollector.
@@ -65,7 +66,7 @@ public function getContents() : string
6566 <thead>
6667 <tr>
6768 <th>#</th>
68- <th title="Seconds ">Time</th>
69+ <th title="Milliseconds ">Time</th>
6970 <th>Statement</th>
7071 <th title="Affected rows or Rows in set">Rows</th>
7172 </tr>
@@ -74,7 +75,7 @@ public function getContents() : string
7475 <?php foreach ($ this ->getData () as $ index => $ item ): ?>
7576 <tr>
7677 <td><?= $ index + 1 ?> </td>
77- <td><?= \round ($ item ['end ' ] - $ item ['start ' ], 6 ) ?> </td>
78+ <td><?= Debugger:: roundSecondsToMilliseconds ($ item ['end ' ] - $ item ['start ' ]) ?> </td>
7879 <td>
7980 <pre><code class="language-sql"><?=
8081 \htmlentities ($ item ['statement ' ])
You can’t perform that action at this time.
0 commit comments