Completed
Push — master ( 8c66d9...9360f0 )
by Hannes
01:59
created

RewriterFactory::createPreprocessors()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
crap 1
1
<?php
2
3
namespace byrokrat\banking\Rewriter;
4
5
/**
6
 * Create standard sets of preprocessors and rewrites
7
 */
8
class RewriterFactory
9
{
10 100
    public function createPreprocessors()
11
    {
12
        return [
13 100
            new NonDigitRemovingRewriter,
14 100
            new LeftTrimRewriter
15
        ];
16
    }
17
18 100
    public function createRewrites()
19
    {
20
        return [
21 100
            new SwedbankCheckDigitRewriter
22
        ];
23
    }
24
}
25