Completed
Push — develop ( f754c8...268fc1 )
by Adrien
21:44
created
src/PhpSpreadsheet/Shared/OLE.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -266,7 +266,7 @@
 block discarded – undo
266 266
     public function _readPpsWks($blockId)
267 267
     {
268 268
         $fh = $this->getStream($blockId);
269
-        for ($pos = 0;; $pos += 128) {
269
+        for ($pos = 0; ; $pos += 128) {
270 270
             fseek($fh, $pos, SEEK_SET);
271 271
             $nameUtf16 = fread($fh, 64);
272 272
             $nameLength = self::_readInt2($fh);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Shared/StringTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/SampleTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
samples/templates/sampleSpreadsheet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Writer/Xls/Font.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -85,9 +85,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
docs/Examples/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,10 +34,10 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
docs/Examples/Reading WorkBook Data/exampleWorkBookReader03.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
68 68
             break;
69 69
     }
70 70
 
71
-    echo $propertyValue,' (',$propertyType,')<br />';
71
+    echo $propertyValue, ' (', $propertyType, ')<br />';
72 72
 }
73 73
 
74 74
 ?>
Please login to merge, or discard this patch.
docs/Examples/Reading WorkBook Data/exampleWorkBookReader02.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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
 ?>
Please login to merge, or discard this patch.
docs/Examples/Reading WorkBook Data/exampleWorkBookReader01.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -37,53 +37,53 @@
 block discarded – undo
37 37
 
38 38
 /*  Read the document's creator property  **/
39 39
 $creator = $objPHPExcel->getProperties()->getCreator();
40
-echo '<b>Document Creator: </b>',$creator,'<br />';
40
+echo '<b>Document Creator: </b>', $creator, '<br />';
41 41
 
42 42
 /*  Read the Date when the workbook was created (as a PHP timestamp value)  **/
43 43
 $creationDatestamp = $objPHPExcel->getProperties()->getCreated();
44 44
 /*  Format the date and time using the standard PHP date() function  **/
45 45
 $creationDate = date('l, d<\s\up>S</\s\up> F Y', $creationDatestamp);
46 46
 $creationTime = date('g:i A', $creationDatestamp);
47
-echo '<b>Created On: </b>',$creationDate,' at ',$creationTime,'<br />';
47
+echo '<b>Created On: </b>', $creationDate, ' at ', $creationTime, '<br />';
48 48
 
49 49
 /*  Read the name of the last person to modify this workbook  **/
50 50
 $modifiedBy = $objPHPExcel->getProperties()->getLastModifiedBy();
51
-echo '<b>Last Modified By: </b>',$modifiedBy,'<br />';
51
+echo '<b>Last Modified By: </b>', $modifiedBy, '<br />';
52 52
 
53 53
 /*  Read the Date when the workbook was last modified (as a PHP timestamp value)  **/
54 54
 $modifiedDatestamp = $objPHPExcel->getProperties()->getModified();
55 55
 /*  Format the date and time using the standard PHP date() function  **/
56 56
 $modifiedDate = date('l, d<\s\up>S</\s\up> F Y', $modifiedDatestamp);
57 57
 $modifiedTime = date('g:i A', $modifiedDatestamp);
58
-echo '<b>Last Modified On: </b>',$modifiedDate,' at ',$modifiedTime,'<br />';
58
+echo '<b>Last Modified On: </b>', $modifiedDate, ' at ', $modifiedTime, '<br />';
59 59
 
60 60
 /*  Read the workbook title property  **/
61 61
 $workbookTitle = $objPHPExcel->getProperties()->getTitle();
62
-echo '<b>Title: </b>',$workbookTitle,'<br />';
62
+echo '<b>Title: </b>', $workbookTitle, '<br />';
63 63
 
64 64
 /*  Read the workbook description property  **/
65 65
 $description = $objPHPExcel->getProperties()->getDescription();
66
-echo '<b>Description: </b>',$description,'<br />';
66
+echo '<b>Description: </b>', $description, '<br />';
67 67
 
68 68
 /*  Read the workbook subject property  **/
69 69
 $subject = $objPHPExcel->getProperties()->getSubject();
70
-echo '<b>Subject: </b>',$subject,'<br />';
70
+echo '<b>Subject: </b>', $subject, '<br />';
71 71
 
72 72
 /*  Read the workbook keywords property  **/
73 73
 $keywords = $objPHPExcel->getProperties()->getKeywords();
74
-echo '<b>Keywords: </b>',$keywords,'<br />';
74
+echo '<b>Keywords: </b>', $keywords, '<br />';
75 75
 
76 76
 /*  Read the workbook category property  **/
77 77
 $category = $objPHPExcel->getProperties()->getCategory();
78
-echo '<b>Category: </b>',$category,'<br />';
78
+echo '<b>Category: </b>', $category, '<br />';
79 79
 
80 80
 /*  Read the workbook company property  **/
81 81
 $company = $objPHPExcel->getProperties()->getCompany();
82
-echo '<b>Company: </b>',$company,'<br />';
82
+echo '<b>Company: </b>', $company, '<br />';
83 83
 
84 84
 /*  Read the workbook manager property  **/
85 85
 $manager = $objPHPExcel->getProperties()->getManager();
86
-echo '<b>Manager: </b>',$manager,'<br />';
86
+echo '<b>Manager: </b>', $manager, '<br />';
87 87
 
88 88
 ?>
89 89
 <body>
Please login to merge, or discard this patch.