Completed
Push — develop ( 6acd40...67d526 )
by Adrien
16:21
created
src/PhpSpreadsheet/Cell.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -757,7 +757,7 @@
 block discarded – undo
757 757
      *    Calculate range boundaries
758 758
      *
759 759
      *    @param    string    $pRange        Cell range (e.g. A1:A1)
760
-     *    @return    array    Range coordinates array(Start Cell, End Cell)
760
+     *    @return    integer    Range coordinates array(Start Cell, End Cell)
761 761
      *                    where Start Cell and End Cell are arrays (Column ID, Row Number)
762 762
      */
763 763
     public static function getRangeBoundaries($pRange = 'A1:A1')
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/Properties.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -136,6 +136,11 @@  discard block
 block discarded – undo
136 136
         return (string) 100 - $alpha . '000';
137 137
     }
138 138
 
139
+    /**
140
+     * @param string $color
141
+     * @param integer $alpha
142
+     * @param string $type
143
+     */
139 144
     protected function setColorProperties($color, $alpha, $type)
140 145
     {
141 146
         return [
@@ -145,6 +150,9 @@  discard block
 block discarded – undo
145 150
         ];
146 151
     }
147 152
 
153
+    /**
154
+     * @param string $array_kay_selector
155
+     */
148 156
     protected function getLineStyleArrowSize($array_selector, $array_kay_selector)
149 157
     {
150 158
         $sizes = [
@@ -162,6 +170,9 @@  discard block
 block discarded – undo
162 170
         return $sizes[$array_selector][$array_kay_selector];
163 171
     }
164 172
 
173
+    /**
174
+     * @param integer $shadow_presets_option
175
+     */
165 176
     protected function getShadowPresetsMap($shadow_presets_option)
166 177
     {
167 178
         $presets_options = [
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Excel2007.php 1 patch
Doc Comments   +12 added lines, -1 removed lines patch added patch discarded remove patch
@@ -284,6 +284,11 @@  discard block
 block discarded – undo
284 284
         return isset($c->v) ? (string) $c->v : null;
285 285
     }
286 286
 
287
+    /**
288
+     * @param string $r
289
+     * @param string $cellDataType
290
+     * @param string $castBaseType
291
+     */
287 292
     private function castToFormula($c, $r, &$cellDataType, &$value, &$calculatedValue, &$sharedFormulas, $castBaseType)
288 293
     {
289 294
         //        echo 'Formula', PHP_EOL;
@@ -354,7 +359,7 @@  discard block
 block discarded – undo
354 359
      *
355 360
      * @param     string         $pFilename
356 361
      * @throws    Exception
357
-     * @return    Spreadsheet
362
+     * @return    \PhpSpreadsheet\Spreadsheet
358 363
      */
359 364
     public function load($pFilename)
360 365
     {
@@ -2055,6 +2060,9 @@  discard block
 block discarded – undo
2055 2060
         }
2056 2061
     }
2057 2062
 
2063
+    /**
2064
+     * @param \PhpSpreadsheet\Style\Border $docBorder
2065
+     */
2058 2066
     private static function readBorder($docBorder, $eleBorder)
2059 2067
     {
2060 2068
         if (isset($eleBorder['style'])) {
@@ -2177,6 +2185,9 @@  discard block
 block discarded – undo
2177 2185
         return preg_replace('~[^/]+/\.\./~', '', dirname($base) . "/$add");
2178 2186
     }
2179 2187
 
2188
+    /**
2189
+     * @param string $style
2190
+     */
2180 2191
     private static function toCSSArray($style)
2181 2192
     {
2182 2193
         $style = str_replace(["\r", "\n"], '', $style);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Excel2007/Chart.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -204,6 +204,9 @@
 block discarded – undo
204 204
         return $chart;
205 205
     }
206 206
 
207
+    /**
208
+     * @param string $type
209
+     */
207 210
     private static function chartTitle($titleDetails, $namespacesChartMeta, $type)
208 211
     {
209 212
         $caption = [];
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Excel5.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5157,7 +5157,7 @@  discard block
 block discarded – undo
5157 5157
      * is in one piece.
5158 5158
      * Moves to next current position in data stream to start of next record different from a CONtINUE record
5159 5159
      *
5160
-     * @return array
5160
+     * @return integer|null
5161 5161
      */
5162 5162
     private function getSplicedRecordData()
5163 5163
     {
@@ -5421,7 +5421,7 @@  discard block
 block discarded – undo
5421 5421
      * @param string $formulaData Formula data
5422 5422
      * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas
5423 5423
      * @throws Exception
5424
-     * @return array
5424
+     * @return string
5425 5425
      */
5426 5426
     private function getNextToken($formulaData, $baseCell = 'A1')
5427 5427
     {
@@ -6989,7 +6989,7 @@  discard block
 block discarded – undo
6989 6989
      * section 2.5.15
6990 6990
      *
6991 6991
      * @param string $subData
6992
-     * @return array
6992
+     * @return string
6993 6993
      */
6994 6994
     private function readBIFF8CellRangeAddressList($subData)
6995 6995
     {
@@ -7100,7 +7100,7 @@  discard block
 block discarded – undo
7100 7100
      * section 2.5.8
7101 7101
      *
7102 7102
      * @param string $arrayData
7103
-     * @return array
7103
+     * @return string
7104 7104
      */
7105 7105
     private static function readBIFF8ConstantArray($arrayData)
7106 7106
     {
@@ -7138,7 +7138,7 @@  discard block
 block discarded – undo
7138 7138
      * returns e.g. array('value' => '5', 'size' => 9)
7139 7139
      *
7140 7140
      * @param string $valueData
7141
-     * @return array
7141
+     * @return string
7142 7142
      */
7143 7143
     private static function readBIFF8Constant($valueData)
7144 7144
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/HTML.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -202,6 +202,10 @@
 block discarded – undo
202 202
         return array_pop($this->nestedColumn);
203 203
     }
204 204
 
205
+    /**
206
+     * @param \PhpSpreadsheet\Worksheet $sheet
207
+     * @param integer $row
208
+     */
205 209
     protected function flushCell($sheet, $column, $row, &$cellContent)
206 210
     {
207 211
         if (is_string($cellContent)) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Date.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     /**
165 165
      * Convert a MS serialized datetime value from Excel to a PHP Date/Time object
166 166
      *
167
-     * @param     int|float                      $excelTimestamp      MS Excel serialized date/time value
167
+     * @param     integer                      $excelTimestamp      MS Excel serialized date/time value
168 168
      * @param     \DateTimeZone|string|null          $timeZone            The timezone to assume for the Excel timestamp,
169 169
      *                                                                        if you don't want to treat it as a UTC value
170 170
      *                                                                    Use the default (UST) unless you absolutely need a conversion
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
     /**
204 204
      * Convert a MS serialized datetime value from Excel to a unix timestamp
205 205
      *
206
-     * @param     int|float                      $excelTimestamp        MS Excel serialized date/time value
206
+     * @param     integer                      $excelTimestamp        MS Excel serialized date/time value
207 207
      * @param     \DateTimeZone|string|null          $timeZone            The timezone to assume for the Excel timestamp,
208 208
      *                                                                        if you don't want to treat it as a UTC value
209 209
      *                                                                    Use the default (UST) unless you absolutely need a conversion
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
     /**
220 220
      *    Convert a date from PHP to an MS Excel serialized date/time value
221 221
      *
222
-     *    @param    mixed            $dateValue            Unix Timestamp or PHP DateTime object or a string
222
+     *    @param    integer            $dateValue            Unix Timestamp or PHP DateTime object or a string
223 223
      *    @return   float|bool    Excel date/time value
224 224
      *                                  or boolean FALSE on failure
225 225
      */
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
     /**
258 258
      *    Convert a Unix timestamp to an MS Excel serialized date/time value
259 259
      *
260
-     *    @param    \DateTimeInterface    $dateValue       Unix Timestamp
260
+     *    @param    integer    $dateValue       Unix Timestamp
261 261
      *    @return   float                 MS Excel serialized date/time value
262 262
      */
263 263
     public static function timestampToExcel($dateValue = 0)
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Drawing.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      * Convert pixels to EMU
31 31
      *
32 32
      * @param     int $pValue    Value in pixels
33
-     * @return     int            Value in EMU
33
+     * @return     double            Value in EMU
34 34
      */
35 35
     public static function pixelsToEMU($pValue = 0)
36 36
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Font.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@
 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     int                        $rotation        Rotation angle
242 242
      * @param     \PhpSpreadsheet\Style\Font|null    $defaultFont    Font object
243 243
      * @return     int        Column width
Please login to merge, or discard this patch.