Passed
Push — master ( cd7c70...ed4c81 )
by DeGracia
01:50
created

SmallAlphanumeric::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 8
Ratio 100 %

Importance

Changes 0
Metric Value
dl 8
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace DeGraciaMathieu\Riddler\Formats;
4
5
use DeGraciaMathieu\Riddler\Criterias;
6
use DeGraciaMathieu\Riddler\Occurences;
7
use DeGraciaMathieu\Riddler\Contracts\Format;
8
9 View Code Duplication
class SmallAlphanumeric implements Format
1 ignored issue
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
10
{
11
    public function handle()
12
    {
13
        return [
14
            [new Criterias\Digit(), new Occurences\Strict(2)],
15
            [new Criterias\Letter(), new Occurences\Strict(2)],
16
            [new Criterias\UppercaseLetter(), new Occurences\Strict(2)]
17
        ];
18
    }
19
}
20
21