@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * |
39 | 39 | * @param row Row number to use in the cell reference |
40 | 40 | * @param column Column number to use in the cell reference |
41 | - * @param relativity Flag indicating the type of reference to return |
|
41 | + * @param relativity integer indicating the type of reference to return |
|
42 | 42 | * 1 or omitted Absolute |
43 | 43 | * 2 Absolute row; relative column |
44 | 44 | * 3 Relative row; absolute column |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * @param sheetText Optional Name of worksheet to use |
50 | 50 | * @param mixed $row |
51 | 51 | * @param mixed $column |
52 | - * @param mixed $relativity |
|
52 | + * @param integer $relativity |
|
53 | 53 | * @param mixed $referenceStyle |
54 | 54 | * @param mixed $sheetText |
55 | 55 | * |
@@ -360,7 +360,7 @@ discard block |
||
360 | 360 | * |
361 | 361 | * @param cellAddress The reference from which you want to base the offset. Reference must refer to a cell or |
362 | 362 | * range of adjacent cells; otherwise, OFFSET returns the #VALUE! error value. |
363 | - * @param rows The number of rows, up or down, that you want the upper-left cell to refer to. |
|
363 | + * @param rows integer number of rows, up or down, that you want the upper-left cell to refer to. |
|
364 | 364 | * Using 5 as the rows argument specifies that the upper-left cell in the reference is |
365 | 365 | * five rows below reference. Rows can be positive (which means below the starting reference) |
366 | 366 | * or negative (which means above the starting reference). |
@@ -372,8 +372,8 @@ discard block |
||
372 | 372 | * @param height The height, in number of rows, that you want the returned reference to be. Height must be a positive number. |
373 | 373 | * @param width The width, in number of columns, that you want the returned reference to be. Width must be a positive number. |
374 | 374 | * @param null|mixed $cellAddress |
375 | - * @param mixed $rows |
|
376 | - * @param mixed $columns |
|
375 | + * @param integer $rows |
|
376 | + * @param integer $columns |
|
377 | 377 | * @param null|mixed $height |
378 | 378 | * @param null|mixed $width |
379 | 379 | * @param Cell $pCell |
@@ -501,7 +501,7 @@ discard block |
||
501 | 501 | * |
502 | 502 | * @param mixed $lookupValue The value that you want to match in lookup_array |
503 | 503 | * @param mixed $lookupArray The range of cells being searched |
504 | - * @param mixed $matchType The number -1, 0, or 1. -1 means above, 0 means exact match, 1 means below. If match_type is 1 or -1, the list has to be ordered. |
|
504 | + * @param integer $matchType The number -1, 0, or 1. -1 means above, 0 means exact match, 1 means below. If match_type is 1 or -1, the list has to be ordered. |
|
505 | 505 | * |
506 | 506 | * @return int The relative position of the found item |
507 | 507 | */ |
@@ -615,8 +615,8 @@ discard block |
||
615 | 615 | * @param row_num The row in array from which to return a value. If row_num is omitted, column_num is required. |
616 | 616 | * @param column_num The column in array from which to return a value. If column_num is omitted, row_num is required. |
617 | 617 | * @param mixed $arrayValues |
618 | - * @param mixed $rowNum |
|
619 | - * @param mixed $columnNum |
|
618 | + * @param integer $rowNum |
|
619 | + * @param integer $columnNum |
|
620 | 620 | * |
621 | 621 | * @return mixed the value of a specified cell or array of cells |
622 | 622 | */ |
@@ -712,11 +712,11 @@ discard block |
||
712 | 712 | * |
713 | 713 | * @param lookup_value The value that you want to match in lookup_array |
714 | 714 | * @param lookup_array The range of cells being searched |
715 | - * @param index_number The column number in table_array from which the matching value must be returned. The first column is 1. |
|
715 | + * @param index_number integer column number in table_array from which the matching value must be returned. The first column is 1. |
|
716 | 716 | * @param not_exact_match determines if you are looking for an exact match based on lookup_value |
717 | 717 | * @param mixed $lookup_value |
718 | 718 | * @param mixed $lookup_array |
719 | - * @param mixed $index_number |
|
719 | + * @param integer $index_number |
|
720 | 720 | * @param mixed $not_exact_match |
721 | 721 | * |
722 | 722 | * @return mixed The value of the found cell |
@@ -61,6 +61,9 @@ discard block |
||
61 | 61 | |
62 | 62 | private static $plotMark = 0; |
63 | 63 | |
64 | + /** |
|
65 | + * @param string $markerID |
|
66 | + */ |
|
64 | 67 | private function formatPointMarker($seriesPlot, $markerID) |
65 | 68 | { |
66 | 69 | $plotMarkKeys = array_keys(self::$markSet); |
@@ -88,6 +91,9 @@ discard block |
||
88 | 91 | return $seriesPlot; |
89 | 92 | } |
90 | 93 | |
94 | + /** |
|
95 | + * @param integer $labelCount |
|
96 | + */ |
|
91 | 97 | private function formatDataSetLabels($groupID, $datasetLabels, $labelCount, $rotation = '') |
92 | 98 | { |
93 | 99 | $datasetLabelFormatCode = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotCategoryByIndex(0)->getFormatCode(); |
@@ -117,6 +123,9 @@ discard block |
||
117 | 123 | return $datasetLabels; |
118 | 124 | } |
119 | 125 | |
126 | + /** |
|
127 | + * @param integer $seriesCount |
|
128 | + */ |
|
120 | 129 | private function percentageSumCalculation($groupID, $seriesCount) |
121 | 130 | { |
122 | 131 | // Adjust our values to a percentage value across all series in the group |
@@ -147,6 +156,9 @@ discard block |
||
147 | 156 | return $dataValues; |
148 | 157 | } |
149 | 158 | |
159 | + /** |
|
160 | + * @param Chart\Title $captionElement |
|
161 | + */ |
|
150 | 162 | private function getCaption($captionElement) |
151 | 163 | { |
152 | 164 | // Read any caption |
@@ -254,6 +266,9 @@ discard block |
||
254 | 266 | $this->renderTitle(); |
255 | 267 | } |
256 | 268 | |
269 | + /** |
|
270 | + * @param integer $groupID |
|
271 | + */ |
|
257 | 272 | private function renderPlotLine($groupID, $filled = false, $combination = false, $dimensions = '2d') |
258 | 273 | { |
259 | 274 | $grouping = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotGrouping(); |
@@ -317,6 +332,9 @@ discard block |
||
317 | 332 | $this->graph->Add($groupPlot); |
318 | 333 | } |
319 | 334 | |
335 | + /** |
|
336 | + * @param integer $groupID |
|
337 | + */ |
|
320 | 338 | private function renderPlotBar($groupID, $dimensions = '2d') |
321 | 339 | { |
322 | 340 | $rotation = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotDirection(); |
@@ -401,6 +419,10 @@ discard block |
||
401 | 419 | $this->graph->Add($groupPlot); |
402 | 420 | } |
403 | 421 | |
422 | + /** |
|
423 | + * @param integer $groupID |
|
424 | + * @param boolean $bubble |
|
425 | + */ |
|
404 | 426 | private function renderPlotScatter($groupID, $bubble) |
405 | 427 | { |
406 | 428 | $grouping = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotGrouping(); |
@@ -446,6 +468,9 @@ discard block |
||
446 | 468 | } |
447 | 469 | } |
448 | 470 | |
471 | + /** |
|
472 | + * @param integer $groupID |
|
473 | + */ |
|
449 | 474 | private function renderPlotRadar($groupID) |
450 | 475 | { |
451 | 476 | $radarStyle = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotStyle(); |
@@ -484,6 +509,9 @@ discard block |
||
484 | 509 | } |
485 | 510 | } |
486 | 511 | |
512 | + /** |
|
513 | + * @param integer $groupID |
|
514 | + */ |
|
487 | 515 | private function renderPlotContour($groupID) |
488 | 516 | { |
489 | 517 | $contourStyle = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotStyle(); |
@@ -504,6 +532,9 @@ discard block |
||
504 | 532 | $this->graph->Add($seriesPlot); |
505 | 533 | } |
506 | 534 | |
535 | + /** |
|
536 | + * @param integer $groupID |
|
537 | + */ |
|
507 | 538 | private function renderPlotStock($groupID) |
508 | 539 | { |
509 | 540 | $seriesCount = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotSeriesCount(); |
@@ -543,6 +574,9 @@ discard block |
||
543 | 574 | $this->graph->Add($seriesPlot); |
544 | 575 | } |
545 | 576 | |
577 | + /** |
|
578 | + * @param integer $groupCount |
|
579 | + */ |
|
546 | 580 | private function renderAreaChart($groupCount, $dimensions = '2d') |
547 | 581 | { |
548 | 582 | require_once Settings::getChartRendererPath() . 'jpgraph_line.php'; |
@@ -554,6 +588,9 @@ discard block |
||
554 | 588 | } |
555 | 589 | } |
556 | 590 | |
591 | + /** |
|
592 | + * @param integer $groupCount |
|
593 | + */ |
|
557 | 594 | private function renderLineChart($groupCount, $dimensions = '2d') |
558 | 595 | { |
559 | 596 | require_once Settings::getChartRendererPath() . 'jpgraph_line.php'; |
@@ -565,6 +602,9 @@ discard block |
||
565 | 602 | } |
566 | 603 | } |
567 | 604 | |
605 | + /** |
|
606 | + * @param integer $groupCount |
|
607 | + */ |
|
568 | 608 | private function renderBarChart($groupCount, $dimensions = '2d') |
569 | 609 | { |
570 | 610 | require_once Settings::getChartRendererPath() . 'jpgraph_bar.php'; |
@@ -576,6 +616,9 @@ discard block |
||
576 | 616 | } |
577 | 617 | } |
578 | 618 | |
619 | + /** |
|
620 | + * @param integer $groupCount |
|
621 | + */ |
|
579 | 622 | private function renderScatterChart($groupCount) |
580 | 623 | { |
581 | 624 | require_once Settings::getChartRendererPath() . 'jpgraph_scatter.php'; |
@@ -589,6 +632,9 @@ discard block |
||
589 | 632 | } |
590 | 633 | } |
591 | 634 | |
635 | + /** |
|
636 | + * @param integer $groupCount |
|
637 | + */ |
|
592 | 638 | private function renderBubbleChart($groupCount) |
593 | 639 | { |
594 | 640 | require_once Settings::getChartRendererPath() . 'jpgraph_scatter.php'; |
@@ -600,6 +646,9 @@ discard block |
||
600 | 646 | } |
601 | 647 | } |
602 | 648 | |
649 | + /** |
|
650 | + * @param integer $groupCount |
|
651 | + */ |
|
603 | 652 | private function renderPieChart($groupCount, $dimensions = '2d', $doughnut = false, $multiplePlots = false) |
604 | 653 | { |
605 | 654 | require_once Settings::getChartRendererPath() . 'jpgraph_pie.php'; |
@@ -676,6 +725,9 @@ discard block |
||
676 | 725 | } |
677 | 726 | } |
678 | 727 | |
728 | + /** |
|
729 | + * @param integer $groupCount |
|
730 | + */ |
|
679 | 731 | private function renderRadarChart($groupCount) |
680 | 732 | { |
681 | 733 | require_once Settings::getChartRendererPath() . 'jpgraph_radar.php'; |
@@ -687,6 +739,9 @@ discard block |
||
687 | 739 | } |
688 | 740 | } |
689 | 741 | |
742 | + /** |
|
743 | + * @param integer $groupCount |
|
744 | + */ |
|
690 | 745 | private function renderStockChart($groupCount) |
691 | 746 | { |
692 | 747 | require_once Settings::getChartRendererPath() . 'jpgraph_stock.php'; |
@@ -698,6 +753,10 @@ discard block |
||
698 | 753 | } |
699 | 754 | } |
700 | 755 | |
756 | + /** |
|
757 | + * @param integer $groupCount |
|
758 | + * @param string|null $dimensions |
|
759 | + */ |
|
701 | 760 | private function renderContourChart($groupCount, $dimensions) |
702 | 761 | { |
703 | 762 | require_once Settings::getChartRendererPath() . 'jpgraph_contour.php'; |
@@ -709,6 +768,9 @@ discard block |
||
709 | 768 | } |
710 | 769 | } |
711 | 770 | |
771 | + /** |
|
772 | + * @param integer $groupCount |
|
773 | + */ |
|
712 | 774 | private function renderCombinationChart($groupCount, $dimensions, $outputDestination) |
713 | 775 | { |
714 | 776 | require_once Settings::getChartRendererPath() . 'jpgraph_line.php'; |
@@ -410,8 +410,8 @@ discard block |
||
410 | 410 | * @param string $id1 |
411 | 411 | * @param string $id2 |
412 | 412 | * @param bool $isMultiLevelSeries |
413 | - * @param mixed $xAxis |
|
414 | - * @param mixed $yAxis |
|
413 | + * @param null|Axis $xAxis |
|
414 | + * @param null|Axis $yAxis |
|
415 | 415 | * |
416 | 416 | * @throws WriterException |
417 | 417 | */ |
@@ -533,10 +533,10 @@ discard block |
||
533 | 533 | * @param string $id1 |
534 | 534 | * @param string $id2 |
535 | 535 | * @param bool $isMultiLevelSeries |
536 | - * @param mixed $xAxis |
|
537 | - * @param mixed $yAxis |
|
538 | - * @param mixed $majorGridlines |
|
539 | - * @param mixed $minorGridlines |
|
536 | + * @param null|Axis $xAxis |
|
537 | + * @param null|Axis $yAxis |
|
538 | + * @param null|GridLines $majorGridlines |
|
539 | + * @param null|GridLines $minorGridlines |
|
540 | 540 | * |
541 | 541 | * @throws WriterException |
542 | 542 | */ |
@@ -140,7 +140,7 @@ |
||
140 | 140 | /** |
141 | 141 | * Constructor. |
142 | 142 | * |
143 | - * @param Style The XF format |
|
143 | + * @param Style Style XF format |
|
144 | 144 | */ |
145 | 145 | public function __construct(Style $style) |
146 | 146 | { |
@@ -177,16 +177,25 @@ discard block |
||
177 | 177 | return fread($this->fileHandle, $blockSize); |
178 | 178 | } |
179 | 179 | |
180 | + /** |
|
181 | + * @param string $data |
|
182 | + */ |
|
180 | 183 | private static function startsWithTag($data) |
181 | 184 | { |
182 | 185 | return '<' === substr(trim($data), 0, 1); |
183 | 186 | } |
184 | 187 | |
188 | + /** |
|
189 | + * @param string $data |
|
190 | + */ |
|
185 | 191 | private static function endsWithTag($data) |
186 | 192 | { |
187 | 193 | return '>' === substr(trim($data), -1, 1); |
188 | 194 | } |
189 | 195 | |
196 | + /** |
|
197 | + * @param string $data |
|
198 | + */ |
|
190 | 199 | private static function containsTags($data) |
191 | 200 | { |
192 | 201 | return strlen($data) !== strlen(strip_tags($data)); |
@@ -260,6 +269,10 @@ discard block |
||
260 | 269 | return array_pop($this->nestedColumn); |
261 | 270 | } |
262 | 271 | |
272 | + /** |
|
273 | + * @param Worksheet $sheet |
|
274 | + * @param integer $row |
|
275 | + */ |
|
263 | 276 | protected function flushCell($sheet, $column, $row, &$cellContent) |
264 | 277 | { |
265 | 278 | if (is_string($cellContent)) { |
@@ -45,7 +45,6 @@ |
||
45 | 45 | /** |
46 | 46 | * Create a new row. |
47 | 47 | * |
48 | - * @param Worksheet $parent |
|
49 | 48 | * @param int $rowIndex |
50 | 49 | */ |
51 | 50 | public function __construct(Worksheet $worksheet = null, $rowIndex = 1) |
@@ -1072,7 +1072,6 @@ |
||
1072 | 1072 | * @param XMLWriter $objWriter XML Writer |
1073 | 1073 | * @param PhpspreadsheetWorksheet $pSheet Worksheet |
1074 | 1074 | * @param Cell $pCellAddress Cell Address |
1075 | - * @param string[] $pStringTable String table |
|
1076 | 1075 | * @param string[] $pFlippedStringTable String table (flipped), for faster index searching |
1077 | 1076 | * |
1078 | 1077 | * @throws WriterException |
@@ -243,7 +243,7 @@ |
||
243 | 243 | /** |
244 | 244 | * Solve A*X = B. |
245 | 245 | * |
246 | - * @param $B a Matrix with as many rows as A and any number of columns |
|
246 | + * @param Matrix $B a Matrix with as many rows as A and any number of columns |
|
247 | 247 | * |
248 | 248 | * @throws CalculationException illegalArgumentException Matrix row dimensions must agree |
249 | 249 | * @throws CalculationException runtimeException Matrix is singular |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * If a resource pointer to a stream created by fopen() is passed |
60 | 60 | * it will be used, but you have to close such stream by yourself. |
61 | 61 | * |
62 | - * @param string|resource $filename the name of the file or stream where to save the OLE container |
|
62 | + * @param string $filename the name of the file or stream where to save the OLE container |
|
63 | 63 | * |
64 | 64 | * @throws WriterException |
65 | 65 | * |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | * |
125 | 125 | * @param array $raList Reference to an array of PPS's |
126 | 126 | * |
127 | - * @return float[] The array of numbers |
|
127 | + * @return double[] The array of numbers |
|
128 | 128 | */ |
129 | 129 | public function _calcSize(&$raList) |
130 | 130 | { |