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