@@ -114,8 +114,8 @@ discard block |
||
114 | 114 | * @author Jaco van Kooten |
115 | 115 | * |
116 | 116 | * @param mixed $x |
117 | - * @param mixed $p |
|
118 | - * @param mixed $q |
|
117 | + * @param double $p |
|
118 | + * @param double $q |
|
119 | 119 | */ |
120 | 120 | private static function betaFraction($x, $p, $q) |
121 | 121 | { |
@@ -717,8 +717,8 @@ discard block |
||
717 | 717 | * @param float $value Value at which you want to evaluate the distribution |
718 | 718 | * @param float $alpha Parameter to the distribution |
719 | 719 | * @param float $beta Parameter to the distribution |
720 | - * @param mixed $rMin |
|
721 | - * @param mixed $rMax |
|
720 | + * @param integer $rMin |
|
721 | + * @param integer $rMax |
|
722 | 722 | * |
723 | 723 | * @return float |
724 | 724 | */ |
@@ -756,8 +756,8 @@ discard block |
||
756 | 756 | * @param float $probability Probability at which you want to evaluate the distribution |
757 | 757 | * @param float $alpha Parameter to the distribution |
758 | 758 | * @param float $beta Parameter to the distribution |
759 | - * @param float $rMin Minimum value |
|
760 | - * @param float $rMax Maximum value |
|
759 | + * @param integer $rMin Minimum value |
|
760 | + * @param integer $rMax Maximum value |
|
761 | 761 | * |
762 | 762 | * @return float |
763 | 763 | */ |
@@ -1823,7 +1823,6 @@ discard block |
||
1823 | 1823 | * @category Statistical Functions |
1824 | 1824 | * |
1825 | 1825 | * @param mixed $args Data values |
1826 | - * @param int $entry Position (ordered from the largest) in the array or range of data to return |
|
1827 | 1826 | * |
1828 | 1827 | * @return float |
1829 | 1828 | */ |
@@ -2554,7 +2553,6 @@ discard block |
||
2554 | 2553 | * @category Statistical Functions |
2555 | 2554 | * |
2556 | 2555 | * @param mixed $args Data values |
2557 | - * @param float $entry Percentile value in the range 0..1, inclusive. |
|
2558 | 2556 | * |
2559 | 2557 | * @return float |
2560 | 2558 | */ |
@@ -2605,7 +2603,7 @@ discard block |
||
2605 | 2603 | * @param number the number of significant digits for the returned percentage value |
2606 | 2604 | * @param mixed $valueSet |
2607 | 2605 | * @param mixed $value |
2608 | - * @param mixed $significance |
|
2606 | + * @param integer $significance |
|
2609 | 2607 | * |
2610 | 2608 | * @return float |
2611 | 2609 | */ |
@@ -2726,7 +2724,6 @@ discard block |
||
2726 | 2724 | * @category Statistical Functions |
2727 | 2725 | * |
2728 | 2726 | * @param mixed $args Data values |
2729 | - * @param int $entry Quartile value in the range 1..3, inclusive. |
|
2730 | 2727 | * |
2731 | 2728 | * @return float |
2732 | 2729 | */ |
@@ -2759,7 +2756,7 @@ discard block |
||
2759 | 2756 | * @param mixed Order to sort the values in the value set |
2760 | 2757 | * @param mixed $value |
2761 | 2758 | * @param mixed $valueSet |
2762 | - * @param mixed $order |
|
2759 | + * @param integer $order |
|
2763 | 2760 | * |
2764 | 2761 | * @return float |
2765 | 2762 | */ |
@@ -2901,7 +2898,6 @@ discard block |
||
2901 | 2898 | * @category Statistical Functions |
2902 | 2899 | * |
2903 | 2900 | * @param mixed $args Data values |
2904 | - * @param int $entry Position (ordered from the smallest) in the array or range of data to return |
|
2905 | 2901 | * |
2906 | 2902 | * @return float |
2907 | 2903 | */ |
@@ -3365,7 +3361,6 @@ discard block |
||
3365 | 3361 | * @category Statistical Functions |
3366 | 3362 | * |
3367 | 3363 | * @param mixed $args Data values |
3368 | - * @param float $discard Percentage to discard |
|
3369 | 3364 | * |
3370 | 3365 | * @return float |
3371 | 3366 | */ |
@@ -155,16 +155,25 @@ discard block |
||
155 | 155 | return fread($this->fileHandle, $blockSize); |
156 | 156 | } |
157 | 157 | |
158 | + /** |
|
159 | + * @param string $data |
|
160 | + */ |
|
158 | 161 | private static function startsWithTag($data) |
159 | 162 | { |
160 | 163 | return '<' === substr(trim($data), 0, 1); |
161 | 164 | } |
162 | 165 | |
166 | + /** |
|
167 | + * @param string $data |
|
168 | + */ |
|
163 | 169 | private static function endsWithTag($data) |
164 | 170 | { |
165 | 171 | return '>' === substr(trim($data), -1, 1); |
166 | 172 | } |
167 | 173 | |
174 | + /** |
|
175 | + * @param string $data |
|
176 | + */ |
|
168 | 177 | private static function containsTags($data) |
169 | 178 | { |
170 | 179 | return strlen($data) !== strlen(strip_tags($data)); |
@@ -238,6 +247,9 @@ discard block |
||
238 | 247 | return array_pop($this->nestedColumn); |
239 | 248 | } |
240 | 249 | |
250 | + /** |
|
251 | + * @param integer $row |
|
252 | + */ |
|
241 | 253 | protected function flushCell(Worksheet $sheet, $column, $row, &$cellContent) |
242 | 254 | { |
243 | 255 | if (is_string($cellContent)) { |
@@ -236,6 +236,9 @@ discard block |
||
236 | 236 | return $this->loadIntoExisting($pFilename, $spreadsheet); |
237 | 237 | } |
238 | 238 | |
239 | + /** |
|
240 | + * @param string $styleAttributeValue |
|
241 | + */ |
|
239 | 242 | private static function identifyFixedStyleValue($styleList, &$styleAttributeValue) |
240 | 243 | { |
241 | 244 | $styleAttributeValue = strtolower($styleAttributeValue); |
@@ -811,6 +814,9 @@ discard block |
||
811 | 814 | return $spreadsheet; |
812 | 815 | } |
813 | 816 | |
817 | + /** |
|
818 | + * @param string $charset |
|
819 | + */ |
|
814 | 820 | protected static function convertStringEncoding($string, $charset) |
815 | 821 | { |
816 | 822 | if ($charset != 'UTF-8') { |
@@ -820,6 +826,9 @@ discard block |
||
820 | 826 | return $string; |
821 | 827 | } |
822 | 828 | |
829 | + /** |
|
830 | + * @param string $is |
|
831 | + */ |
|
823 | 832 | protected function parseRichText($is) |
824 | 833 | { |
825 | 834 | $value = new RichText(); |
@@ -536,7 +536,7 @@ |
||
536 | 536 | * |
537 | 537 | * @param int $string A binary string with the encoded date |
538 | 538 | * |
539 | - * @return string The timestamp corresponding to the string |
|
539 | + * @return double The timestamp corresponding to the string |
|
540 | 540 | */ |
541 | 541 | public static function OLE2LocalDate($string) |
542 | 542 | { |
@@ -76,6 +76,9 @@ discard block |
||
76 | 76 | $loaded = true; |
77 | 77 | } |
78 | 78 | |
79 | + /** |
|
80 | + * @param string $markerID |
|
81 | + */ |
|
79 | 82 | private function formatPointMarker($seriesPlot, $markerID) |
80 | 83 | { |
81 | 84 | $plotMarkKeys = array_keys(self::$markSet); |
@@ -103,6 +106,9 @@ discard block |
||
103 | 106 | return $seriesPlot; |
104 | 107 | } |
105 | 108 | |
109 | + /** |
|
110 | + * @param integer $labelCount |
|
111 | + */ |
|
106 | 112 | private function formatDataSetLabels($groupID, $datasetLabels, $labelCount, $rotation = '') |
107 | 113 | { |
108 | 114 | $datasetLabelFormatCode = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotCategoryByIndex(0)->getFormatCode(); |
@@ -132,6 +138,9 @@ discard block |
||
132 | 138 | return $datasetLabels; |
133 | 139 | } |
134 | 140 | |
141 | + /** |
|
142 | + * @param integer $seriesCount |
|
143 | + */ |
|
135 | 144 | private function percentageSumCalculation($groupID, $seriesCount) |
136 | 145 | { |
137 | 146 | // Adjust our values to a percentage value across all series in the group |
@@ -162,6 +171,9 @@ discard block |
||
162 | 171 | return $dataValues; |
163 | 172 | } |
164 | 173 | |
174 | + /** |
|
175 | + * @param Chart\Title $captionElement |
|
176 | + */ |
|
165 | 177 | private function getCaption($captionElement) |
166 | 178 | { |
167 | 179 | // Read any caption |
@@ -272,6 +284,9 @@ discard block |
||
272 | 284 | $this->renderTitle(); |
273 | 285 | } |
274 | 286 | |
287 | + /** |
|
288 | + * @param integer $groupID |
|
289 | + */ |
|
275 | 290 | private function renderPlotLine($groupID, $filled = false, $combination = false, $dimensions = '2d') |
276 | 291 | { |
277 | 292 | $grouping = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotGrouping(); |
@@ -335,6 +350,9 @@ discard block |
||
335 | 350 | $this->graph->Add($groupPlot); |
336 | 351 | } |
337 | 352 | |
353 | + /** |
|
354 | + * @param integer $groupID |
|
355 | + */ |
|
338 | 356 | private function renderPlotBar($groupID, $dimensions = '2d') |
339 | 357 | { |
340 | 358 | $rotation = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotDirection(); |
@@ -419,6 +437,10 @@ discard block |
||
419 | 437 | $this->graph->Add($groupPlot); |
420 | 438 | } |
421 | 439 | |
440 | + /** |
|
441 | + * @param integer $groupID |
|
442 | + * @param boolean $bubble |
|
443 | + */ |
|
422 | 444 | private function renderPlotScatter($groupID, $bubble) |
423 | 445 | { |
424 | 446 | $grouping = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotGrouping(); |
@@ -464,6 +486,9 @@ discard block |
||
464 | 486 | } |
465 | 487 | } |
466 | 488 | |
489 | + /** |
|
490 | + * @param integer $groupID |
|
491 | + */ |
|
467 | 492 | private function renderPlotRadar($groupID) |
468 | 493 | { |
469 | 494 | $radarStyle = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotStyle(); |
@@ -502,6 +527,9 @@ discard block |
||
502 | 527 | } |
503 | 528 | } |
504 | 529 | |
530 | + /** |
|
531 | + * @param integer $groupID |
|
532 | + */ |
|
505 | 533 | private function renderPlotContour($groupID) |
506 | 534 | { |
507 | 535 | $contourStyle = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotStyle(); |
@@ -522,6 +550,9 @@ discard block |
||
522 | 550 | $this->graph->Add($seriesPlot); |
523 | 551 | } |
524 | 552 | |
553 | + /** |
|
554 | + * @param integer $groupID |
|
555 | + */ |
|
525 | 556 | private function renderPlotStock($groupID) |
526 | 557 | { |
527 | 558 | $seriesCount = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotSeriesCount(); |
@@ -561,6 +592,9 @@ discard block |
||
561 | 592 | $this->graph->Add($seriesPlot); |
562 | 593 | } |
563 | 594 | |
595 | + /** |
|
596 | + * @param integer $groupCount |
|
597 | + */ |
|
564 | 598 | private function renderAreaChart($groupCount, $dimensions = '2d') |
565 | 599 | { |
566 | 600 | $this->renderCartesianPlotArea(); |
@@ -570,6 +604,9 @@ discard block |
||
570 | 604 | } |
571 | 605 | } |
572 | 606 | |
607 | + /** |
|
608 | + * @param integer $groupCount |
|
609 | + */ |
|
573 | 610 | private function renderLineChart($groupCount, $dimensions = '2d') |
574 | 611 | { |
575 | 612 | $this->renderCartesianPlotArea(); |
@@ -579,6 +616,9 @@ discard block |
||
579 | 616 | } |
580 | 617 | } |
581 | 618 | |
619 | + /** |
|
620 | + * @param integer $groupCount |
|
621 | + */ |
|
582 | 622 | private function renderBarChart($groupCount, $dimensions = '2d') |
583 | 623 | { |
584 | 624 | $this->renderCartesianPlotArea(); |
@@ -588,6 +628,9 @@ discard block |
||
588 | 628 | } |
589 | 629 | } |
590 | 630 | |
631 | + /** |
|
632 | + * @param integer $groupCount |
|
633 | + */ |
|
591 | 634 | private function renderScatterChart($groupCount) |
592 | 635 | { |
593 | 636 | $this->renderCartesianPlotArea('linlin'); |
@@ -597,6 +640,9 @@ discard block |
||
597 | 640 | } |
598 | 641 | } |
599 | 642 | |
643 | + /** |
|
644 | + * @param integer $groupCount |
|
645 | + */ |
|
600 | 646 | private function renderBubbleChart($groupCount) |
601 | 647 | { |
602 | 648 | $this->renderCartesianPlotArea('linlin'); |
@@ -606,6 +652,9 @@ discard block |
||
606 | 652 | } |
607 | 653 | } |
608 | 654 | |
655 | + /** |
|
656 | + * @param integer $groupCount |
|
657 | + */ |
|
609 | 658 | private function renderPieChart($groupCount, $dimensions = '2d', $doughnut = false, $multiplePlots = false) |
610 | 659 | { |
611 | 660 | $this->renderPiePlotArea($doughnut); |
@@ -677,6 +726,9 @@ discard block |
||
677 | 726 | } |
678 | 727 | } |
679 | 728 | |
729 | + /** |
|
730 | + * @param integer $groupCount |
|
731 | + */ |
|
680 | 732 | private function renderRadarChart($groupCount) |
681 | 733 | { |
682 | 734 | $this->renderRadarPlotArea(); |
@@ -686,6 +738,9 @@ discard block |
||
686 | 738 | } |
687 | 739 | } |
688 | 740 | |
741 | + /** |
|
742 | + * @param integer $groupCount |
|
743 | + */ |
|
689 | 744 | private function renderStockChart($groupCount) |
690 | 745 | { |
691 | 746 | $this->renderCartesianPlotArea('intint'); |
@@ -695,6 +750,10 @@ discard block |
||
695 | 750 | } |
696 | 751 | } |
697 | 752 | |
753 | + /** |
|
754 | + * @param integer $groupCount |
|
755 | + * @param string|null $dimensions |
|
756 | + */ |
|
698 | 757 | private function renderContourChart($groupCount, $dimensions) |
699 | 758 | { |
700 | 759 | $this->renderCartesianPlotArea('intint'); |
@@ -704,6 +763,10 @@ discard block |
||
704 | 763 | } |
705 | 764 | } |
706 | 765 | |
766 | + /** |
|
767 | + * @param integer $groupCount |
|
768 | + * @param string $outputDestination |
|
769 | + */ |
|
707 | 770 | private function renderCombinationChart($groupCount, $dimensions, $outputDestination) |
708 | 771 | { |
709 | 772 | $this->renderCartesianPlotArea(); |