Passed
Push — master ( 77f10d...b1f89f )
by Michael
03:06
created

XoositemapPreload   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A eventCoreIncludeCommonEnd() 0 3 1
1
<?php
2
/**
3
 * Xoositemap module
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       The XOOPS Project http://sourceforge.net/projects/xoops/
13
 * @license         GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
14
 * @package         Xoositemap
15
 * @since           2.6.0
16
 * @author          Laurent JEN (Aka DuGris)
17
 * @version         $Id: core.php 1342 2012-12-18 12:09:50Z DuGris $
18
 */
19
use Xoops\Core\PreloadItem;
0 ignored issues
show
Bug introduced by
The type Xoops\Core\PreloadItem was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
20
21
/**
22
 * Class XoositemapPreload
23
 */
24
class XoositemapPreload extends PreloadItem
25
{
26
    /**
27
     * @param $args
28
     */
29
    public static function eventCoreIncludeCommonEnd($args)
30
    {
31
        require_once __DIR__ . '/autoloader.php';
32
    }
33
}
34