Completed
Push — develop ( e87ec8...e0a9f9 )
by
unknown
14:57
created
src/PhpSpreadsheet/Reader/Excel2007/Chart.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -26,6 +26,10 @@  discard block
 block discarded – undo
26 26
  */
27 27
 class Chart
28 28
 {
29
+    /**
30
+     * @param string $name
31
+     * @param string $format
32
+     */
29 33
     private static function getAttribute($component, $name, $format)
30 34
     {
31 35
         $attributes = $component->attributes();
@@ -53,6 +57,10 @@  discard block
 block discarded – undo
53 57
         }
54 58
     }
55 59
 
60
+    /**
61
+     * @param \SimpleXMLElement $chartElements
62
+     * @param string $chartName
63
+     */
56 64
     public static function readChart($chartElements, $chartName)
57 65
     {
58 66
         $namespacesChartMeta = $chartElements->getNamespaces(true);
@@ -195,6 +203,9 @@  discard block
 block discarded – undo
195 203
         return $chart;
196 204
     }
197 205
 
206
+    /**
207
+     * @param string $type
208
+     */
198 209
     private static function chartTitle($titleDetails, $namespacesChartMeta, $type)
199 210
     {
200 211
         $caption = array();
@@ -481,6 +492,9 @@  discard block
 block discarded – undo
481 492
         return $plotAttributes;
482 493
     }
483 494
 
495
+    /**
496
+     * @param \PhpSpreadsheet\Chart\Layout $plotArea
497
+     */
484 498
     private static function setChartAttributes($plotArea, $plotAttributes)
485 499
     {
486 500
         foreach ($plotAttributes as $plotAttributeKey => $plotAttributeValue) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Gnumeric.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -163,6 +163,9 @@  discard block
 block discarded – undo
163 163
         return $worksheetInfo;
164 164
     }
165 165
 
166
+    /**
167
+     * @param string $filename
168
+     */
166 169
     private function gzfileGetContents($filename)
167 170
     {
168 171
         $file = @gzopen($filename, 'rb');
@@ -180,7 +183,7 @@  discard block
 block discarded – undo
180 183
      * Loads PhpSpreadsheet from file
181 184
      *
182 185
      * @param     string         $pFilename
183
-     * @return     PhpSpreadsheet
186
+     * @return     \PhpSpreadsheet\Spreadsheet
184 187
      * @throws     Exception
185 188
      */
186 189
     public function load($pFilename)
@@ -197,7 +200,7 @@  discard block
 block discarded – undo
197 200
      *
198 201
      * @param     string         $pFilename
199 202
      * @param    \PhpSpreadsheet\Spreadsheet    $spreadsheet
200
-     * @return     PhpSpreadsheet
203
+     * @return     \PhpSpreadsheet\Spreadsheet
201 204
      * @throws     Exception
202 205
      */
203 206
     public function loadIntoExisting($pFilename, \PhpSpreadsheet\Spreadsheet $spreadsheet)
Please login to merge, or discard this patch.
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/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.