TwigPanel::data()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
declare(strict_types=1);
3
4
namespace WyriHaximus\TwigView\Panel;
5
6
use DebugKit\DebugPanel;
7
use WyriHaximus\TwigView\Lib\TreeScanner;
8
9
final class TwigPanel extends DebugPanel
10
{
11
    /**
12
     * Plugin name.
13
     *
14
     * @var string
15
     */
16
    public $plugin = 'WyriHaximus/TwigView';
17
18
    /**
19
     * Get the data for the twig panel.
20
     *
21
     * @return array
22
     */
23 1
    public function data(): array
24
    {
25
        return [
26 1
            'templates' => TreeScanner::all(),
27
        ];
28
    }
29
}
30