Configurator   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 29
c 1
b 0
f 0
dl 0
loc 39
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 20 1
1
<?php
2
3
namespace XoopsModules\Lexikon\Common;
4
5
/*
6
 You may not change or alter any portion of this comment or credits
7
 of supporting developers from this source code or any supporting source code
8
 which is considered copyrighted (c) material of the original comment or credit authors.
9
10
 This program is distributed in the hope that it will be useful,
11
 but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
 */
14
15
16
17
/**
18
 * Configurator Class
19
 *
20
 * @copyright   XOOPS Project (https://xoops.org)
21
 * @license     http://www.fsf.org/copyleft/gpl.html GNU public license
22
 * @author      XOOPS Development Team
23
 */
24
25
/**
26
 * Class Configurator
27
 */
28
class Configurator
29
{
30
    public $name;
31
    public $paths           = [];
32
    public $uploadFolders   = [];
33
    public $copyBlankFiles  = [];
34
    public $copyTestFolders = [];
35
    public $templateFolders = [];
36
    public $oldFiles        = [];
37
    public $oldFolders      = [];
38
    public $renameTables    = [];
39
    public $renameColumns   = [];
40
    public $moduleStats     = [];
41
    public $modCopyright;
42
    public $icons;
43
44
    /**
45
     * Configurator constructor.
46
     */
47
    public function __construct()
48
    {
49
50
        $config = require \dirname(__DIR__, 2) . '/config/config.php';
51
52
        $this->name            = $config->name;
53
        $this->paths           = $config->paths;
54
        $this->uploadFolders   = $config->uploadFolders;
55
        $this->copyBlankFiles  = $config->copyBlankFiles;
56
        $this->copyTestFolders = $config->copyTestFolders;
57
        $this->templateFolders = $config->templateFolders;
58
        $this->oldFiles        = $config->oldFiles;
59
        $this->oldFolders      = $config->oldFolders;
60
        $this->renameTables    = $config->renameTables;
61
        $this->renameColumns   = $config->renameColumns;
62
        $this->moduleStats     = $config->moduleStats;
63
        $this->modCopyright    = $config->modCopyright;
64
65
        $this->icons = include \dirname(__DIR__, 2) . '/config/icons.php';
66
        $this->paths = include \dirname(__DIR__, 2) . '/config/paths.php';
67
68
    }
69
}
70