Plugin::loadedAppPlugins()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 11
nc 1
nop 0
dl 0
loc 15
rs 9.9
c 0
b 0
f 0
1
<?php
2
/**
3
 * BEdita, API-first content management framework
4
 * Copyright 2019 ChannelWeb Srl, Chialab Srl
5
 *
6
 * This file is part of BEdita: you can redistribute it and/or modify
7
 * it under the terms of the GNU Lesser General Public License as published
8
 * by the Free Software Foundation, either version 3 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * See LICENSE.LGPL or <http://gnu.org/licenses/lgpl-3.0.html> for more details.
12
 */
13
14
namespace App;
15
16
use Cake\Core\Plugin as CakePlugin;
17
18
/**
19
 * {@inheritDoc}
20
 *
21
 * Extended with BEdita plugins utilities
22
 *
23
 * @codeCoverageIgnore
24
 */
25
class Plugin extends CakePlugin
26
{
27
    /**
28
     * Loaded BEdita Manager application plugins
29
     * Auxiliary & internally loaded plugins like `DebugKit`, `Bake` and `TwigView` are exluded
30
     *
31
     * @return array
32
     */
33
    public static function loadedAppPlugins(): array
34
    {
35
        $sysPlugins = [
36
            'Authentication',
37
            'Bake',
38
            'DebugKit',
39
            'IdeHelper',
40
            'Cake/Repl',
41
            'BEdita/WebTools',
42
            'BEdita/I18n',
43
            'Migrations',
44
            'Cake/TwigView',
45
        ];
46
47
        return array_values(array_diff(static::loaded(), $sysPlugins));
48
    }
49
}
50