Passed
Push — master ( d74703...28a6a0 )
by Roman
02:05
created

UnicodeFormater::__construct()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 26
Code Lines 24

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 25
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 26
ccs 25
cts 25
cp 1
rs 8.8571
c 0
b 0
f 0
cc 1
eloc 24
nc 1
nop 0
crap 1
1
<?php
2
3
namespace ToolkitLab\ASCII\Formater;
4
5
class UnicodeFormater extends AbstractFormater
6
{
7 4
    public function __construct()
8
    {
9 4
        $this->metadata = [
10 4
            "name"=> "Unicode",
11 4
            "useHeader"=>true,
12 4
            "useFooter"=> true,
13 4
            "isSeparated"=> false,
14 4
            "BL" => json_decode('"\u2551"'),
15 4
            "BR" => json_decode('"\u2551"'),
16 4
            "BM" => json_decode('"\u2551"'),
17 4
            "HBL" => json_decode('"\u2554"'),
18 4
            "HBR" => json_decode('"\u2557"'),
19 4
            "HBM" => json_decode('"\u2566"'),
20 4
            "HPAD" => json_decode('"\u2550"'),
21 4
            "H2BL" => json_decode('"\u2560"'),
22 4
            "H2BR" => json_decode('"\u2563"'),
23 4
            "H2BM" => json_decode('"\u256C"'),
24 4
            "H2PAD" => json_decode('"\u2550"'),
25 4
            "BBL" => json_decode('"\u2551"'),
26 4
            "BBR" => json_decode('"\u2551"'),
27 4
            "BBM" => json_decode('"\u2551"'),
28 4
            "BPAD" => json_decode('"\u2550"'),
29 4
            "FBL" => json_decode('"\u255A"'),
30 4
            "FBR" => json_decode('"\u255D"'),
31 4
            "FBM" => json_decode('"\u2569"'),
32 4
            "FPAD" => json_decode('"\u2550"')
33 4
        ];
34
    }
35
}