@@ -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'; |
@@ -1066,7 +1066,6 @@ |
||
1066 | 1066 | * @param \PhpOffice\PhpSpreadsheet\Shared\XMLWriter $objWriter XML Writer |
1067 | 1067 | * @param \PhpOffice\PhpSpreadsheet\Worksheet $pSheet Worksheet |
1068 | 1068 | * @param Cell $pCellAddress Cell Address |
1069 | - * @param string[] $pStringTable String table |
|
1070 | 1069 | * @param string[] $pFlippedStringTable String table (flipped), for faster index searching |
1071 | 1070 | * |
1072 | 1071 | * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception |
@@ -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 | { |