| Total Complexity | 6 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class LeftAndMainExtension extends Extension |
||
| 12 | { |
||
| 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 | }); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function init() |
||
| 40 | }); |
||
| 41 | } |
||
| 43 |