XlanguageCorePreload   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 19
rs 10
c 2
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A eventCoreIncludeCommonEnd() 0 3 1
A eventCoreIncludeCommonLanguage() 0 4 1
1
<?php
2
/**
3
 * Extended Language
4
 *
5
 * You may not change or alter any portion of this comment or credits
6
 * of supporting developers from this source code or any supporting source code
7
 * which is considered copyrighted (c) material of the original comment or credit authors.
8
 * This program is distributed in the hope that it will be useful,
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
 *
12
 * @copyright       XOOPS Project (https://xoops.org)
13
 * @license         https://www.gnu.org/licenses/gpl-2.0.html GNU Public License
14
 * @package         xlanguage
15
 * @author          trabis <[email protected]>
16
 */
17
18
/**
19
 * Xlanguage core preloads
20
 *
21
 * @copyright       XOOPS Project (https://xoops.org)
22
 * @license         https://www.gnu.org/licenses/gpl-2.0.html GNU Public License
23
 * @author          trabis <[email protected]>
24
 */
25
class XlanguageCorePreload extends \XoopsPreloadItem
26
{
27
    /**
28
     * @param $args
29
     */
30
    public static function eventCoreIncludeCommonLanguage($args)
0 ignored issues
show
Unused Code introduced by
The parameter $args is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

30
    public static function eventCoreIncludeCommonLanguage(/** @scrutinizer ignore-unused */ $args)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
31
    {
32
        global $xoopsConfig;
33
        require_once \dirname(__DIR__) . '/api.php';
34
    }
35
36
    // to add PSR-4 autoloader
37
38
    /**
39
     * @param $args
40
     */
41
    public static function eventCoreIncludeCommonEnd($args)
0 ignored issues
show
Unused Code introduced by
The parameter $args is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

41
    public static function eventCoreIncludeCommonEnd(/** @scrutinizer ignore-unused */ $args)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
42
    {
43
        require_once __DIR__ . '/autoloader.php';
44
    }
45
}
46