Completed
Push — develop ( 467bab...e1f81f )
by Adrien
10:03
created
src/PhpSpreadsheet/NamedRange.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@
 block discarded – undo
226 226
      * Resolve a named range to a regular cell range
227 227
      *
228 228
      * @param string $pNamedRange Named range
229
-     * @param Worksheet|null $pSheet Scope. Use null for global scope
229
+     * @param Worksheet $pSheet Scope. Use null for global scope
230 230
      * @return NamedRange
231 231
      */
232 232
     public static function resolveRange($pNamedRange, Worksheet $pSheet)
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/BaseReader.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
      * @param    boolean    $pValue
121 121
      *
122
-     * @return    PHPExcel_Reader_IReader
122
+     * @return    BaseReader
123 123
      */
124 124
     public function setReadEmptyCells($pValue = true)
125 125
     {
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
@@ -392,7 +392,7 @@
 block discarded – undo
392 392
     /**
393 393
      * Get Contiguous
394 394
      *
395
-     * @return boolean
395
+     * @return integer
396 396
      */
397 397
     public function getContiguous()
398 398
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Excel2003XML.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -231,6 +231,9 @@  discard block
 block discarded – undo
231 231
         return $this->loadIntoExisting($pFilename, $objPHPExcel);
232 232
     }
233 233
 
234
+    /**
235
+     * @param string $styleAttributeValue
236
+     */
234 237
     protected static function identifyFixedStyleValue($styleList, &$styleAttributeValue)
235 238
     {
236 239
         $styleAttributeValue = strtolower($styleAttributeValue);
@@ -786,6 +789,9 @@  discard block
 block discarded – undo
786 789
     }
787 790
 
788 791
 
792
+    /**
793
+     * @param string $charset
794
+     */
789 795
     protected static function convertStringEncoding($string, $charset)
790 796
     {
791 797
         if ($charset != 'UTF-8') {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Excel2007.php 1 patch
Doc Comments   +18 added lines, -1 removed lines patch added patch discarded remove patch
@@ -288,6 +288,11 @@  discard block
 block discarded – undo
288 288
         return isset($c->v) ? (string) $c->v : null;
289 289
     }
290 290
 
291
+    /**
292
+     * @param string $r
293
+     * @param string $cellDataType
294
+     * @param string $castBaseType
295
+     */
291 296
     private function castToFormula($c, $r, &$cellDataType, &$value, &$calculatedValue, &$sharedFormulas, $castBaseType)
292 297
     {
293 298
 //        echo 'Formula', PHP_EOL;
@@ -330,6 +335,9 @@  discard block
 block discarded – undo
330 335
     }
331 336
 
332 337
 
338
+    /**
339
+     * @return string|null
340
+     */
333 341
     private function getFromZipArchive($archive, $fileName = '')
334 342
     {
335 343
         // Root-relative paths
@@ -359,7 +367,7 @@  discard block
 block discarded – undo
359 367
      * Loads Spreadsheet from file
360 368
      *
361 369
      * @param     string         $pFilename
362
-     * @return    Spreadsheet
370
+     * @return    \PHPExcel\Spreadsheet
363 371
      * @throws    Exception
364 372
      */
365 373
     public function load($pFilename)
@@ -1924,6 +1932,9 @@  discard block
 block discarded – undo
1924 1932
         return 'FF000000';
1925 1933
     }
1926 1934
 
1935
+    /**
1936
+     * @param \PHPExcel\Style $docStyle
1937
+     */
1927 1938
     private static function readStyle($docStyle, $style)
1928 1939
     {
1929 1940
         // format code
@@ -2123,6 +2134,9 @@  discard block
 block discarded – undo
2123 2134
         return $value;
2124 2135
     }
2125 2136
 
2137
+    /**
2138
+     * @param \PHPExcel\Spreadsheet $excel
2139
+     */
2126 2140
     private function readRibbon($excel, $customUITarget, $zip)
2127 2141
     {
2128 2142
         $baseDir = dirname($customUITarget);
@@ -2175,6 +2189,9 @@  discard block
 block discarded – undo
2175 2189
         return preg_replace('~[^/]+/\.\./~', '', dirname($base) . "/$add");
2176 2190
     }
2177 2191
 
2192
+    /**
2193
+     * @param string $style
2194
+     */
2178 2195
     private static function toCSSArray($style)
2179 2196
     {
2180 2197
         $style = str_replace(array("\r","\n"), "", $style);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Excel2007/Chart.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -29,6 +29,10 @@  discard block
 block discarded – undo
29 29
  */
30 30
 class Chart
31 31
 {
32
+    /**
33
+     * @param string $name
34
+     * @param string $format
35
+     */
32 36
     private static function getAttribute($component, $name, $format)
33 37
     {
34 38
         $attributes = $component->attributes();
@@ -56,6 +60,10 @@  discard block
 block discarded – undo
56 60
         }
57 61
     }
58 62
 
63
+    /**
64
+     * @param \SimpleXMLElement $chartElements
65
+     * @param string $chartName
66
+     */
59 67
     public static function readChart($chartElements, $chartName)
60 68
     {
61 69
         $namespacesChartMeta = $chartElements->getNamespaces(true);
@@ -198,6 +206,9 @@  discard block
 block discarded – undo
198 206
         return $chart;
199 207
     }
200 208
 
209
+    /**
210
+     * @param string $type
211
+     */
201 212
     private static function chartTitle($titleDetails, $namespacesChartMeta, $type)
202 213
     {
203 214
         $caption = array();
@@ -484,6 +495,9 @@  discard block
 block discarded – undo
484 495
         return $plotAttributes;
485 496
     }
486 497
 
498
+    /**
499
+     * @param \PHPExcel\Chart\Layout $plotArea
500
+     */
487 501
     private static function setChartAttributes($plotArea, $plotAttributes)
488 502
     {
489 503
         foreach ($plotAttributes as $plotAttributeKey => $plotAttributeValue) {
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
@@ -1211,7 +1211,7 @@  discard block
 block discarded – undo
1211 1211
      *
1212 1212
      * @param string $data   Data stream to read from
1213 1213
      * @param int    $pos    Position to start reading from
1214
-     * @param int    $length Record data length
1214
+     * @param integer $len
1215 1215
      *
1216 1216
      * @return string Record data
1217 1217
      */
@@ -1754,6 +1754,7 @@  discard block
 block discarded – undo
1754 1754
      * @var int    $block      Block for which to create decrypto
1755 1755
      * @var string $valContext MD5 context state
1756 1756
      *
1757
+     * @param string $valContext
1757 1758
      * @return Excel5\RC4
1758 1759
      */
1759 1760
     private function makeKey($block, $valContext)
@@ -1788,6 +1789,11 @@  discard block
 block discarded – undo
1788 1789
      * @var string $hashedsalt_data Hashed salt data
1789 1790
      * @var string &$valContext     Set to the MD5 context of the value
1790 1791
      *
1792
+     * @param string $password
1793
+     * @param string $docid
1794
+     * @param string $salt_data
1795
+     * @param string $hashedsalt_data
1796
+     * @param string $valContext
1791 1797
      * @return bool Success
1792 1798
      */
1793 1799
     private function verifyPassword($password, $docid, $salt_data, $hashedsalt_data, &$valContext)
@@ -5227,7 +5233,7 @@  discard block
 block discarded – undo
5227 5233
      * is in one piece.
5228 5234
      * Moves to next current position in data stream to start of next record different from a CONtINUE record
5229 5235
      *
5230
-     * @return array
5236
+     * @return integer|null
5231 5237
      */
5232 5238
     private function getSplicedRecordData()
5233 5239
     {
@@ -5331,8 +5337,7 @@  discard block
 block discarded – undo
5331 5337
      * Take array of tokens together with additional data for formula and return human readable formula
5332 5338
      *
5333 5339
      * @param array $tokens
5334
-     * @param array $additionalData Additional binary data going with the formula
5335
-     * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas
5340
+     * @param string $additionalData Additional binary data going with the formula
5336 5341
      * @return string Human readable formula
5337 5342
      */
5338 5343
     private function createFormulaFromTokens($tokens, $additionalData)
@@ -5496,7 +5501,8 @@  discard block
 block discarded – undo
5496 5501
      *
5497 5502
      * @param string Formula data
5498 5503
      * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas
5499
-     * @return array
5504
+     * @param string $formulaData
5505
+     * @return string
5500 5506
      * @throws Exception
5501 5507
      */
5502 5508
     private function getNextToken($formulaData, $baseCell = 'A1')
@@ -7070,7 +7076,7 @@  discard block
 block discarded – undo
7070 7076
      * section 2.5.15
7071 7077
      *
7072 7078
      * @param string $subData
7073
-     * @return array
7079
+     * @return string
7074 7080
      */
7075 7081
     private function readBIFF8CellRangeAddressList($subData)
7076 7082
     {
@@ -7463,6 +7469,9 @@  discard block
 block discarded – undo
7463 7469
     }
7464 7470
 
7465 7471
 
7472
+    /**
7473
+     * @param integer $rknum
7474
+     */
7466 7475
     private static function getIEEE754($rknum)
7467 7476
     {
7468 7477
         if (($rknum & 0x02) != 0) {
@@ -7493,7 +7502,7 @@  discard block
 block discarded – undo
7493 7502
      * Get UTF-8 string from (compressed or uncompressed) UTF-16 string
7494 7503
      *
7495 7504
      * @param string $string
7496
-     * @param bool $compressed
7505
+     * @param string|boolean $compressed
7497 7506
      * @return string
7498 7507
      */
7499 7508
     private static function encodeUTF16($string, $compressed = '')
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Excel5/Color.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -9,6 +9,7 @@
 block discarded – undo
9 9
      *
10 10
      * @param int $color Indexed color
11 11
      * @param array $palette Color palette
12
+     * @param integer $version
12 13
      * @return array RGB color value, example: array('rgb' => 'FF0000')
13 14
      */
14 15
     public static function map($color, $palette, $version)
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Excel5/MD5.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -190,6 +190,11 @@
 block discarded – undo
190 190
         return ($Y ^ ($X | (~ $Z))) ; // Y XOR (X OR NOT Z)
191 191
     }
192 192
 
193
+    /**
194
+     * @param string[] $func
195
+     * @param integer $s
196
+     * @param integer $t
197
+     */
193 198
     private static function step($func, &$A, $B, $C, $D, $M, $s, $t)
194 199
     {
195 200
         $A = ($A + call_user_func($func, $B, $C, $D) + $M + $t) & 0xffffffff;
Please login to merge, or discard this patch.