Utility   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getInstance() 0 9 2
1
<?php
2
3
namespace XoopsModules\Smallworld;
4
5
/**
6
 * Class Utility
7
 */
8
class Utility extends Common\SysUtility
9
{
10
    //--------------- Custom module methods -----------------------------
11
12
    /**
13
     * Access the only instance of this class
14
     *
15
     * @return object
16
     */
17
    public static function getInstance()
18
    {
19
        static $instance;
20
        if (null === $instance) {
21
            $instance = new static();
22
        }
23
24
        return $instance;
25
    }
26
}
27