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

ClearTagsSelectDataCache   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 4 1
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