Total Complexity | 5 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class SuperClosure |
||
8 | { |
||
9 | /** |
||
10 | * @var null|object |
||
11 | */ |
||
12 | private static $singleton; |
||
13 | |||
14 | /** |
||
15 | * @return Serializer |
||
16 | */ |
||
17 | public static function getInstance() |
||
18 | { |
||
19 | if(is_null(self::$singleton)){ |
||
20 | self::$singleton = new Serializer(); |
||
21 | } |
||
22 | |||
23 | return self::$singleton; |
||
24 | } |
||
25 | |||
26 | public static function get($object) |
||
28 | |||
29 | } |
||
30 | |||
31 | public static function set($data) |
||
38 | }); |
||
39 | } |
||
40 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.