TwigPanel   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 2
dl 0
loc 21
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A data() 0 6 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