Completed
Push — master ( f90be5...f5f5c6 )
by ARCANEDEV
17s
created

ClearTagsSelectDataCache::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php namespace Arcanesoft\Blog\Listeners\Tags;
2
3
use Arcanesoft\Blog\Events\Tags\AbstractTagEvent;
4
use Arcanesoft\Blog\Models\Tag;
5
6
/**
7
 * Class     ClearTagsSelectDataCache
8
 *
9
 * @package  Arcanesoft\Blog\Listeners\Tags
10
 * @author   ARCANEDEV <[email protected]>
11
 */
12
class ClearTagsSelectDataCache
13
{
14
    /* -----------------------------------------------------------------
15
     |  Main Methods
16
     | -----------------------------------------------------------------
17
     */
18
19
    /**
20
     * Handle the event.
21
     *
22
     * @param  \Arcanesoft\Blog\Events\Tags\AbstractTagEvent  $event
23
     */
24
    public function handle(AbstractTagEvent $event)
0 ignored issues
show
Unused Code introduced by
The parameter $event 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...
25
    {
26
        cache()->forget(Tag::SELECT_CACHE_NAME);
27
    }
28
}
29