Completed
Push — master ( bcac64...9b6ee4 )
by Nassif
11:39
created

Styles   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 83
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 7
lcom 0
cbo 0
dl 0
loc 83
ccs 0
cts 14
cp 0
rs 10
c 0
b 0
f 0

7 Methods

Rating   Name   Duplication   Size   Complexity  
A translationsHeader() 0 13 1
A fullKeyColumn() 0 13 1
A lockedTranslationsColumns() 0 13 1
A translationsColumns() 0 14 1
A metaColumns() 0 13 1
A translationSheetTabColor() 0 4 1
A metaSheetTabColor() 0 4 1
1
<?php
2
3
namespace Nikaia\TranslationSheet\Sheet;
4
5
class Styles
6
{
7
    public function translationsHeader()
8
    {
9
        return [
10
            'backgroundColor' => '#546E7A',
11
            'foregroundColor' => '#ffffff',
12
            'fontSize' => 10,
13
            'fontFamily' => 'Droid Serif',
14
            'bold' => true,
15
            'horizontalAlignment' => 'LEFT',
16
            'verticalAlignment' => 'MIDDLE',
17
            'hyperlinkDisplayType' => 'PLAIN_TEXT',
18
        ];
19
    }
20
21
    public function fullKeyColumn()
22
    {
23
        return [
24
            'backgroundColor' => '#E1F5FE',
25
            'foregroundColor' => '#9E9E9E',
26
            'fontSize' => 9,
27
            'fontFamily' => 'Consolas',
28
            'bold' => false,
29
            'horizontalAlignment' => 'LEFT',
30
            'verticalAlignment' => 'MIDDLE',
31
            'hyperlinkDisplayType' => 'PLAIN_TEXT',
32
        ];
33
    }
34
35
    public function lockedTranslationsColumns()
36
    {
37
        return [
38
            'backgroundColor' => '#ffe1e1',
39
            'foregroundColor' => '#000000',
40
            'fontSize' => 9,
41
            'fontFamily' => 'Consolas',
42
            'bold' => false,
43
            'horizontalAlignment' => 'LEFT',
44
            'verticalAlignment' => 'MIDDLE',
45
            'hyperlinkDisplayType' => 'PLAIN_TEXT',
46
        ];
47
    }
48
49
    public function translationsColumns()
50
    {
51
        return [
52
            'backgroundColor' => '#ffffff',
53
            'foregroundColor' => '#000000',
54
            'fontSize' => 9,
55
            'fontFamily' => 'Droid Serif',
56
            'bold' => false,
57
            'horizontalAlignment' => 'LEFT',
58
            'verticalAlignment' => 'MIDDLE',
59
            'wrapStrategy' => 'WRAP',
60
            'hyperlinkDisplayType' => 'PLAIN_TEXT',
61
        ];
62
    }
63
64
    public function metaColumns()
65
    {
66
        return [
67
            'backgroundColor' => '#ededed',
68
            'foregroundColor' => '#9E9E9E',
69
            'fontSize' => 8,
70
            'fontFamily' => 'Ubuntu',
71
            'bold' => false,
72
            'horizontalAlignment' => 'LEFT',
73
            'verticalAlignment' => 'MIDDLE',
74
            'hyperlinkDisplayType' => 'PLAIN_TEXT',
75
        ];
76
    }
77
78
    public function translationSheetTabColor()
79
    {
80
        return '#546E7A';
81
    }
82
83
    public function metaSheetTabColor()
84
    {
85
        return [0, 188, 212];
86
    }
87
}
88