@@ -65,7 +65,7 @@ |
||
65 | 65 | public function testGetCurrencyCode() |
66 | 66 | { |
67 | 67 | $localeconv = localeconv(); |
68 | - $expectedResult = (!empty($localeconv['currency_symbol']) ? $localeconv['currency_symbol'] : (!empty($localeconv['int_curr_symbol']) ? $localeconv['int_curr_symbol']: '$')); |
|
68 | + $expectedResult = (!empty($localeconv['currency_symbol']) ? $localeconv['currency_symbol'] : (!empty($localeconv['int_curr_symbol']) ? $localeconv['int_curr_symbol'] : '$')); |
|
69 | 69 | $result = call_user_func([StringHelper::class, 'getCurrencyCode']); |
70 | 70 | $this->assertEquals($expectedResult, $result); |
71 | 71 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | public function testSample($sample) |
13 | 13 | { |
14 | 14 | // Suppress output to console |
15 | - $this->setOutputCallback(function () { |
|
15 | + $this->setOutputCallback(function() { |
|
16 | 16 | }); |
17 | 17 | |
18 | 18 | require $sample; |
@@ -96,7 +96,7 @@ |
||
96 | 96 | // Merge cells |
97 | 97 | $helper->log('Merge cells'); |
98 | 98 | $spreadsheet->getActiveSheet()->mergeCells('A18:E22'); |
99 | -$spreadsheet->getActiveSheet()->mergeCells('A28:B28'); // Just to test... |
|
99 | +$spreadsheet->getActiveSheet()->mergeCells('A28:B28'); // Just to test... |
|
100 | 100 | $spreadsheet->getActiveSheet()->unmergeCells('A28:B28'); // Just to test... |
101 | 101 | // Protect cells |
102 | 102 | $helper->log('Protect cells'); |
@@ -85,9 +85,9 @@ discard block |
||
85 | 85 | $bFamily = 0; // Font family |
86 | 86 | $bCharSet = \PHPExcel\Shared\Font::getCharsetFromFontName($this->font->getName()); // Character set |
87 | 87 | |
88 | - $record = 0x31; // Record identifier |
|
89 | - $reserved = 0x00; // Reserved |
|
90 | - $grbit = 0x00; // Font attributes |
|
88 | + $record = 0x31; // Record identifier |
|
89 | + $reserved = 0x00; // Reserved |
|
90 | + $grbit = 0x00; // Font attributes |
|
91 | 91 | if ($this->font->getItalic()) { |
92 | 92 | $grbit |= 0x02; |
93 | 93 | } |
@@ -134,9 +134,9 @@ discard block |
||
134 | 134 | private static function mapBold($bold) |
135 | 135 | { |
136 | 136 | if ($bold) { |
137 | - return 0x2BC; // 700 = Bold font weight |
|
137 | + return 0x2BC; // 700 = Bold font weight |
|
138 | 138 | } |
139 | - return 0x190; // 400 = Normal font weight |
|
139 | + return 0x190; // 400 = Normal font weight |
|
140 | 140 | } |
141 | 141 | |
142 | 142 | /** |