Completed
Push — develop ( b8adec...fec674 )
by Adrien
38:19 queued 21:59
created
docs/Examples/Calculations/DateTime/DATE.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
                     [2011, 2, 29],    [7, 5, 3],        [2012, 13, 1],    [2012, 11, 45],
36 36
                     [2012, 0, 0],    [2012, 1, 0],    [2012, 0, 1],
37 37
                     [2012, -2, 2],    [2012, 2, -2],    [2012, -2, -2],
38
-                  ];
38
+                    ];
39 39
 $testDateCount = count($testDates);
40 40
 
41 41
 $worksheet->fromArray($testDates, null, 'A1', true);
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
     $worksheet->setCellValue('E' . $row, '=D' . $row);
46 46
 }
47 47
 $worksheet->getStyle('E1:E' . $testDateCount)
48
-          ->getNumberFormat()
49
-          ->setFormatCode('yyyy-mmm-dd');
48
+            ->getNumberFormat()
49
+            ->setFormatCode('yyyy-mmm-dd');
50 50
 
51 51
 echo '<hr />';
52 52
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@
 block discarded – undo
30 30
 $worksheet = $spreadsheet->getActiveSheet();
31 31
 
32 32
 // Add some data
33
-$testDates = [[2012, 3, 26],    [2012, 2, 29],    [2012, 4, 1],    [2012, 12, 25],
34
-                    [2012, 10, 31],    [2012, 11, 5],    [2012, 1, 1],    [2012, 3, 17],
35
-                    [2011, 2, 29],    [7, 5, 3],        [2012, 13, 1],    [2012, 11, 45],
36
-                    [2012, 0, 0],    [2012, 1, 0],    [2012, 0, 1],
37
-                    [2012, -2, 2],    [2012, 2, -2],    [2012, -2, -2],
33
+$testDates = [[2012, 3, 26], [2012, 2, 29], [2012, 4, 1], [2012, 12, 25],
34
+                    [2012, 10, 31], [2012, 11, 5], [2012, 1, 1], [2012, 3, 17],
35
+                    [2011, 2, 29], [7, 5, 3], [2012, 13, 1], [2012, 11, 45],
36
+                    [2012, 0, 0], [2012, 1, 0], [2012, 0, 1],
37
+                    [2012, -2, 2], [2012, 2, -2], [2012, -2, -2],
38 38
                   ];
39 39
 $testDateCount = count($testDates);
40 40
 
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/FormulaParser.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
      *
120 120
      * @throws Exception
121 121
      *
122
-     * @return string
122
+     * @return FormulaToken
123 123
      */
124 124
     public function getToken($pId = 0)
125 125
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Drawing.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      *
34 34
      * @param int $pValue Value in pixels
35 35
      *
36
-     * @return int Value in EMU
36
+     * @return double Value in EMU
37 37
      */
38 38
     public static function pixelsToEMU($pValue = 0)
39 39
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/PlotArea.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     /**
65 65
      * Get Number of Plot Groups.
66 66
      *
67
-     * @return array of DataSeries
67
+     * @return integer of DataSeries
68 68
      */
69 69
     public function getPlotGroupCount()
70 70
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Xlsx/Theme.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
     /**
58 58
      * Create a new Theme.
59 59
      *
60
-     * @param mixed $themeName
61
-     * @param mixed $colourSchemeName
60
+     * @param string $themeName
61
+     * @param string $colourSchemeName
62 62
      * @param mixed $colourMap
63 63
      */
64 64
     public function __construct($themeName, $colourSchemeName, $colourMap)
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     /**
93 93
      * Get colour Map Value by Position.
94 94
      *
95
-     * @param mixed $index
95
+     * @param integer $index
96 96
      *
97 97
      * @return string
98 98
      */
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/OLE/PPS/Root.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * If a resource pointer to a stream created by fopen() is passed
57 57
      * it will be used, but you have to close such stream by yourself.
58 58
      *
59
-     * @param string|resource $filename the name of the file or stream where to save the OLE container
59
+     * @param string|null $filename the name of the file or stream where to save the OLE container
60 60
      *
61 61
      * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
62 62
      *
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      *
122 122
      * @param array $raList Reference to an array of PPS's
123 123
      *
124
-     * @return float[] The array of numbers
124
+     * @return double[] The array of numbers
125 125
      */
126 126
     public function _calcSize(&$raList)
127 127
     {
Please login to merge, or discard this patch.
docs/Examples/Reading WorkBook Data/exampleWorkBookReader03.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 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 = $spreadsheet->getProperties()->getCustomPropertyValue($customPropertyName);
47 47
     /*  Retrieve the property type  **/
Please login to merge, or discard this patch.
docs/Examples/Reader/exampleReader13.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@
 block discarded – undo
30 30
 
31 31
 $reader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader($inputFileType);
32 32
 $inputFileName = array_shift($inputFileNames);
33
-echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' into WorkSheet #1 using IOFactory with a defined reader type of ',$inputFileType,'<br />';
33
+echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' into WorkSheet #1 using IOFactory with a defined reader type of ', $inputFileType, '<br />';
34 34
 $spreadsheet = $reader->load($inputFileName);
35 35
 $spreadsheet->getActiveSheet()->setTitle(pathinfo($inputFileName, PATHINFO_BASENAME));
36 36
 foreach ($inputFileNames as $sheet => $inputFileName) {
37
-    echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' into WorkSheet #',($sheet + 2),' using IOFactory with a defined reader type of ',$inputFileType,'<br />';
37
+    echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' into WorkSheet #', ($sheet + 2), ' using IOFactory with a defined reader type of ', $inputFileType, '<br />';
38 38
     $reader->setSheetIndex($sheet + 1);
39 39
     $reader->loadIntoExisting($inputFileName, $spreadsheet);
40 40
     $spreadsheet->getActiveSheet()->setTitle(pathinfo($inputFileName, PATHINFO_BASENAME));
Please login to merge, or discard this patch.
docs/Examples/Reader/exampleReader15.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,17 +26,17 @@
 block discarded – undo
26 26
 $inputFileName = './sampleData/example1.tsv';
27 27
 
28 28
 $reader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader($inputFileType);
29
-echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' into WorkSheet #1 using IOFactory with a defined reader type of ',$inputFileType,'<br />';
29
+echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' into WorkSheet #1 using IOFactory with a defined reader type of ', $inputFileType, '<br />';
30 30
 $reader->setDelimiter("\t");
31 31
 $spreadsheet = $reader->load($inputFileName);
32 32
 $spreadsheet->getActiveSheet()->setTitle(pathinfo($inputFileName, PATHINFO_BASENAME));
33 33
 
34 34
 echo '<hr />';
35 35
 
36
-echo $spreadsheet->getSheetCount(),' worksheet',(($spreadsheet->getSheetCount() == 1) ? '' : 's'),' loaded<br /><br />';
36
+echo $spreadsheet->getSheetCount(), ' worksheet', (($spreadsheet->getSheetCount() == 1) ? '' : 's'), ' loaded<br /><br />';
37 37
 $loadedSheetNames = $spreadsheet->getSheetNames();
38 38
 foreach ($loadedSheetNames as $sheetIndex => $loadedSheetName) {
39
-    echo '<b>Worksheet #',$sheetIndex,' -> ',$loadedSheetName,' (Formatted)</b><br />';
39
+    echo '<b>Worksheet #', $sheetIndex, ' -> ', $loadedSheetName, ' (Formatted)</b><br />';
40 40
     $spreadsheet->setActiveSheetIndexByName($loadedSheetName);
41 41
     $sheetData = $spreadsheet->getActiveSheet()->toArray(null, true, true, true);
42 42
     var_dump($sheetData);
Please login to merge, or discard this patch.