Configurator   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 19 1
1
<?php
2
3
namespace XoopsModules\Xlanguage\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
        $config = require \dirname(__DIR__, 2) . '/config/config.php';
50
51
        $this->name = $config->name;
52
        //        $this->paths           = $config->paths;
53
        $this->uploadFolders   = $config->uploadFolders;
54
        $this->copyBlankFiles  = $config->copyBlankFiles;
55
        $this->copyTestFolders = $config->copyTestFolders;
56
        $this->templateFolders = $config->templateFolders;
57
        $this->oldFiles        = $config->oldFiles;
58
        $this->oldFolders      = $config->oldFolders;
59
        $this->renameTables    = $config->renameTables;
60
        $this->renameColumns   = $config->renameColumns;
61
        $this->moduleStats     = $config->moduleStats;
62
        $this->modCopyright    = $config->modCopyright;
63
64
        $this->paths = require \dirname(__DIR__, 2) . '/config/paths.php';
65
        $this->icons = require \dirname(__DIR__, 2) . '/config/icons.php';
66
    }
67
}
68
69