Conditions | 3 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function init() |
||
29 | { |
||
30 | DebugBar::withDebugBar(function (\DebugBar\DebugBar $debugbar) { |
||
31 | /** @var DebugBar\DataCollector\TimeDataCollector $timeData */ |
||
32 | $timeData = $debugbar->getCollector('time'); |
||
33 | if (!$timeData) { |
||
34 | return; |
||
35 | } |
||
36 | if ($timeData->hasStartedMeasure("cms_accessed")) { |
||
37 | $timeData->stopMeasure("cms_accessed"); |
||
38 | } |
||
39 | $timeData->startMeasure("cms_init", "cms init"); |
||
40 | }); |
||
43 |