@@ -575,7 +575,7 @@ discard block |
||
575 | 575 | * |
576 | 576 | * @param string $pCoordinateString |
577 | 577 | * @throws Exception |
578 | - * @return array Array containing column and row (indexes 0 and 1) |
|
578 | + * @return string[] Array containing column and row (indexes 0 and 1) |
|
579 | 579 | */ |
580 | 580 | public static function coordinateFromString($pCoordinateString = 'A1') |
581 | 581 | { |
@@ -757,7 +757,7 @@ discard block |
||
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') |
@@ -845,11 +845,11 @@ |
||
845 | 845 | $_indexCache[$pColumnIndex] = chr(65 + $pColumnIndex); |
846 | 846 | } elseif ($pColumnIndex < 702) { |
847 | 847 | $_indexCache[$pColumnIndex] = chr(64 + ($pColumnIndex / 26)) . |
848 | - chr(65 + $pColumnIndex % 26); |
|
848 | + chr(65 + $pColumnIndex % 26); |
|
849 | 849 | } else { |
850 | 850 | $_indexCache[$pColumnIndex] = chr(64 + (($pColumnIndex - 26) / 676)) . |
851 | - chr(65 + ((($pColumnIndex - 26) % 676) / 26)) . |
|
852 | - chr(65 + $pColumnIndex % 26); |
|
851 | + chr(65 + ((($pColumnIndex - 26) % 676) / 26)) . |
|
852 | + chr(65 + $pColumnIndex % 26); |
|
853 | 853 | } |
854 | 854 | } |
855 | 855 |
@@ -177,7 +177,7 @@ discard block |
||
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 |
||
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 |
||
347 | 347 | /** |
348 | 348 | * Get Smooth Line |
349 | 349 | * |
350 | - * @return bool |
|
350 | + * @return string |
|
351 | 351 | */ |
352 | 352 | public function getSmoothLine() |
353 | 353 | { |
@@ -35,14 +35,14 @@ |
||
35 | 35 | const TYPE_PIECHART = 'pieChart'; |
36 | 36 | const TYPE_PIECHART_3D = 'pie3DChart'; |
37 | 37 | const TYPE_DOUGHTNUTCHART = 'doughnutChart'; |
38 | - const TYPE_DONUTCHART = self::TYPE_DOUGHTNUTCHART; // Synonym |
|
38 | + const TYPE_DONUTCHART = self::TYPE_DOUGHTNUTCHART; // Synonym |
|
39 | 39 | const TYPE_SCATTERCHART = 'scatterChart'; |
40 | 40 | const TYPE_SURFACECHART = 'surfaceChart'; |
41 | 41 | const TYPE_SURFACECHART_3D = 'surface3DChart'; |
42 | 42 | const TYPE_RADARCHART = 'radarChart'; |
43 | 43 | const TYPE_BUBBLECHART = 'bubbleChart'; |
44 | 44 | const TYPE_STOCKCHART = 'stockChart'; |
45 | - const TYPE_CANDLECHART = self::TYPE_STOCKCHART; // Synonym |
|
45 | + const TYPE_CANDLECHART = self::TYPE_STOCKCHART; // Synonym |
|
46 | 46 | |
47 | 47 | const GROUPING_CLUSTERED = 'clustered'; |
48 | 48 | const GROUPING_STACKED = 'stacked'; |
@@ -80,6 +80,7 @@ discard block |
||
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 |
||
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 |
||
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 | { |
@@ -387,7 +387,7 @@ |
||
387 | 387 | /** |
388 | 388 | * Get Contiguous |
389 | 389 | * |
390 | - * @return bool |
|
390 | + * @return integer |
|
391 | 391 | */ |
392 | 392 | public function getContiguous() |
393 | 393 | { |
@@ -254,8 +254,8 @@ |
||
254 | 254 | $sheet = $spreadsheet->setActiveSheetIndex($this->sheetIndex); |
255 | 255 | |
256 | 256 | $escapeEnclosures = ['\\' . $this->enclosure, |
257 | - $this->enclosure . $this->enclosure, |
|
258 | - ]; |
|
257 | + $this->enclosure . $this->enclosure, |
|
258 | + ]; |
|
259 | 259 | |
260 | 260 | // Set our starting row based on whether we're in contiguous mode or not |
261 | 261 | $currentRow = 1; |
@@ -260,7 +260,7 @@ |
||
260 | 260 | // Set our starting row based on whether we're in contiguous mode or not |
261 | 261 | $currentRow = 1; |
262 | 262 | if ($this->contiguous) { |
263 | - $currentRow = ($this->contiguousRow == -1) ? $sheet->getHighestRow(): $this->contiguousRow; |
|
263 | + $currentRow = ($this->contiguousRow == -1) ? $sheet->getHighestRow() : $this->contiguousRow; |
|
264 | 264 | } |
265 | 265 | |
266 | 266 | // Loop through each line of the file in turn |
@@ -1207,7 +1207,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 = '') |
@@ -1122,7 +1122,7 @@ |
||
1122 | 1122 | // $range should look like one of these |
1123 | 1123 | // Foo!$C$7:$J$66 |
1124 | 1124 | // Bar!$A$1:$IV$2 |
1125 | - $explodes = explode('!', $range); // FIXME: what if sheetname contains exclamation mark? |
|
1125 | + $explodes = explode('!', $range); // FIXME: what if sheetname contains exclamation mark? |
|
1126 | 1126 | $sheetName = trim($explodes[0], "'"); |
1127 | 1127 | if (count($explodes) == 2) { |
1128 | 1128 | if (strpos($explodes[1], ':') === false) { |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | /** |
114 | 114 | * Set the Default timezone to use for dates |
115 | 115 | * |
116 | - * @param string|\DateTimeZone $timezone The timezone to set for all Excel datetimestamp to PHP DateTime Object conversions |
|
116 | + * @param string|\DateTimeZone $timeZone The timezone to set for all Excel datetimestamp to PHP DateTime Object conversions |
|
117 | 117 | * @throws \Exception |
118 | 118 | * @return bool Success or failure |
119 | 119 | */ |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | /** |
146 | 146 | * Validate a timezone |
147 | 147 | * |
148 | - * @param string|\DateTimeZone $timezone The timezone to validate, either as a timezone string or object |
|
148 | + * @param string|\DateTimeZone $timeZone The timezone to validate, either as a timezone string or object |
|
149 | 149 | * @throws \Exception |
150 | 150 | * @return \DateTimeZone The timezone as a timezone object |
151 | 151 | */ |
@@ -162,8 +162,7 @@ discard block |
||
162 | 162 | /** |
163 | 163 | * Convert a MS serialized datetime value from Excel to a PHP Date/Time object |
164 | 164 | * |
165 | - * @param int|float $dateValue MS Excel serialized date/time value |
|
166 | - * @param \DateTimeZone|string|null $timezone The timezone to assume for the Excel timestamp, |
|
165 | + * @param \DateTimeZone|string|null $timeZone The timezone to assume for the Excel timestamp, |
|
167 | 166 | * if you don't want to treat it as a UTC value |
168 | 167 | * Use the default (UST) unless you absolutely need a conversion |
169 | 168 | * @throws \Exception |
@@ -201,8 +200,7 @@ discard block |
||
201 | 200 | /** |
202 | 201 | * Convert a MS serialized datetime value from Excel to a unix timestamp |
203 | 202 | * |
204 | - * @param int|float $dateValue MS Excel serialized date/time value |
|
205 | - * @param \DateTimeZone|string|null $timezone The timezone to assume for the Excel timestamp, |
|
203 | + * @param \DateTimeZone|string|null $timeZone The timezone to assume for the Excel timestamp, |
|
206 | 204 | * if you don't want to treat it as a UTC value |
207 | 205 | * Use the default (UST) unless you absolutely need a conversion |
208 | 206 | * @throws \Exception |
@@ -217,7 +215,7 @@ discard block |
||
217 | 215 | /** |
218 | 216 | * Convert a date from PHP to an MS Excel serialized date/time value |
219 | 217 | * |
220 | - * @param mixed $dateValue PHP serialized date/time or date object |
|
218 | + * @param integer $dateValue PHP serialized date/time or date object |
|
221 | 219 | * @return float|bool Excel date/time value |
222 | 220 | * or boolean FALSE on failure |
223 | 221 | */ |
@@ -255,7 +253,7 @@ discard block |
||
255 | 253 | /** |
256 | 254 | * Convert a Unix timestamp to an MS Excel serialized date/time value |
257 | 255 | * |
258 | - * @param \DateTimeInterface $dateValue PHP DateTime object |
|
256 | + * @param integer $dateValue PHP DateTime object |
|
259 | 257 | * @return float MS Excel serialized date/time value |
260 | 258 | */ |
261 | 259 | public static function timestampToExcel($dateValue = 0) |
@@ -276,7 +274,7 @@ discard block |
||
276 | 274 | * @param int $hours |
277 | 275 | * @param int $minutes |
278 | 276 | * @param int $seconds |
279 | - * @return int Excel date/time value |
|
277 | + * @return double Excel date/time value |
|
280 | 278 | */ |
281 | 279 | public static function formattedPHPToExcel($year, $month, $day, $hours = 0, $minutes = 0, $seconds = 0) |
282 | 280 | { |
@@ -29,8 +29,8 @@ |
||
29 | 29 | class Date |
30 | 30 | { |
31 | 31 | /** constants */ |
32 | - const CALENDAR_WINDOWS_1900 = 1900; // Base date of 1st Jan 1900 = 1.0 |
|
33 | - const CALENDAR_MAC_1904 = 1904; // Base date of 2nd Jan 1904 = 1.0 |
|
32 | + const CALENDAR_WINDOWS_1900 = 1900; // Base date of 1st Jan 1900 = 1.0 |
|
33 | + const CALENDAR_MAC_1904 = 1904; // Base date of 2nd Jan 1904 = 1.0 |
|
34 | 34 | |
35 | 35 | /* |
36 | 36 | * Names of the months of the year, indexed by shortname |
@@ -93,7 +93,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | { |
@@ -266,7 +266,7 @@ |
||
266 | 266 | public function _readPpsWks($blockId) |
267 | 267 | { |
268 | 268 | $fh = $this->getStream($blockId); |
269 | - for ($pos = 0;; $pos += 128) { |
|
269 | + for ($pos = 0; ; $pos += 128) { |
|
270 | 270 | fseek($fh, $pos, SEEK_SET); |
271 | 271 | $nameUtf16 = fread($fh, 64); |
272 | 272 | $nameLength = self::_readInt2($fh); |
@@ -39,6 +39,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | { |
@@ -63,11 +63,11 @@ discard block |
||
63 | 63 | // Initial Setting for saving |
64 | 64 | $this->_BIG_BLOCK_SIZE = pow( |
65 | 65 | 2, |
66 | - (isset($this->_BIG_BLOCK_SIZE))? self::adjust2($this->_BIG_BLOCK_SIZE) : 9 |
|
66 | + (isset($this->_BIG_BLOCK_SIZE)) ? self::adjust2($this->_BIG_BLOCK_SIZE) : 9 |
|
67 | 67 | ); |
68 | 68 | $this->_SMALL_BLOCK_SIZE = pow( |
69 | 69 | 2, |
70 | - (isset($this->_SMALL_BLOCK_SIZE))? self::adjust2($this->_SMALL_BLOCK_SIZE) : 6 |
|
70 | + (isset($this->_SMALL_BLOCK_SIZE)) ? self::adjust2($this->_SMALL_BLOCK_SIZE) : 6 |
|
71 | 71 | ); |
72 | 72 | |
73 | 73 | if (is_resource($filename)) { |
@@ -130,21 +130,21 @@ discard block |
||
130 | 130 | $raList[$i]->Size = $raList[$i]->getDataLen(); |
131 | 131 | if ($raList[$i]->Size < \PhpSpreadsheet\Shared\OLE::OLE_DATA_SIZE_SMALL) { |
132 | 132 | $iSBcnt += floor($raList[$i]->Size / $this->_SMALL_BLOCK_SIZE) |
133 | - + (($raList[$i]->Size % $this->_SMALL_BLOCK_SIZE)? 1: 0); |
|
133 | + + (($raList[$i]->Size % $this->_SMALL_BLOCK_SIZE) ? 1 : 0); |
|
134 | 134 | } else { |
135 | 135 | $iBBcnt += (floor($raList[$i]->Size / $this->_BIG_BLOCK_SIZE) + |
136 | - (($raList[$i]->Size % $this->_BIG_BLOCK_SIZE)? 1: 0)); |
|
136 | + (($raList[$i]->Size % $this->_BIG_BLOCK_SIZE) ? 1 : 0)); |
|
137 | 137 | } |
138 | 138 | } |
139 | 139 | } |
140 | 140 | $iSmallLen = $iSBcnt * $this->_SMALL_BLOCK_SIZE; |
141 | 141 | $iSlCnt = floor($this->_BIG_BLOCK_SIZE / \PhpSpreadsheet\Shared\OLE::OLE_LONG_INT_SIZE); |
142 | - $iSBDcnt = floor($iSBcnt / $iSlCnt) + (($iSBcnt % $iSlCnt)? 1:0); |
|
142 | + $iSBDcnt = floor($iSBcnt / $iSlCnt) + (($iSBcnt % $iSlCnt) ? 1 : 0); |
|
143 | 143 | $iBBcnt += (floor($iSmallLen / $this->_BIG_BLOCK_SIZE) + |
144 | - (($iSmallLen % $this->_BIG_BLOCK_SIZE)? 1: 0)); |
|
144 | + (($iSmallLen % $this->_BIG_BLOCK_SIZE) ? 1 : 0)); |
|
145 | 145 | $iCnt = count($raList); |
146 | 146 | $iBdCnt = $this->_BIG_BLOCK_SIZE / \PhpSpreadsheet\Shared\OLE::OLE_PPS_SIZE; |
147 | - $iPPScnt = (floor($iCnt / $iBdCnt) + (($iCnt % $iBdCnt)? 1: 0)); |
|
147 | + $iPPScnt = (floor($iCnt / $iBdCnt) + (($iCnt % $iBdCnt) ? 1 : 0)); |
|
148 | 148 | |
149 | 149 | return [$iSBDcnt, $iBBcnt, $iPPScnt]; |
150 | 150 | } |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | { |
161 | 161 | $iWk = log($i2) / log(2); |
162 | 162 | |
163 | - return ($iWk > floor($iWk))? floor($iWk) + 1:$iWk; |
|
163 | + return ($iWk > floor($iWk)) ? floor($iWk) + 1 : $iWk; |
|
164 | 164 | } |
165 | 165 | |
166 | 166 | /** |
@@ -181,16 +181,16 @@ discard block |
||
181 | 181 | $iBdExL = 0; |
182 | 182 | $iAll = $iBBcnt + $iPPScnt + $iSBDcnt; |
183 | 183 | $iAllW = $iAll; |
184 | - $iBdCntW = floor($iAllW / $iBlCnt) + (($iAllW % $iBlCnt)? 1: 0); |
|
185 | - $iBdCnt = floor(($iAll + $iBdCntW) / $iBlCnt) + ((($iAllW + $iBdCntW) % $iBlCnt)? 1: 0); |
|
184 | + $iBdCntW = floor($iAllW / $iBlCnt) + (($iAllW % $iBlCnt) ? 1 : 0); |
|
185 | + $iBdCnt = floor(($iAll + $iBdCntW) / $iBlCnt) + ((($iAllW + $iBdCntW) % $iBlCnt) ? 1 : 0); |
|
186 | 186 | |
187 | 187 | // Calculate BD count |
188 | 188 | if ($iBdCnt > $i1stBdL) { |
189 | 189 | while (1) { |
190 | 190 | ++$iBdExL; |
191 | 191 | ++$iAllW; |
192 | - $iBdCntW = floor($iAllW / $iBlCnt) + (($iAllW % $iBlCnt)? 1: 0); |
|
193 | - $iBdCnt = floor(($iAllW + $iBdCntW) / $iBlCnt) + ((($iAllW + $iBdCntW) % $iBlCnt)? 1: 0); |
|
192 | + $iBdCntW = floor($iAllW / $iBlCnt) + (($iAllW % $iBlCnt) ? 1 : 0); |
|
193 | + $iBdCnt = floor(($iAllW + $iBdCntW) / $iBlCnt) + ((($iAllW + $iBdCntW) % $iBlCnt) ? 1 : 0); |
|
194 | 194 | if ($iBdCnt <= ($iBdExL * $iBlCnt + $i1stBdL)) { |
195 | 195 | break; |
196 | 196 | } |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | $raList[$i]->startBlock = $iStBlk; |
279 | 279 | $iStBlk += |
280 | 280 | (floor($raList[$i]->Size / $this->_BIG_BLOCK_SIZE) + |
281 | - (($raList[$i]->Size % $this->_BIG_BLOCK_SIZE)? 1: 0)); |
|
281 | + (($raList[$i]->Size % $this->_BIG_BLOCK_SIZE) ? 1 : 0)); |
|
282 | 282 | } |
283 | 283 | // Close file for each PPS, and unlink it |
284 | 284 | //if (isset($raList[$i]->_PPS_FILE)) { |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | } |
311 | 311 | if ($raList[$i]->Size < \PhpSpreadsheet\Shared\OLE::OLE_DATA_SIZE_SMALL) { |
312 | 312 | $iSmbCnt = floor($raList[$i]->Size / $this->_SMALL_BLOCK_SIZE) |
313 | - + (($raList[$i]->Size % $this->_SMALL_BLOCK_SIZE)? 1: 0); |
|
313 | + + (($raList[$i]->Size % $this->_SMALL_BLOCK_SIZE) ? 1 : 0); |
|
314 | 314 | // Add to SBD |
315 | 315 | $jB = $iSmbCnt - 1; |
316 | 316 | for ($j = 0; $j < $jB; ++$j) { |
@@ -384,15 +384,15 @@ discard block |
||
384 | 384 | $iBdExL = 0; |
385 | 385 | $iAll = $iBsize + $iPpsCnt + $iSbdSize; |
386 | 386 | $iAllW = $iAll; |
387 | - $iBdCntW = floor($iAllW / $iBbCnt) + (($iAllW % $iBbCnt)? 1: 0); |
|
388 | - $iBdCnt = floor(($iAll + $iBdCntW) / $iBbCnt) + ((($iAllW + $iBdCntW) % $iBbCnt)? 1: 0); |
|
387 | + $iBdCntW = floor($iAllW / $iBbCnt) + (($iAllW % $iBbCnt) ? 1 : 0); |
|
388 | + $iBdCnt = floor(($iAll + $iBdCntW) / $iBbCnt) + ((($iAllW + $iBdCntW) % $iBbCnt) ? 1 : 0); |
|
389 | 389 | // Calculate BD count |
390 | 390 | if ($iBdCnt > $i1stBdL) { |
391 | 391 | while (1) { |
392 | 392 | ++$iBdExL; |
393 | 393 | ++$iAllW; |
394 | - $iBdCntW = floor($iAllW / $iBbCnt) + (($iAllW % $iBbCnt)? 1: 0); |
|
395 | - $iBdCnt = floor(($iAllW + $iBdCntW) / $iBbCnt) + ((($iAllW + $iBdCntW) % $iBbCnt)? 1: 0); |
|
394 | + $iBdCntW = floor($iAllW / $iBbCnt) + (($iAllW % $iBbCnt) ? 1 : 0); |
|
395 | + $iBdCnt = floor(($iAllW + $iBdCntW) / $iBbCnt) + ((($iAllW + $iBdCntW) % $iBbCnt) ? 1 : 0); |
|
396 | 396 | if ($iBdCnt <= ($iBdExL * $iBbCnt + $i1stBdL)) { |
397 | 397 | break; |
398 | 398 | } |
@@ -99,7 +99,7 @@ discard block |
||
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 |
||
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 |
||
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 | { |