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

NGramsCyclic::ngrams()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
nc 1
cc 1
eloc 2
nop 2
crap 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