@@ -46,18 +46,18 @@ |
||
46 | 46 | echo date('H:i:s') , " Set document properties" , EOL; |
47 | 47 | $objPhpSpreadsheet->getProperties()->setCreator("Maarten Balliauw") |
48 | 48 | ->setLastModifiedBy("Maarten Balliauw") |
49 | - ->setTitle("Office 2007 XLSX Test Document") |
|
50 | - ->setSubject("Office 2007 XLSX Test Document") |
|
51 | - ->setDescription("Test document for Office 2007 XLSX, generated using PHP classes.") |
|
52 | - ->setKeywords("office 2007 openxml php") |
|
53 | - ->setCategory("Test result file"); |
|
49 | + ->setTitle("Office 2007 XLSX Test Document") |
|
50 | + ->setSubject("Office 2007 XLSX Test Document") |
|
51 | + ->setDescription("Test document for Office 2007 XLSX, generated using PHP classes.") |
|
52 | + ->setKeywords("office 2007 openxml php") |
|
53 | + ->setCategory("Test result file"); |
|
54 | 54 | |
55 | 55 | |
56 | 56 | // Add some data, we will use printing features |
57 | 57 | echo date('H:i:s') , " Add some data" , EOL; |
58 | 58 | for ($i = 1; $i < 200; $i++) { |
59 | - $objPhpSpreadsheet->getActiveSheet()->setCellValue('A' . $i, $i); |
|
60 | - $objPhpSpreadsheet->getActiveSheet()->setCellValue('B' . $i, 'Test value'); |
|
59 | + $objPhpSpreadsheet->getActiveSheet()->setCellValue('A' . $i, $i); |
|
60 | + $objPhpSpreadsheet->getActiveSheet()->setCellValue('B' . $i, 'Test value'); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | // Set header and footer. When no different headers for odd/even are used, odd header is assumed. |
@@ -43,12 +43,12 @@ |
||
43 | 43 | // Set document properties |
44 | 44 | echo date('H:i:s') , " Set document properties" , EOL; |
45 | 45 | $objPhpSpreadsheet->getProperties()->setCreator("Maarten Balliauw") |
46 | - ->setLastModifiedBy("Maarten Balliauw") |
|
47 | - ->setTitle("PhpSpreadsheet Test Document") |
|
48 | - ->setSubject("PhpSpreadsheet Test Document") |
|
49 | - ->setDescription("Test document for PhpSpreadsheet, generated using PHP classes.") |
|
50 | - ->setKeywords("office PhpSpreadsheet php") |
|
51 | - ->setCategory("Test result file"); |
|
46 | + ->setLastModifiedBy("Maarten Balliauw") |
|
47 | + ->setTitle("PhpSpreadsheet Test Document") |
|
48 | + ->setSubject("PhpSpreadsheet Test Document") |
|
49 | + ->setDescription("Test document for PhpSpreadsheet, generated using PHP classes.") |
|
50 | + ->setKeywords("office PhpSpreadsheet php") |
|
51 | + ->setCategory("Test result file"); |
|
52 | 52 | |
53 | 53 | |
54 | 54 | // Add some data |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | date_default_timezone_set('Europe/London'); |
32 | 32 | |
33 | 33 | if (PHP_SAPI == 'cli') |
34 | - die('This example should only be run from a Web Browser'); |
|
34 | + die('This example should only be run from a Web Browser'); |
|
35 | 35 | |
36 | 36 | /** Include PhpSpreadsheet */ |
37 | 37 | require_once dirname(__FILE__) . '/../src/Bootstrap.php'; |
@@ -42,12 +42,12 @@ discard block |
||
42 | 42 | |
43 | 43 | // Set document properties |
44 | 44 | $objPhpSpreadsheet->getProperties()->setCreator("Maarten Balliauw") |
45 | - ->setLastModifiedBy("Maarten Balliauw") |
|
46 | - ->setTitle("Office 2007 XLSX Test Document") |
|
47 | - ->setSubject("Office 2007 XLSX Test Document") |
|
48 | - ->setDescription("Test document for Office 2007 XLSX, generated using PHP classes.") |
|
49 | - ->setKeywords("office 2007 openxml php") |
|
50 | - ->setCategory("Test result file"); |
|
45 | + ->setLastModifiedBy("Maarten Balliauw") |
|
46 | + ->setTitle("Office 2007 XLSX Test Document") |
|
47 | + ->setSubject("Office 2007 XLSX Test Document") |
|
48 | + ->setDescription("Test document for Office 2007 XLSX, generated using PHP classes.") |
|
49 | + ->setKeywords("office 2007 openxml php") |
|
50 | + ->setCategory("Test result file"); |
|
51 | 51 | |
52 | 52 | |
53 | 53 | // Add some data |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | date_default_timezone_set('Europe/London'); |
32 | 32 | |
33 | 33 | if (PHP_SAPI == 'cli') |
34 | - die('This example should only be run from a Web Browser'); |
|
34 | + die('This example should only be run from a Web Browser'); |
|
35 | 35 | |
36 | 36 | /** Include PhpSpreadsheet */ |
37 | 37 | require_once dirname(__FILE__) . '/../src/Bootstrap.php'; |
@@ -42,12 +42,12 @@ discard block |
||
42 | 42 | |
43 | 43 | // Set document properties |
44 | 44 | $objPhpSpreadsheet->getProperties()->setCreator("Maarten Balliauw") |
45 | - ->setLastModifiedBy("Maarten Balliauw") |
|
46 | - ->setTitle("Office 2007 XLSX Test Document") |
|
47 | - ->setSubject("Office 2007 XLSX Test Document") |
|
48 | - ->setDescription("Test document for Office 2007 XLSX, generated using PHP classes.") |
|
49 | - ->setKeywords("office 2007 openxml php") |
|
50 | - ->setCategory("Test result file"); |
|
45 | + ->setLastModifiedBy("Maarten Balliauw") |
|
46 | + ->setTitle("Office 2007 XLSX Test Document") |
|
47 | + ->setSubject("Office 2007 XLSX Test Document") |
|
48 | + ->setDescription("Test document for Office 2007 XLSX, generated using PHP classes.") |
|
49 | + ->setKeywords("office 2007 openxml php") |
|
50 | + ->setCategory("Test result file"); |
|
51 | 51 | |
52 | 52 | |
53 | 53 | // Add some data |
@@ -18,11 +18,11 @@ |
||
18 | 18 | ->getMock(); |
19 | 19 | |
20 | 20 | $this->mockWorksheet->expects($this->any()) |
21 | - ->method('getHighestColumn') |
|
22 | - ->will($this->returnValue('E')); |
|
21 | + ->method('getHighestColumn') |
|
22 | + ->will($this->returnValue('E')); |
|
23 | 23 | $this->mockWorksheet->expects($this->any()) |
24 | - ->method('current') |
|
25 | - ->will($this->returnValue($this->mockColumn)); |
|
24 | + ->method('current') |
|
25 | + ->will($this->returnValue($this->mockColumn)); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 |
@@ -18,11 +18,11 @@ |
||
18 | 18 | ->getMock(); |
19 | 19 | |
20 | 20 | $this->mockWorksheet->expects($this->any()) |
21 | - ->method('getHighestColumn') |
|
22 | - ->will($this->returnValue('E')); |
|
21 | + ->method('getHighestColumn') |
|
22 | + ->will($this->returnValue('E')); |
|
23 | 23 | $this->mockWorksheet->expects($this->any()) |
24 | - ->method('getCellByColumnAndRow') |
|
25 | - ->will($this->returnValue($this->mockCell)); |
|
24 | + ->method('getCellByColumnAndRow') |
|
25 | + ->will($this->returnValue($this->mockCell)); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 |
@@ -18,11 +18,11 @@ |
||
18 | 18 | ->getMock(); |
19 | 19 | |
20 | 20 | $this->mockWorksheet->expects($this->any()) |
21 | - ->method('getHighestRow') |
|
22 | - ->will($this->returnValue(5)); |
|
21 | + ->method('getHighestRow') |
|
22 | + ->will($this->returnValue(5)); |
|
23 | 23 | $this->mockWorksheet->expects($this->any()) |
24 | - ->method('getCellByColumnAndRow') |
|
25 | - ->will($this->returnValue($this->mockCell)); |
|
24 | + ->method('getCellByColumnAndRow') |
|
25 | + ->will($this->returnValue($this->mockCell)); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | { |
114 | 114 | $attributeSet = ['val' => 100, |
115 | 115 | 'maxVal' => 200, |
116 | - ]; |
|
116 | + ]; |
|
117 | 117 | |
118 | 118 | // Setters return the instance to implement the fluent interface |
119 | 119 | $result = $this->testAutoFilterColumnObject->setAttributes($attributeSet); |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | { |
125 | 125 | $attributeSet = ['val' => 100, |
126 | 126 | 'maxVal' => 200, |
127 | - ]; |
|
127 | + ]; |
|
128 | 128 | |
129 | 129 | $this->testAutoFilterColumnObject->setAttributes($attributeSet); |
130 | 130 | |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | { |
138 | 138 | $attributeSet = ['val' => 100, |
139 | 139 | 'maxVal' => 200, |
140 | - ]; |
|
140 | + ]; |
|
141 | 141 | |
142 | 142 | foreach ($attributeSet as $attributeName => $attributeValue) { |
143 | 143 | // Setters return the instance to implement the fluent interface |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | { |
151 | 151 | $attributeSet = ['val' => 100, |
152 | 152 | 'maxVal' => 200, |
153 | - ]; |
|
153 | + ]; |
|
154 | 154 | |
155 | 155 | $this->testAutoFilterColumnObject->setAttributes($attributeSet); |
156 | 156 |
@@ -18,11 +18,11 @@ |
||
18 | 18 | ->getMock(); |
19 | 19 | |
20 | 20 | $this->mockWorksheet->expects($this->any()) |
21 | - ->method('getHighestRow') |
|
22 | - ->will($this->returnValue(5)); |
|
21 | + ->method('getHighestRow') |
|
22 | + ->will($this->returnValue(5)); |
|
23 | 23 | $this->mockWorksheet->expects($this->any()) |
24 | - ->method('current') |
|
25 | - ->will($this->returnValue($this->mockRow)); |
|
24 | + ->method('current') |
|
25 | + ->will($this->returnValue($this->mockRow)); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 |