Cache   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 3
dl 0
loc 7
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 4 1
1
<?php
2
3
namespace Basis\Job\Tarantool;
4
5
use Basis\Cache as CacheComponent;
6
use Basis\Filesystem;
7
use Basis\Job;
8
use Tarantool\Mapper\Mapper;
9
10
class Cache extends Job
11
{
12 1
    public function run(Mapper $mapper, Filesystem $fs, CacheComponent $cache)
0 ignored issues
show
Unused Code introduced by
The parameter $fs 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...
13
    {
14 1
        $cache->set('mapper-meta', $mapper->getMeta());
15 1
    }
16
}
17