Completed
Push — develop ( 539a89...685e29 )
by Adrien
11:28
created
src/PhpSpreadsheet/Reader/HTML.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      * Loads PhpSpreadsheet from file
136 136
      *
137 137
      * @param  string                    $pFilename
138
-     * @return PhpSpreadsheet
138
+     * @return \PhpSpreadsheet\Spreadsheet
139 139
      * @throws Exception
140 140
      */
141 141
     public function load($pFilename)
@@ -217,6 +217,12 @@  discard block
 block discarded – undo
217 217
         $cellContent = (string) '';
218 218
     }
219 219
 
220
+    /**
221
+     * @param \PhpSpreadsheet\Worksheet $sheet
222
+     * @param integer $row
223
+     * @param string $column
224
+     * @param string $cellContent
225
+     */
220 226
     protected function processDomElement(DOMNode $element, $sheet, &$row, &$column, &$cellContent, $format = null)
221 227
     {
222 228
         foreach ($element->childNodes as $child) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Font.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
      * Calculate an (approximate) OpenXML column width, based on font size and text contained
238 238
      *
239 239
      * @param     \PhpSpreadsheet\Style\Font            $font            Font object
240
-     * @param     \PhpSpreadsheet\RichText|string    $cellText        Text to calculate width
240
+     * @param     string    $cellText        Text to calculate width
241 241
      * @param     integer                        $rotation        Rotation angle
242 242
      * @param     \PhpSpreadsheet\Style\Font|NULL    $defaultFont    Font object
243 243
      * @return     integer        Column width
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
      * Calculate an (approximate) pixel size, based on centimeter size
407 407
      *
408 408
      * @param     int        $sizeInCm    Font size (in centimeters)
409
-     * @return     int        Size (in pixels)
409
+     * @return     double        Size (in pixels)
410 410
      */
411 411
     public static function centimeterSizeToPixels($sizeInCm = 1)
412 412
     {
@@ -417,6 +417,7 @@  discard block
 block discarded – undo
417 417
      * Returns the font path given the font
418 418
      *
419 419
      * @param \PhpSpreadsheet\Style\Font
420
+     * @param \PhpSpreadsheet\Style\Font $font
420 421
      * @return string Path to TrueType font file
421 422
      */
422 423
     public static function getTrueTypeFontFileFromFont($font)
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Spreadsheet.php 1 patch
Doc Comments   +11 added lines, -10 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     /**
137 137
     * The workbook has macros ?
138 138
     *
139
-    * @return true if workbook has macros, false if not
139
+    * @return boolean if workbook has macros, false if not
140 140
     */
141 141
     public function hasMacros()
142 142
     {
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     /**
178 178
     * Set the macros certificate
179 179
     *
180
-    * @param string|null $Certificate
180
+    * @param string|null $certificate
181 181
     */
182 182
     public function setMacrosCertificate($certificate = null)
183 183
     {
@@ -232,6 +232,7 @@  discard block
 block discarded – undo
232 232
     * retrieve ribbon XML Data
233 233
     *
234 234
     * return string|null|array
235
+    * @return string
235 236
     */
236 237
     public function getRibbonXMLData($what = 'all') //we need some constants here...
237 238
     {
@@ -307,7 +308,7 @@  discard block
 block discarded – undo
307 308
     /**
308 309
     * This workbook have a custom UI ?
309 310
     *
310
-    * @return true|false
311
+    * @return boolean
311 312
     */
312 313
     public function hasRibbon()
313 314
     {
@@ -317,7 +318,7 @@  discard block
 block discarded – undo
317 318
     /**
318 319
     * This workbook have additionnal object for the ribbon ?
319 320
     *
320
-    * @return true|false
321
+    * @return boolean
321 322
     */
322 323
     public function hasRibbonBinObjects()
323 324
     {
@@ -615,7 +616,7 @@  discard block
 block discarded – undo
615 616
      * Get index for sheet
616 617
      *
617 618
      * @param  Worksheet $pSheet
618
-     * @return Sheet index
619
+     * @return integer index
619 620
      * @throws Exception
620 621
      */
621 622
     public function getIndex(Worksheet $pSheet)
@@ -634,7 +635,7 @@  discard block
 block discarded – undo
634 635
      *
635 636
      * @param  string $sheetName Sheet name to modify index for
636 637
      * @param  int $newIndex New index for the sheet
637
-     * @return New sheet index
638
+     * @return integer sheet index
638 639
      * @throws Exception
639 640
      */
640 641
     public function setIndexByName($sheetName, $newIndex)
@@ -776,7 +777,7 @@  discard block
 block discarded – undo
776 777
      * Add named range
777 778
      *
778 779
      * @param  NamedRange $namedRange
779
-     * @return PhpSpreadsheet
780
+     * @return boolean
780 781
      */
781 782
     public function addNamedRange(NamedRange $namedRange)
782 783
     {
@@ -821,7 +822,7 @@  discard block
 block discarded – undo
821 822
      *
822 823
      * @param  string  $namedRange
823 824
      * @param  Worksheet|null  $pSheet  Scope: use null for global scope.
824
-     * @return PhpSpreadsheet
825
+     * @return Spreadsheet
825 826
      */
826 827
     public function removeNamedRange($namedRange, Worksheet $pSheet = null)
827 828
     {
@@ -840,7 +841,7 @@  discard block
 block discarded – undo
840 841
     /**
841 842
      * Get worksheet iterator
842 843
      *
843
-     * @return WorksheetIterator
844
+     * @return Worksheet\Iterator
844 845
      */
845 846
     public function getWorksheetIterator()
846 847
     {
@@ -850,7 +851,7 @@  discard block
 block discarded – undo
850 851
     /**
851 852
      * Copy workbook (!= clone!)
852 853
      *
853
-     * @return PhpSpreadsheet
854
+     * @return Spreadsheet
854 855
      */
855 856
     public function copy()
856 857
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Style.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
147 147
     /**
148 148
      * Get parent. Only used for style supervisor
149 149
      *
150
-     * @return PhpSpreadsheet
150
+     * @return Style
151 151
      */
152 152
     public function getParent()
153 153
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Worksheet.php 1 patch
Doc Comments   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
     /**
329 329
      * Create a new worksheet
330 330
      *
331
-     * @param Spreadsheet        $Parent
331
+     * @param Spreadsheet        $parent
332 332
      * @param string        $pTitle
333 333
      */
334 334
     public function __construct(Spreadsheet $parent = null, $pTitle = 'Worksheet')
@@ -585,7 +585,7 @@  discard block
 block discarded – undo
585 585
      * Get a chart by its index position
586 586
      *
587 587
      * @param string $index Chart index position
588
-     * @return false|Chart
588
+     * @return null|Chart
589 589
      * @throws Exception
590 590
      */
591 591
     public function getChartByIndex($index = null)
@@ -767,7 +767,7 @@  discard block
 block discarded – undo
767 767
     /**
768 768
      * Get parent
769 769
      *
770
-     * @return PhpSpreadsheet
770
+     * @return Spreadsheet
771 771
      */
772 772
     public function getParent()
773 773
     {
@@ -1077,7 +1077,7 @@  discard block
 block discarded – undo
1077 1077
      * Set a cell value
1078 1078
      *
1079 1079
      * @param string $pCoordinate Coordinate of the cell
1080
-     * @param mixed $pValue Value of the cell
1080
+     * @param integer $pValue Value of the cell
1081 1081
      * @param bool $returnCell   Return the worksheet (false, default) or the cell (true)
1082 1082
      * @return Worksheet|Cell    Depending on the last parameter being specified
1083 1083
      */
@@ -1090,8 +1090,8 @@  discard block
 block discarded – undo
1090 1090
     /**
1091 1091
      * Set a cell value by using numeric cell coordinates
1092 1092
      *
1093
-     * @param string $pColumn Numeric column coordinate of the cell (A = 0)
1094
-     * @param string $pRow Numeric row coordinate of the cell
1093
+     * @param integer $pColumn Numeric column coordinate of the cell (A = 0)
1094
+     * @param integer $pRow Numeric row coordinate of the cell
1095 1095
      * @param mixed $pValue Value of the cell
1096 1096
      * @param bool $returnCell Return the worksheet (false, default) or the cell (true)
1097 1097
      * @return Worksheet|Cell    Depending on the last parameter being specified
@@ -1121,8 +1121,8 @@  discard block
 block discarded – undo
1121 1121
     /**
1122 1122
      * Set a cell value by using numeric cell coordinates
1123 1123
      *
1124
-     * @param string $pColumn Numeric column coordinate of the cell
1125
-     * @param string $pRow Numeric row coordinate of the cell
1124
+     * @param integer $pColumn Numeric column coordinate of the cell
1125
+     * @param integer $pRow Numeric row coordinate of the cell
1126 1126
      * @param mixed $pValue Value of the cell
1127 1127
      * @param string $pDataType Explicit data type
1128 1128
      * @param bool $returnCell Return the worksheet (false, default) or the cell (true)
@@ -1182,8 +1182,8 @@  discard block
 block discarded – undo
1182 1182
     /**
1183 1183
      * Get cell at a specific coordinate by using numeric cell coordinates
1184 1184
      *
1185
-     * @param  string $pColumn Numeric column coordinate of the cell
1186
-     * @param string $pRow Numeric row coordinate of the cell
1185
+     * @param  integer $pColumn Numeric column coordinate of the cell
1186
+     * @param integer $pRow Numeric row coordinate of the cell
1187 1187
      * @param boolean $createIfNotExists  Flag indicating whether a new cell should be created if it doesn't
1188 1188
      *                                       already exist, or a null should be returned instead
1189 1189
      * @return null|Cell Cell that was found/created or null
@@ -1290,8 +1290,8 @@  discard block
 block discarded – undo
1290 1290
     /**
1291 1291
      * Cell at a specific coordinate by using numeric cell coordinates exists?
1292 1292
      *
1293
-     * @param string $pColumn Numeric column coordinate of the cell
1294
-     * @param string $pRow Numeric row coordinate of the cell
1293
+     * @param integer $pColumn Numeric column coordinate of the cell
1294
+     * @param integer $pRow Numeric row coordinate of the cell
1295 1295
      * @return boolean
1296 1296
      */
1297 1297
     public function cellExistsByColumnAndRow($pColumn = 0, $pRow = 1)
@@ -1350,7 +1350,7 @@  discard block
 block discarded – undo
1350 1350
     /**
1351 1351
      * Get column dimension at a specific column by using numeric cell coordinates
1352 1352
      *
1353
-     * @param string $pColumn Numeric column coordinate of the cell
1353
+     * @param integer $pColumn Numeric column coordinate of the cell
1354 1354
      * @return Worksheet\ColumnDimension
1355 1355
      */
1356 1356
     public function getColumnDimensionByColumn($pColumn = 0)
@@ -1471,7 +1471,7 @@  discard block
 block discarded – undo
1471 1471
     /**
1472 1472
      * Set conditional styles
1473 1473
      *
1474
-     * @param $pCoordinate string E.g. 'A1'
1474
+     * @param string $pCoordinate string E.g. 'A1'
1475 1475
      * @param $pValue Style\Conditional[]
1476 1476
      * @return Worksheet
1477 1477
      */
@@ -1892,7 +1892,7 @@  discard block
 block discarded – undo
1892 1892
     /**
1893 1893
      *    Set AutoFilter
1894 1894
      *
1895
-     *    @param    Worksheet\AutoFilter|string   $pValue
1895
+     *    @param    string   $pValue
1896 1896
      *            A simple string containing a Cell range like 'A1:E10' is permitted for backward compatibility
1897 1897
      *    @throws Exception
1898 1898
      *    @return Worksheet
@@ -2902,7 +2902,7 @@  discard block
 block discarded – undo
2902 2902
      * Define the code name of the sheet
2903 2903
      *
2904 2904
      * @param null|string Same rule as Title minus space not allowed (but, like Excel, change silently space to underscore)
2905
-     * @return objWorksheet
2905
+     * @return Worksheet
2906 2906
      * @throws Exception
2907 2907
     */
2908 2908
     public function setCodeName($pValue = null)
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Worksheet/AutoFilter/Column/Rule.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -285,7 +285,7 @@
 block discarded – undo
285 285
      *
286 286
      *    @param   string        $pRuleType
287 287
      *    @throws  \PhpSpreadsheet\Exception
288
-     *    @return  \PhpSpreadsheet\Worksheet\AutoFilter\Column
288
+     *    @return  Rule
289 289
      */
290 290
     public function setRuleType($pRuleType = self::AUTOFILTER_RULETYPE_FILTER)
291 291
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Worksheet/ColumnCellIterator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
     /**
136 136
      * Return the current cell in this worksheet column
137 137
      *
138
-     * @return Row
138
+     * @return null|\PhpSpreadsheet\Cell
139 139
      */
140 140
     public function current()
141 141
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Worksheet/Drawing/Shadow.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -229,7 +229,7 @@
 block discarded – undo
229 229
     /**
230 230
      * Set Color
231 231
      *
232
-     * @param    \PhpSpreadsheet\Style_Color $pValue
232
+     * @param    \PhpSpreadsheet\Style\Color $pValue
233 233
      * @throws   \PhpSpreadsheet\Exception
234 234
      * @return   Shadow
235 235
      */
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Writer/CSV.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -311,7 +311,7 @@
 block discarded – undo
311 311
     /**
312 312
      * Write line to CSV file
313 313
      *
314
-     * @param    mixed    $pFileHandle    PHP filehandle
314
+     * @param    resource    $pFileHandle    PHP filehandle
315 315
      * @param    array    $pValues        Array containing values in a row
316 316
      * @throws    Exception
317 317
      */
Please login to merge, or discard this patch.