Test Failed
Push — master ( e299fb...38e963 )
by Pol
06:27
created

NGramsCyclic   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A ngrams() 0 4 1
1
<?php
2
3
namespace drupol\phpngrams;
4
5
class NGramsCyclic extends AbstractNGrams
6
{
7
    /**
8
     * @param $data
9
     * @param $n
10
     *
11
     * @return bool|\Generator
12
     */
13 6
    public function ngrams($data, $n)
0 ignored issues
show
Comprehensibility introduced by
Avoid variables with short names like $n. Configured minimum length is 3.

Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.

Loading history...
14
    {
15 6
        return $this->ngramsFactory($data, $n, true);
16
    }
17
}
18