@@ -23,7 +23,7 @@ |
||
23 | 23 | |
24 | 24 | define('POLYMORPHIC_ARGUMENT_EXCEPTION', -1); |
25 | 25 | $error['EN'][POLYMORPHIC_ARGUMENT_EXCEPTION] = "Invalid argument pattern for polymorphic function."; |
26 | -$error['FR'][POLYMORPHIC_ARGUMENT_EXCEPTION] = "Modèle inadmissible d'argument pour la fonction polymorphe.". |
|
26 | +$error['FR'][POLYMORPHIC_ARGUMENT_EXCEPTION] = "Modèle inadmissible d'argument pour la fonction polymorphe." . |
|
27 | 27 | $error['DE'][POLYMORPHIC_ARGUMENT_EXCEPTION] = "Unzulässiges Argumentmuster für polymorphe Funktion."; |
28 | 28 | |
29 | 29 | define('ARGUMENT_TYPE_EXCEPTION', -2); |
@@ -293,7 +293,7 @@ |
||
293 | 293 | $calcEngine = \PHPExcel\Calculation::getInstance($worksheet->getParent()); |
294 | 294 | $newDataValues = \PHPExcel\Calculation::unwrapResult( |
295 | 295 | $calcEngine->_calculateFormulaValue( |
296 | - '='.$this->dataSource, |
|
296 | + '=' . $this->dataSource, |
|
297 | 297 | null, |
298 | 298 | $worksheet->getCell('A1') |
299 | 299 | ) |
@@ -196,7 +196,7 @@ |
||
196 | 196 | foreach ($this->getCellList() as $coord) { |
197 | 197 | sscanf($coord, '%[A-Z]%d', $c, $r); |
198 | 198 | $row[$r] = $r; |
199 | - $col[$c] = strlen($c).$c; |
|
199 | + $col[$c] = strlen($c) . $c; |
|
200 | 200 | } |
201 | 201 | if (!empty($row)) { |
202 | 202 | // Determine highest column and row |
@@ -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'); |
@@ -34,10 +34,10 @@ |
||
34 | 34 | $h1Text = $out[1]; |
35 | 35 | $h2Text = (preg_match($h2Pattern, $fileData, $out)) ? $out[1] : ''; |
36 | 36 | |
37 | - echo '<a href="',$exampleFile,'">',$h1Text,'</a><br />'; |
|
37 | + echo '<a href="', $exampleFile, '">', $h1Text, '</a><br />'; |
|
38 | 38 | if (($h2Text > '') && |
39 | 39 | (pathinfo($exampleType, PATHINFO_BASENAME) != 'Calculations')) { |
40 | - echo $h2Text,'<br />'; |
|
40 | + echo $h2Text, '<br />'; |
|
41 | 41 | } |
42 | 42 | } |
43 | 43 | } |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | echo '<b>Custom Properties: </b><br />'; |
42 | 42 | /* Loop through the list of custom properties **/ |
43 | 43 | foreach ($customPropertyList as $customPropertyName) { |
44 | - echo '<b>',$customPropertyName,': </b>'; |
|
44 | + echo '<b>', $customPropertyName, ': </b>'; |
|
45 | 45 | /* Retrieve the property value **/ |
46 | 46 | $propertyValue = $objPHPExcel->getProperties()->getCustomPropertyValue($customPropertyName); |
47 | 47 | /* Retrieve the property type **/ |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | break; |
69 | 69 | } |
70 | 70 | |
71 | - echo $propertyValue,' (',$propertyType,')<br />'; |
|
71 | + echo $propertyValue, ' (', $propertyType, ')<br />'; |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | ?> |
@@ -40,7 +40,7 @@ |
||
40 | 40 | |
41 | 41 | echo '<b>Custom Property names: </b><br />'; |
42 | 42 | foreach ($customPropertyList as $customPropertyName) { |
43 | - echo $customPropertyName,'<br />'; |
|
43 | + echo $customPropertyName, '<br />'; |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | ?> |