GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Dummy   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 72
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 72
ccs 0
cts 13
cp 0
rs 10
wmc 6
lcom 0
cbo 1

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A get() 0 4 1
A set() 0 4 1
A delete() 0 4 1
A clear() 0 4 1
A isSupported() 0 4 1
1
<?php
2
/**
3
 * Kotori.php
4
 *
5
 * A Tiny Model-View-Controller PHP Framework
6
 *
7
 * This content is released under the Apache 2 License
8
 *
9
 * Copyright (c) 2015-2017 Kotori Technology. All rights reserved.
10
 *
11
 * Licensed under the Apache License, Version 2.0 (the "License");
12
 * you may not use this file except in compliance with the License.
13
 * You may obtain a copy of the License at
14
 *
15
 *     http://www.apache.org/licenses/LICENSE-2.0
16
 *
17
 * Unless required by applicable law or agreed to in writing, software
18
 * distributed under the License is distributed on an "AS IS" BASIS,
19
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
 * See the License for the specific language governing permissions and
21
 * limitations under the License.
22
 */
23
24
/**
25
 * Dummy Caching Class
26
 *
27
 * @package     Kotori
28
 * @subpackage  Cache
29
 * @author      Kokororin
30
 * @link        https://kotori.love
31
 */
32
33
namespace Kotori\Core\Cache;
34
35
use Kotori\Debug\Hook;
36
37
class Dummy
38
{
39
40
    /**
41
     * Class constructor
42
     *
43
     * Setup Memcache(d)
44
     */
45
    public function __construct()
46
    {
47
        Hook::listen(__CLASS__);
48
    }
49
50
    /**
51
     * Get
52
     *
53
     * Since this is the dummy class, it's always going to return FALSE.
54
     *
55
     * @param   string  $key
56
     * @return  boolean
57
     */
58
    public function get($key)
0 ignored issues
show
Unused Code introduced by
The parameter $key is not used and could be removed.

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

Loading history...
59
    {
60
        return false;
61
    }
62
63
    /**
64
     * Cache Set
65
     *
66
     * @param   string  $key
67
     * @param   mixed   $value
68
     * @param   int     $ttl
69
     * @param   boolean $raw
70
     * @return  boolean
71
     */
72
    public function set($key, $value, $ttl = 60, $raw = false)
0 ignored issues
show
Unused Code introduced by
The parameter $key is not used and could be removed.

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

Loading history...
Unused Code introduced by
The parameter $value is not used and could be removed.

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

Loading history...
Unused Code introduced by
The parameter $ttl is not used and could be removed.

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

Loading history...
Unused Code introduced by
The parameter $raw is not used and could be removed.

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

Loading history...
73
    {
74
        return true;
75
    }
76
77
    /**
78
     * Delete from Cache
79
     *
80
     * @param   mixed   $key
81
     * @return  boolean
82
     */
83
    public function delete($key)
0 ignored issues
show
Unused Code introduced by
The parameter $key is not used and could be removed.

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

Loading history...
84
    {
85
        return true;
86
    }
87
88
    /**
89
     * Clean the cache
90
     *
91
     * @return boolean
92
     */
93
    public function clear()
94
    {
95
        return true;
96
    }
97
98
    /**
99
     * Is this caching driver supported on the system?
100
     * Of course this one is.
101
     *
102
     * @return boolean
103
     */
104
    public function isSupported()
105
    {
106
        return true;
107
    }
108
}
109