Completed
Push — develop ( e87ec8...e0a9f9 )
by
unknown
14:57
created
src/PhpSpreadsheet/Chart/DataSeries.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     /**
178 178
      * Get Plot Grouping Type
179 179
      *
180
-     * @return string
180
+     * @return boolean
181 181
      */
182 182
     public function getPlotGrouping()
183 183
     {
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
     /**
201 201
      * Get Plot Direction
202 202
      *
203
-     * @return string
203
+     * @return boolean
204 204
      */
205 205
     public function getPlotDirection()
206 206
     {
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
     /**
348 348
      * Get Smooth Line
349 349
      *
350
-     * @return bool
350
+     * @return string
351 351
      */
352 352
     public function getSmoothLine()
353 353
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/DataSeriesValues.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,6 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
     /**
82 82
      * Create a new DataSeriesValues object
83
+     * @param string $dataSource
83 84
      */
84 85
     public function __construct($dataType = self::DATASERIES_TYPE_NUMBER, $dataSource = null, $formatCode = null, $pointCount = 0, $dataValues = [], $marker = null)
85 86
     {
@@ -209,7 +210,7 @@  discard block
 block discarded – undo
209 210
     /**
210 211
      * Identify if the Data Series is a multi-level or a simple series
211 212
      *
212
-     * @return    bool
213
+     * @return    boolean|null
213 214
      */
214 215
     public function isMultiLevelSeries()
215 216
     {
@@ -223,7 +224,7 @@  discard block
 block discarded – undo
223 224
     /**
224 225
      * Return the level count of a multi-level Data Series
225 226
      *
226
-     * @return    bool
227
+     * @return    integer
227 228
      */
228 229
     public function multiLevelCount()
229 230
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/CSV.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -387,7 +387,7 @@
 block discarded – undo
387 387
     /**
388 388
      * Get Contiguous
389 389
      *
390
-     * @return bool
390
+     * @return integer
391 391
      */
392 392
     public function getContiguous()
393 393
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Excel5.php 1 patch
Doc Comments   +16 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1207,7 +1207,7 @@  discard block
 block discarded – undo
1207 1207
      *
1208 1208
      * @param string $data   Data stream to read from
1209 1209
      * @param int    $pos    Position to start reading from
1210
-     * @param int    $length Record data length
1210
+     * @param integer $len
1211 1211
      *
1212 1212
      * @return string Record data
1213 1213
      */
@@ -1743,6 +1743,7 @@  discard block
 block discarded – undo
1743 1743
      * @var int         Block for which to create decrypto
1744 1744
      * @var string $valContext MD5 context state
1745 1745
      *
1746
+     * @param string $valContext
1746 1747
      * @return Excel5\RC4
1747 1748
      */
1748 1749
     private function makeKey($block, $valContext)
@@ -1778,6 +1779,11 @@  discard block
 block discarded – undo
1778 1779
      * @var string $hashedsalt_data Hashed salt data
1779 1780
      * @var string &$valContext     Set to the MD5 context of the value
1780 1781
      *
1782
+     * @param string $password
1783
+     * @param string $docid
1784
+     * @param string $salt_data
1785
+     * @param string $hashedsalt_data
1786
+     * @param string $valContext
1781 1787
      * @return bool Success
1782 1788
      */
1783 1789
     private function verifyPassword($password, $docid, $salt_data, $hashedsalt_data, &$valContext)
@@ -5157,7 +5163,7 @@  discard block
 block discarded – undo
5157 5163
      * is in one piece.
5158 5164
      * Moves to next current position in data stream to start of next record different from a CONtINUE record
5159 5165
      *
5160
-     * @return array
5166
+     * @return integer|null
5161 5167
      */
5162 5168
     private function getSplicedRecordData()
5163 5169
     {
@@ -5257,8 +5263,7 @@  discard block
 block discarded – undo
5257 5263
      * Take array of tokens together with additional data for formula and return human readable formula
5258 5264
      *
5259 5265
      * @param array $tokens
5260
-     * @param array $additionalData Additional binary data going with the formula
5261
-     * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas
5266
+     * @param string $additionalData Additional binary data going with the formula
5262 5267
      * @return string Human readable formula
5263 5268
      */
5264 5269
     private function createFormulaFromTokens($tokens, $additionalData)
@@ -5421,8 +5426,9 @@  discard block
 block discarded – undo
5421 5426
      *
5422 5427
      * @param string Formula data
5423 5428
      * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas
5429
+     * @param string $formulaData
5424 5430
      * @throws Exception
5425
-     * @return array
5431
+     * @return string
5426 5432
      */
5427 5433
     private function getNextToken($formulaData, $baseCell = 'A1')
5428 5434
     {
@@ -6990,7 +6996,7 @@  discard block
 block discarded – undo
6990 6996
      * section 2.5.15
6991 6997
      *
6992 6998
      * @param string $subData
6993
-     * @return array
6999
+     * @return string
6994 7000
      */
6995 7001
     private function readBIFF8CellRangeAddressList($subData)
6996 7002
     {
@@ -7372,6 +7378,9 @@  discard block
 block discarded – undo
7372 7378
         return $value;
7373 7379
     }
7374 7380
 
7381
+    /**
7382
+     * @param integer $rknum
7383
+     */
7375 7384
     private static function getIEEE754($rknum)
7376 7385
     {
7377 7386
         if (($rknum & 0x02) != 0) {
@@ -7402,7 +7411,7 @@  discard block
 block discarded – undo
7402 7411
      * Get UTF-8 string from (compressed or uncompressed) UTF-16 string
7403 7412
      *
7404 7413
      * @param string $string
7405
-     * @param bool $compressed
7414
+     * @param string|boolean $compressed
7406 7415
      * @return string
7407 7416
      */
7408 7417
     private static function encodeUTF16($string, $compressed = '')
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/OLE.php 1 patch
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      * @acces public
94 94
      * @param string $file
95 95
      * @throws \PhpSpreadsheet\Reader\Exception
96
-     * @return mixed true on success, PEAR_Error on failure
96
+     * @return boolean true on success, PEAR_Error on failure
97 97
      */
98 98
     public function read($file)
99 99
     {
@@ -223,6 +223,7 @@  discard block
 block discarded – undo
223 223
     /**
224 224
      * Reads a signed char.
225 225
      * @param   resource  file handle
226
+     * @param resource $fh
226 227
      * @return  int
227 228
      */
228 229
     private static function _readInt1($fh)
@@ -235,6 +236,7 @@  discard block
 block discarded – undo
235 236
     /**
236 237
      * Reads an unsigned short (2 octets).
237 238
      * @param   resource  file handle
239
+     * @param resource $fh
238 240
      * @return  int
239 241
      */
240 242
     private static function _readInt2($fh)
@@ -247,6 +249,7 @@  discard block
 block discarded – undo
247 249
     /**
248 250
      * Reads an unsigned long (4 octets).
249 251
      * @param   resource  file handle
252
+     * @param resource $fh
250 253
      * @return  int
251 254
      */
252 255
     private static function _readInt4($fh)
@@ -261,7 +264,8 @@  discard block
 block discarded – undo
261 264
      * creates an OLE_PPS object for each one.
262 265
      *
263 266
      * @param  int  the block id of the first block
264
-     * @return mixed true on success, PEAR_Error on failure
267
+     * @param integer $blockId
268
+     * @return boolean true on success, PEAR_Error on failure
265 269
      */
266 270
     public function _readPpsWks($blockId)
267 271
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/OLE/PPS/Root.php 1 patch
Doc Comments   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,6 +39,7 @@  discard block
 block discarded – undo
39 39
     /**
40 40
      * @param int $time_1st A timestamp
41 41
      * @param int $time_2nd A timestamp
42
+     * @param File[] $raChild
42 43
      */
43 44
     public function __construct($time_1st, $time_2nd, $raChild)
44 45
     {
@@ -54,9 +55,9 @@  discard block
 block discarded – undo
54 55
      * If a resource pointer to a stream created by fopen() is passed
55 56
      * it will be used, but you have to close such stream by yourself.
56 57
      *
57
-     * @param string|resource $filename The name of the file or stream where to save the OLE container.
58
+     * @param string|null $filename The name of the file or stream where to save the OLE container.
58 59
      * @throws \PhpSpreadsheet\Writer\Exception
59
-     * @return mixed true on success
60
+     * @return boolean true on success
60 61
      */
61 62
     public function save($filename)
62 63
     {
@@ -116,7 +117,7 @@  discard block
 block discarded – undo
116 117
      * Calculate some numbers
117 118
      *
118 119
      * @param array $raList Reference to an array of PPS's
119
-     * @return array The array of numbers
120
+     * @return double[] The array of numbers
120 121
      */
121 122
     public function _calcSize(&$raList)
122 123
     {
@@ -154,7 +155,7 @@  discard block
 block discarded – undo
154 155
      *
155 156
      * @param int $i2 The argument
156 157
      * @see save()
157
-     * @return int
158
+     * @return double
158 159
      */
159 160
     private static function adjust2($i2)
160 161
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/ZipStreamWrapper.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     /**
100 100
      * Implements support for fstat().
101 101
      *
102
-     * @return  bool
102
+     * @return  string
103 103
      */
104 104
     public function statName()
105 105
     {
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     /**
110 110
      * Implements support for fstat().
111 111
      *
112
-     * @return  bool
112
+     * @return  string
113 113
      */
114 114
     public function url_stat() // @codingStandardsIgnoreLine
115 115
     {
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      *
167 167
      * @param    int        $offset    byte offset
168 168
      * @param    int        $whence    SEEK_SET, SEEK_CUR or SEEK_END
169
-     * @return    bool
169
+     * @return    boolean|null
170 170
      */
171 171
     public function stream_seek($offset, $whence) // @codingStandardsIgnoreLine
172 172
     {
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
     {
@@ -230,6 +230,7 @@  discard block
 block discarded – undo
230 230
      * retrieve ribbon XML Data
231 231
      *
232 232
      * return string|null|array
233
+     * @return string
233 234
      */
234 235
     public function getRibbonXMLData($what = 'all') //we need some constants here...
235 236
     {
@@ -303,7 +304,7 @@  discard block
 block discarded – undo
303 304
     /**
304 305
      * This workbook have a custom UI ?
305 306
      *
306
-     * @return true|false
307
+     * @return boolean
307 308
      */
308 309
     public function hasRibbon()
309 310
     {
@@ -313,7 +314,7 @@  discard block
 block discarded – undo
313 314
     /**
314 315
      * This workbook have additionnal object for the ribbon ?
315 316
      *
316
-     * @return true|false
317
+     * @return boolean
317 318
      */
318 319
     public function hasRibbonBinObjects()
319 320
     {
@@ -609,7 +610,7 @@  discard block
 block discarded – undo
609 610
      *
610 611
      * @param  Worksheet $pSheet
611 612
      * @throws Exception
612
-     * @return Sheet index
613
+     * @return integer index
613 614
      */
614 615
     public function getIndex(Worksheet $pSheet)
615 616
     {
@@ -628,7 +629,7 @@  discard block
 block discarded – undo
628 629
      * @param  string $sheetName Sheet name to modify index for
629 630
      * @param  int $newIndex New index for the sheet
630 631
      * @throws Exception
631
-     * @return New sheet index
632
+     * @return integer sheet index
632 633
      */
633 634
     public function setIndexByName($sheetName, $newIndex)
634 635
     {
@@ -772,7 +773,7 @@  discard block
 block discarded – undo
772 773
      * Add named range
773 774
      *
774 775
      * @param  NamedRange $namedRange
775
-     * @return PhpSpreadsheet
776
+     * @return boolean
776 777
      */
777 778
     public function addNamedRange(NamedRange $namedRange)
778 779
     {
@@ -818,7 +819,7 @@  discard block
 block discarded – undo
818 819
      *
819 820
      * @param  string  $namedRange
820 821
      * @param  Worksheet|null  $pSheet  Scope: use null for global scope.
821
-     * @return PhpSpreadsheet
822
+     * @return Spreadsheet
822 823
      */
823 824
     public function removeNamedRange($namedRange, Worksheet $pSheet = null)
824 825
     {
@@ -838,7 +839,7 @@  discard block
 block discarded – undo
838 839
     /**
839 840
      * Get worksheet iterator
840 841
      *
841
-     * @return WorksheetIterator
842
+     * @return Worksheet\Iterator
842 843
      */
843 844
     public function getWorksheetIterator()
844 845
     {
@@ -848,7 +849,7 @@  discard block
 block discarded – undo
848 849
     /**
849 850
      * Copy workbook (!= clone!)
850 851
      *
851
-     * @return PhpSpreadsheet
852
+     * @return Spreadsheet
852 853
      */
853 854
     public function copy()
854 855
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Worksheet/ColumnDimension.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     /**
69 69
      * Get ColumnIndex
70 70
      *
71
-     * @return string
71
+     * @return integer
72 72
      */
73 73
     public function getColumnIndex()
74 74
     {
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     /**
102 102
      * Set Width
103 103
      *
104
-     * @param float $pValue
104
+     * @param integer $pValue
105 105
      * @return ColumnDimension
106 106
      */
107 107
     public function setWidth($pValue = -1)
Please login to merge, or discard this patch.