Passed
Push — master ( 19e3b7...6548a2 )
by Andreas
23:32
created

midcom_services_rcs_backend_null   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 25%

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 18
ccs 2
cts 8
cp 0.25
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A get_revision() 0 3 1
A load_history() 0 3 1
A test_config() 0 2 1
A update() 0 2 1
1
<?php
2
/**
3
 * @author tarjei huse
4
 * @package midcom.services.rcs
5
 * @copyright The Midgard Project, http://www.midgard-project.org
6
 * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
7
 */
8
9
/**
10
 * @package midcom.services.rcs
11
 */
12
class midcom_services_rcs_backend_null extends midcom_services_rcs_backend
13
{
14 1
    protected function test_config()
15
    {
16 1
    }
17
18
    public function update(string $user_id, string $updatemessage = '')
19
    {
20
    }
21
22
    public function get_revision(string $revision) : array
23
    {
24
        return [];
25
    }
26
27
    protected function load_history() : array
28
    {
29
        return [];
30
    }
31
}
32