Completed
Push — master ( 04839b...f87650 )
by Dmitry
03:31
created

Cache::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 3
crap 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 4
    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 4
        $cache->set('mapper-meta', $mapper->getMeta());
15 4
    }
16
}
17