Completed
Pull Request — develop (#68)
by
unknown
19:43
created
src/PhpSpreadsheet/Worksheet/Row.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,6 @@  discard block
 block discarded – undo
43 43
     /**
44 44
      * Create a new row.
45 45
      *
46
-     * @param \PhpOffice\PhpSpreadsheet\Worksheet         $parent
47 46
      * @param int                        $rowIndex
48 47
      */
49 48
     public function __construct(\PhpOffice\PhpSpreadsheet\Worksheet $worksheet = null, $rowIndex = 1)
@@ -87,7 +86,7 @@  discard block
 block discarded – undo
87 86
     /**
88 87
      * Returns bound worksheet
89 88
      *
90
-     * @return Worksheet
89
+     * @return 
91 90
      */
92 91
     public function getWorksheet()
93 92
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Xlsx.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -270,6 +270,11 @@  discard block
 block discarded – undo
270 270
         return isset($c->v) ? (string) $c->v : null;
271 271
     }
272 272
 
273
+    /**
274
+     * @param string $r
275
+     * @param string $cellDataType
276
+     * @param string $castBaseType
277
+     */
273 278
     private function castToFormula($c, $r, &$cellDataType, &$value, &$calculatedValue, &$sharedFormulas, $castBaseType)
274 279
     {
275 280
         $cellDataType = 'f';
@@ -1989,6 +1994,9 @@  discard block
 block discarded – undo
1989 1994
         }
1990 1995
     }
1991 1996
 
1997
+    /**
1998
+     * @param \PhpOffice\PhpSpreadsheet\Style\Border $docBorder
1999
+     */
1992 2000
     private static function readBorder($docBorder, $eleBorder)
1993 2001
     {
1994 2002
         if (isset($eleBorder['style'])) {
@@ -2113,6 +2121,9 @@  discard block
 block discarded – undo
2113 2121
         return preg_replace('~[^/]+/\.\./~', '', dirname($base) . "/$add");
2114 2122
     }
2115 2123
 
2124
+    /**
2125
+     * @param string $style
2126
+     */
2116 2127
     private static function toCSSArray($style)
2117 2128
     {
2118 2129
         $style = str_replace(["\r", "\n"], '', $style);
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/exampleReader12.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),' using IOFactory with a defined reader type of ',$inputFileType,'<br />';
35
+echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' using IOFactory with a defined reader type of ', $inputFileType, '<br />';
36 36
 $objReader = PHPExcel_IOFactory::createReader($inputFileType);
37 37
 echo 'Turning Formatting off for Load<br />';
38 38
 $objReader->setReadDataOnly(true);
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/exampleReader06.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),' using IOFactory with a defined reader type of ',$inputFileType,'<br />';
35
+echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' using IOFactory with a defined reader type of ', $inputFileType, '<br />';
36 36
 $objReader = PHPExcel_IOFactory::createReader($inputFileType);
37 37
 echo 'Turning Formatting off for Load<br />';
38 38
 $objReader->setReadDataOnly(true);
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.