StrongAlphanumeric::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 8
Ratio 100 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 8
loc 8
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace DeGraciaMathieu\Riddler\Formats;
4
5
use DeGraciaMathieu\Riddler\Occurrences;
6
use DeGraciaMathieu\Riddler\Dictionaries;
7
use DeGraciaMathieu\Riddler\Contracts\Format;
8
9 View Code Duplication
class StrongAlphanumeric implements Format
10
{
11 1
    public function handle()
12
    {
13
        return [
14 1
            [new Dictionaries\Digit(), new Occurrences\Strict(10)],
15 1
            [new Dictionaries\Letter(), new Occurrences\Strict(10)],
16 1
            [new Dictionaries\UppercaseLetter(), new Occurrences\Strict(10)]
17 1
        ];
18
    }
19
}
20