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