Completed
Push — master ( befab8...0495c3 )
by Timo
02:25
created

LaravelDriver   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDriverConfig() 0 5 1
1
<?php
2
3
namespace hamburgscleanest\GuzzleAdvancedThrottle\Cache\Drivers;
4
5
6
/**
7
 * Class LaravelDriver
8
 * @package hamburgscleanest\GuzzleAdvancedThrottle\Cache\Drivers
9
 */
10
class LaravelDriver
11
{
12
13
14
    /**
15
     * @param string $driver
16
     * @param array $options
17
     * @return array
18
     */
19 5
    public static function getDriverConfig(string $driver, array $options) : array
20
    {
21
        return [
22 5
            'cache.default'           => $driver,
23 5
            'cache.stores.' . $driver => ['driver' => $driver] + $options
24
        ];
25
    }
26
}