Conditions | 3 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function accessedCMS() |
||
16 | { |
||
17 | DebugBar::withDebugBar(function (\DebugBar\DebugBar $debugbar) { |
||
18 | /* @var $timeData DebugBar\DataCollector\TimeDataCollector */ |
||
19 | $timeData = $debugbar->getCollector('time'); |
||
20 | if (!$timeData) { |
||
21 | return; |
||
22 | } |
||
23 | if ($timeData->hasStartedMeasure("init")) { |
||
24 | $timeData->stopMeasure("init"); |
||
25 | } |
||
26 | $timeData->startMeasure("cms_accessed", "cms accessed"); |
||
27 | }); |
||
28 | } |
||
29 | |||
45 |