AbstractFilter   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A keepWord() 0 4 1
A filterWord() 0 4 1
1
<?php
2
/**
3
 * This file is part of the sixty-nine/word-cloud.
4
 * Copyright (c) 2010-2016 Daniele Barsotti<[email protected]>
5
 */
6
7
namespace SixtyNine\Cloud\Filters;
8
9
abstract class AbstractFilter implements FilterInterface
10
{
11
    /** {@inheritdoc} */
12 25
    public function keepWord($word)
13
    {
14 25
        return true;
15
    }
16
17
    /** {@inheritdoc} */
18 11
    public function filterWord($word)
19
    {
20 11
        return $word;
21
    }
22
}
23