Completed
Push — develop ( e6bbc4...3851aa )
by Adrien
23:49
created
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.
docs/Examples/Reading WorkBook Data/exampleWorkBookReader04.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,13 +38,13 @@
 block discarded – undo
38 38
 echo 'Reading the number of Worksheets in the WorkBook<br />';
39 39
 /*  Use the PHPExcel object's getSheetCount() method to get a count of the number of WorkSheets in the WorkBook  */
40 40
 $sheetCount = $objPHPExcel->getSheetCount();
41
-echo 'There ',(($sheetCount == 1) ? 'is' : 'are'),' ',$sheetCount,' WorkSheet',(($sheetCount == 1) ? '' : 's'),' in the WorkBook<br /><br />';
41
+echo 'There ', (($sheetCount == 1) ? 'is' : 'are'), ' ', $sheetCount, ' WorkSheet', (($sheetCount == 1) ? '' : 's'), ' in the WorkBook<br /><br />';
42 42
 
43 43
 echo 'Reading the names of Worksheets in the WorkBook<br />';
44 44
 /*  Use the PHPExcel object's getSheetNames() method to get an array listing the names/titles of the WorkSheets in the WorkBook  */
45 45
 $sheetNames = $objPHPExcel->getSheetNames();
46 46
 foreach ($sheetNames as $sheetIndex => $sheetName) {
47
-    echo 'WorkSheet #',$sheetIndex,' is named "',$sheetName,'"<br />';
47
+    echo 'WorkSheet #', $sheetIndex, ' is named "', $sheetName, '"<br />';
48 48
 }
49 49
 
50 50
 ?>
Please login to merge, or discard this patch.
docs/Examples/Reader/exampleReader18.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 //	$inputFileType = 'Gnumeric';
33 33
 $inputFileName = './sampleData/example1.xls';
34 34
 
35
-echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' information using IOFactory with a defined reader type of ',$inputFileType,'<br />';
35
+echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' information using IOFactory with a defined reader type of ', $inputFileType, '<br />';
36 36
 
37 37
 $objReader = PHPExcel_IOFactory::createReader($inputFileType);
38 38
 $worksheetNames = $objReader->listWorksheetNames($inputFileName);
Please login to merge, or discard this patch.
docs/Examples/Reader/exampleReader19.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 //	$inputFileType = 'Gnumeric';
33 33
 $inputFileName = './sampleData/example1.xls';
34 34
 
35
-echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' information using IOFactory with a defined reader type of ',$inputFileType,'<br />';
35
+echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' information using IOFactory with a defined reader type of ', $inputFileType, '<br />';
36 36
 
37 37
 $objReader = PHPExcel_IOFactory::createReader($inputFileType);
38 38
 $worksheetData = $objReader->listWorksheetInfo($inputFileName);
Please login to merge, or discard this patch.
docs/Examples/Calculations/DateTime/TIME.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 $testDates = [[3, 15],        [13, 15],    [15, 15, 15],    [3, 15, 30],
34 34
                     [15, 15, 15],    [5],        [9, 15, 0],        [9, 15, -1],
35 35
                     [13, -14, -15],    [0, 0, -1],
36
-                  ];
36
+                    ];
37 37
 $testDateCount = count($testDates);
38 38
 
39 39
 $worksheet->fromArray($testDates, null, 'A1', true);
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
     $worksheet->setCellValue('E' . $row, '=D' . $row);
44 44
 }
45 45
 $worksheet->getStyle('E1:E' . $testDateCount)
46
-          ->getNumberFormat()
47
-          ->setFormatCode('hh:mm:ss');
46
+            ->getNumberFormat()
47
+            ->setFormatCode('hh:mm:ss');
48 48
 
49 49
 echo '<hr />';
50 50
 
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@  discard block
 block discarded – undo
30 30
 $worksheet = $objPHPExcel->getActiveSheet();
31 31
 
32 32
 // Add some data
33
-$testDates = [[3, 15],        [13, 15],    [15, 15, 15],    [3, 15, 30],
34
-                    [15, 15, 15],    [5],        [9, 15, 0],        [9, 15, -1],
35
-                    [13, -14, -15],    [0, 0, -1],
33
+$testDates = [[3, 15], [13, 15], [15, 15, 15], [3, 15, 30],
34
+                    [15, 15, 15], [5], [9, 15, 0], [9, 15, -1],
35
+                    [13, -14, -15], [0, 0, -1],
36 36
                   ];
37 37
 $testDateCount = count($testDates);
38 38
 
@@ -65,12 +65,12 @@  discard block
 block discarded – undo
65 65
 	<?php
66 66
     for ($row = 1; $row <= $testDateCount; ++$row) {
67 67
         echo '<tr>';
68
-        echo '<td>' , $worksheet->getCell('A' . $row)->getFormattedValue() , '</td>';
69
-        echo '<td>' , $worksheet->getCell('B' . $row)->getFormattedValue() , '</td>';
70
-        echo '<td>' , $worksheet->getCell('C' . $row)->getFormattedValue() , '</td>';
71
-        echo '<td>' , $worksheet->getCell('D' . $row)->getValue() , '</td>';
72
-        echo '<td>' , $worksheet->getCell('D' . $row)->getFormattedValue() , '</td>';
73
-        echo '<td>' , $worksheet->getCell('E' . $row)->getFormattedValue() , '</td>';
68
+        echo '<td>', $worksheet->getCell('A' . $row)->getFormattedValue(), '</td>';
69
+        echo '<td>', $worksheet->getCell('B' . $row)->getFormattedValue(), '</td>';
70
+        echo '<td>', $worksheet->getCell('C' . $row)->getFormattedValue(), '</td>';
71
+        echo '<td>', $worksheet->getCell('D' . $row)->getValue(), '</td>';
72
+        echo '<td>', $worksheet->getCell('D' . $row)->getFormattedValue(), '</td>';
73
+        echo '<td>', $worksheet->getCell('E' . $row)->getFormattedValue(), '</td>';
74 74
         echo '</tr>';
75 75
     }
76 76
     ?>
Please login to merge, or discard this patch.
docs/Examples/Calculations/DateTime/DATEVALUE.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
                     '2012-Oct-31',        '5th November',    'January 1st',        'April 2012',
35 35
                     '17-03',            '03-2012',        '29 Feb 2011',        '03-05-07',
36 36
                     '03-MAY-07',        '03-13-07',
37
-                  ];
37
+                    ];
38 38
 $testDateCount = count($testDates);
39 39
 
40 40
 for ($row = 1; $row <= $testDateCount; ++$row) {
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
 }
45 45
 
46 46
 $worksheet->getStyle('C1:C' . $testDateCount)
47
-          ->getNumberFormat()
48
-          ->setFormatCode('yyyy-mmm-dd');
47
+            ->getNumberFormat()
48
+            ->setFormatCode('yyyy-mmm-dd');
49 49
 
50 50
 echo '<hr />';
51 51
 
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@  discard block
 block discarded – undo
30 30
 $worksheet = $objPHPExcel->getActiveSheet();
31 31
 
32 32
 // Add some data
33
-$testDates = ['26 March 2012',    '29 Feb 2012',    'April 1, 2012',    '25/12/2012',
34
-                    '2012-Oct-31',        '5th November',    'January 1st',        'April 2012',
35
-                    '17-03',            '03-2012',        '29 Feb 2011',        '03-05-07',
36
-                    '03-MAY-07',        '03-13-07',
33
+$testDates = ['26 March 2012', '29 Feb 2012', 'April 1, 2012', '25/12/2012',
34
+                    '2012-Oct-31', '5th November', 'January 1st', 'April 2012',
35
+                    '17-03', '03-2012', '29 Feb 2011', '03-05-07',
36
+                    '03-MAY-07', '03-13-07',
37 37
                   ];
38 38
 $testDateCount = count($testDates);
39 39
 
@@ -62,10 +62,10 @@  discard block
 block discarded – undo
62 62
 	<?php
63 63
     for ($row = 1; $row <= $testDateCount; ++$row) {
64 64
         echo '<tr>';
65
-        echo '<td>' , $worksheet->getCell('A' . $row)->getFormattedValue() , '</td>';
66
-        echo '<td>' , $worksheet->getCell('B' . $row)->getValue() , '</td>';
67
-        echo '<td>' , $worksheet->getCell('B' . $row)->getFormattedValue() , '</td>';
68
-        echo '<td>' , $worksheet->getCell('C' . $row)->getFormattedValue() , '</td>';
65
+        echo '<td>', $worksheet->getCell('A' . $row)->getFormattedValue(), '</td>';
66
+        echo '<td>', $worksheet->getCell('B' . $row)->getValue(), '</td>';
67
+        echo '<td>', $worksheet->getCell('B' . $row)->getFormattedValue(), '</td>';
68
+        echo '<td>', $worksheet->getCell('C' . $row)->getFormattedValue(), '</td>';
69 69
         echo '</tr>';
70 70
     }
71 71
     ?>
Please login to merge, or discard this patch.
docs/Examples/Calculations/DateTime/TIMEVALUE.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
 // Add some data
33 33
 $testDates = ['3:15',    '13:15',    '15:15:15',    '3:15 AM',    '3:15 PM',    '5PM',    '9:15AM',    '13:15AM',
34
-                  ];
34
+                    ];
35 35
 $testDateCount = count($testDates);
36 36
 
37 37
 for ($row = 1; $row <= $testDateCount; ++$row) {
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
 }
42 42
 
43 43
 $worksheet->getStyle('C1:C' . $testDateCount)
44
-          ->getNumberFormat()
45
-          ->setFormatCode('hh:mm:ss');
44
+            ->getNumberFormat()
45
+            ->setFormatCode('hh:mm:ss');
46 46
 
47 47
 echo '<hr />';
48 48
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 $worksheet = $objPHPExcel->getActiveSheet();
31 31
 
32 32
 // Add some data
33
-$testDates = ['3:15',    '13:15',    '15:15:15',    '3:15 AM',    '3:15 PM',    '5PM',    '9:15AM',    '13:15AM',
33
+$testDates = ['3:15', '13:15', '15:15:15', '3:15 AM', '3:15 PM', '5PM', '9:15AM', '13:15AM',
34 34
                   ];
35 35
 $testDateCount = count($testDates);
36 36
 
@@ -58,10 +58,10 @@  discard block
 block discarded – undo
58 58
 	<?php
59 59
     for ($row = 1; $row <= $testDateCount; ++$row) {
60 60
         echo '<tr>';
61
-        echo '<td>' , $worksheet->getCell('A' . $row)->getFormattedValue() , '</td>';
62
-        echo '<td>' , $worksheet->getCell('B' . $row)->getValue() , '</td>';
63
-        echo '<td>' , $worksheet->getCell('B' . $row)->getFormattedValue() , '</td>';
64
-        echo '<td>' , $worksheet->getCell('C' . $row)->getFormattedValue() , '</td>';
61
+        echo '<td>', $worksheet->getCell('A' . $row)->getFormattedValue(), '</td>';
62
+        echo '<td>', $worksheet->getCell('B' . $row)->getValue(), '</td>';
63
+        echo '<td>', $worksheet->getCell('B' . $row)->getFormattedValue(), '</td>';
64
+        echo '<td>', $worksheet->getCell('C' . $row)->getFormattedValue(), '</td>';
65 65
         echo '</tr>';
66 66
     }
67 67
     ?>
Please login to merge, or discard this patch.