ConfigurationPanel   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A initialize() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * BEdita, API-first content management framework
6
 * Copyright 2017-2022 ChannelWeb Srl, Chialab Srl
7
 *
8
 * This file is part of BEdita: you can redistribute it and/or modify
9
 * it under the terms of the GNU Lesser General Public License as published
10
 * by the Free Software Foundation, either version 3 of the License, or
11
 * (at your option) any later version.
12
 *
13
 * See LICENSE.LGPL or <http://gnu.org/licenses/lgpl-3.0.html> for more details.
14
 */
15
namespace BEdita\DevTools\Panel;
16
17
use Cake\Core\Configure;
18
use DebugKit\DebugPanel;
19
20
/**
21
 * Panel to inspect current app configuration.
22
 */
23
class ConfigurationPanel extends DebugPanel
24
{
25
    /**
26
     * Plugin name.
27
     *
28
     * @var string
29
     */
30
    public string $plugin = 'BEdita/DevTools';
31
32
    /**
33
     * Collect configuration data when panel is initialized.
34
     *
35
     * @return void
36
     */
37
    public function initialize(): void
38
    {
39
        $this->_data = ['content' => Configure::read()];
40
    }
41
}
42