| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 42 | public function getTab(): string |
||
| 43 | { |
||
| 44 | ($prop = new \ReflectionProperty($render = $this->render, 'loadedTemplates'))->setAccessible(true); |
||
| 45 | |||
| 46 | foreach ($prop->getValue($render) as $name => $profile) { |
||
| 47 | $this->templates[] = [ |
||
| 48 | 'name' => $name, |
||
| 49 | 'path' => \str_replace('html:', '', $profile[0] ?? 'unknown'), |
||
| 50 | 'render' => \get_class($render->getRenders()[$profile[1] ?? 0]), |
||
| 51 | ]; |
||
| 52 | } |
||
| 53 | |||
| 54 | return Helpers::capture(static fn () => require __DIR__.'/templates/TemplatesPanel.tab.phtml'); |
||
| 55 | } |
||
| 57 |