Cache   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 33.33%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A clean() 0 4 1
1
<?php
2
/**
3
 * Cache.php
4
 *
5
 * @copyright      More in license.md
6
 * @license        https://www.ipublikuj.eu
7
 * @author         Adam Kadlec <[email protected]>
8
 * @package        iPublikuj:Gravatar!
9
 * @subpackage     Caching
10
 * @since          1.0.0
11
 *
12
 * @date           10.03.15
13
 */
14
15
declare(strict_types = 1);
16
17
namespace IPub\Gravatar\Caching;
18
19
use Nette\Caching;
20
21
/**
22
 * Loaded gravatar cache
23
 *
24
 * @package        iPublikuj:Gravatar!
25
 * @subpackage     Caching
26
 *
27
 * @author         Adam Kadlec <[email protected]>
28
 */
29 1
final class Cache extends Caching\Cache
30
{
31
	/**
32
	 * Remove all items cached by extension
33
	 *
34
	 * @param array $conditions
35
	 *
36
	 * @return void
37
	 */
38
	public function clean(array $conditions = NULL) : void
39
	{
40
		parent::clean([self::TAGS => ['ipub.gravatar']]);
41
	}
42
}
43