Passed
Pull Request — master (#2)
by Michael
02:17
created

Utility   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 5
c 1
b 0
f 0
dl 0
loc 17
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getInstance() 0 8 2
1
<?php
2
3
namespace XoopsModules\Groupmanager;
4
5
/*
6
 Utility Class Definition
7
8
 You may not change or alter any portion of this comment or credits of
9
 supporting developers from this source code or any supporting source code
10
 which is considered copyrighted (c) material of the original comment or credit
11
 authors.
12
13
 This program is distributed in the hope that it will be useful, but
14
 WITHOUT ANY WARRANTY; without even the implied warranty of
15
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
 */
17
/**
18
 * @package      \module\xsitemap\class
19
 * @license      https://www.fsf.org/copyleft/gpl.html GNU public license
20
 * @copyright    https://xoops.org 2000-2020 &copy; XOOPS Project
21
 * @author       Mamba <[email protected]>
22
 */
23
24
/**
25
 * Class Utility
26
 */
27
class Utility extends Common\SysUtility
28
{
29
    //--------------- Custom module methods -----------------------------
30
31
    /**
32
     * Access the only instance of this class
33
     *
34
     * @return object
35
     */
36
    public static function getInstance()
37
    {
38
        static $instance;
39
        if (null === $instance) {
40
            $instance = new static();
41
        }
42
43
        return $instance;
44
    }
45
}
46