Completed
Push — develop ( a6a709...ab7aa6 )
by Adrien
23:05
created
src/PhpSpreadsheet/Worksheet/ColumnDimension.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
     /**
102 102
      * Set Row Height
103 103
      *
104
-     * @param float $pValue
104
+     * @param integer $pValue
105 105
      * @return RowDimension
106 106
      */
107 107
     public function setRowHeight($pValue = -1)
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/Renderer/JpGraph.php 1 patch
Doc Comments   +62 added lines patch added patch discarded remove patch
@@ -60,6 +60,9 @@  discard block
 block discarded – undo
60 60
 
61 61
     private static $plotMark = 0;
62 62
 
63
+    /**
64
+     * @param string $markerID
65
+     */
63 66
     private function formatPointMarker($seriesPlot, $markerID)
64 67
     {
65 68
         $plotMarkKeys = array_keys(self::$markSet);
@@ -87,6 +90,9 @@  discard block
 block discarded – undo
87 90
         return $seriesPlot;
88 91
     }
89 92
 
93
+    /**
94
+     * @param integer $labelCount
95
+     */
90 96
     private function formatDataSetLabels($groupID, $datasetLabels, $labelCount, $rotation = '')
91 97
     {
92 98
         $datasetLabelFormatCode = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotCategoryByIndex(0)->getFormatCode();
@@ -116,6 +122,9 @@  discard block
 block discarded – undo
116 122
         return $datasetLabels;
117 123
     }
118 124
 
125
+    /**
126
+     * @param integer $seriesCount
127
+     */
119 128
     private function percentageSumCalculation($groupID, $seriesCount)
120 129
     {
121 130
         //    Adjust our values to a percentage value across all series in the group
@@ -146,6 +155,9 @@  discard block
 block discarded – undo
146 155
         return $dataValues;
147 156
     }
148 157
 
158
+    /**
159
+     * @param \PhpOffice\PhpSpreadsheet\Chart\Title $captionElement
160
+     */
149 161
     private function getCaption($captionElement)
150 162
     {
151 163
         //    Read any caption
@@ -253,6 +265,9 @@  discard block
 block discarded – undo
253 265
         $this->renderTitle();
254 266
     }
255 267
 
268
+    /**
269
+     * @param integer $groupID
270
+     */
256 271
     private function renderPlotLine($groupID, $filled = false, $combination = false, $dimensions = '2d')
257 272
     {
258 273
         $grouping = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotGrouping();
@@ -316,6 +331,9 @@  discard block
 block discarded – undo
316 331
         $this->graph->Add($groupPlot);
317 332
     }
318 333
 
334
+    /**
335
+     * @param integer $groupID
336
+     */
319 337
     private function renderPlotBar($groupID, $dimensions = '2d')
320 338
     {
321 339
         $rotation = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotDirection();
@@ -400,6 +418,10 @@  discard block
 block discarded – undo
400 418
         $this->graph->Add($groupPlot);
401 419
     }
402 420
 
421
+    /**
422
+     * @param integer $groupID
423
+     * @param boolean $bubble
424
+     */
403 425
     private function renderPlotScatter($groupID, $bubble)
404 426
     {
405 427
         $grouping = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotGrouping();
@@ -445,6 +467,9 @@  discard block
 block discarded – undo
445 467
         }
446 468
     }
447 469
 
470
+    /**
471
+     * @param integer $groupID
472
+     */
448 473
     private function renderPlotRadar($groupID)
449 474
     {
450 475
         $radarStyle = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotStyle();
@@ -483,6 +508,9 @@  discard block
 block discarded – undo
483 508
         }
484 509
     }
485 510
 
511
+    /**
512
+     * @param integer $groupID
513
+     */
486 514
     private function renderPlotContour($groupID)
487 515
     {
488 516
         $contourStyle = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotStyle();
@@ -503,6 +531,9 @@  discard block
 block discarded – undo
503 531
         $this->graph->Add($seriesPlot);
504 532
     }
505 533
 
534
+    /**
535
+     * @param integer $groupID
536
+     */
506 537
     private function renderPlotStock($groupID)
507 538
     {
508 539
         $seriesCount = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotSeriesCount();
@@ -542,6 +573,9 @@  discard block
 block discarded – undo
542 573
         $this->graph->Add($seriesPlot);
543 574
     }
544 575
 
576
+    /**
577
+     * @param integer $groupCount
578
+     */
545 579
     private function renderAreaChart($groupCount, $dimensions = '2d')
546 580
     {
547 581
         require_once \PhpOffice\PhpSpreadsheet\Settings::getChartRendererPath() . 'jpgraph_line.php';
@@ -553,6 +587,9 @@  discard block
 block discarded – undo
553 587
         }
554 588
     }
555 589
 
590
+    /**
591
+     * @param integer $groupCount
592
+     */
556 593
     private function renderLineChart($groupCount, $dimensions = '2d')
557 594
     {
558 595
         require_once \PhpOffice\PhpSpreadsheet\Settings::getChartRendererPath() . 'jpgraph_line.php';
@@ -564,6 +601,9 @@  discard block
 block discarded – undo
564 601
         }
565 602
     }
566 603
 
604
+    /**
605
+     * @param integer $groupCount
606
+     */
567 607
     private function renderBarChart($groupCount, $dimensions = '2d')
568 608
     {
569 609
         require_once \PhpOffice\PhpSpreadsheet\Settings::getChartRendererPath() . 'jpgraph_bar.php';
@@ -575,6 +615,9 @@  discard block
 block discarded – undo
575 615
         }
576 616
     }
577 617
 
618
+    /**
619
+     * @param integer $groupCount
620
+     */
578 621
     private function renderScatterChart($groupCount)
579 622
     {
580 623
         require_once \PhpOffice\PhpSpreadsheet\Settings::getChartRendererPath() . 'jpgraph_scatter.php';
@@ -588,6 +631,9 @@  discard block
 block discarded – undo
588 631
         }
589 632
     }
590 633
 
634
+    /**
635
+     * @param integer $groupCount
636
+     */
591 637
     private function renderBubbleChart($groupCount)
592 638
     {
593 639
         require_once \PhpOffice\PhpSpreadsheet\Settings::getChartRendererPath() . 'jpgraph_scatter.php';
@@ -599,6 +645,9 @@  discard block
 block discarded – undo
599 645
         }
600 646
     }
601 647
 
648
+    /**
649
+     * @param integer $groupCount
650
+     */
602 651
     private function renderPieChart($groupCount, $dimensions = '2d', $doughnut = false, $multiplePlots = false)
603 652
     {
604 653
         require_once \PhpOffice\PhpSpreadsheet\Settings::getChartRendererPath() . 'jpgraph_pie.php';
@@ -675,6 +724,9 @@  discard block
 block discarded – undo
675 724
         }
676 725
     }
677 726
 
727
+    /**
728
+     * @param integer $groupCount
729
+     */
678 730
     private function renderRadarChart($groupCount)
679 731
     {
680 732
         require_once \PhpOffice\PhpSpreadsheet\Settings::getChartRendererPath() . 'jpgraph_radar.php';
@@ -686,6 +738,9 @@  discard block
 block discarded – undo
686 738
         }
687 739
     }
688 740
 
741
+    /**
742
+     * @param integer $groupCount
743
+     */
689 744
     private function renderStockChart($groupCount)
690 745
     {
691 746
         require_once \PhpOffice\PhpSpreadsheet\Settings::getChartRendererPath() . 'jpgraph_stock.php';
@@ -697,6 +752,10 @@  discard block
 block discarded – undo
697 752
         }
698 753
     }
699 754
 
755
+    /**
756
+     * @param integer $groupCount
757
+     * @param string|null $dimensions
758
+     */
700 759
     private function renderContourChart($groupCount, $dimensions)
701 760
     {
702 761
         require_once \PhpOffice\PhpSpreadsheet\Settings::getChartRendererPath() . 'jpgraph_contour.php';
@@ -708,6 +767,9 @@  discard block
 block discarded – undo
708 767
         }
709 768
     }
710 769
 
770
+    /**
771
+     * @param integer $groupCount
772
+     */
711 773
     private function renderCombinationChart($groupCount, $dimensions, $outputDestination)
712 774
     {
713 775
         require_once \PhpOffice\PhpSpreadsheet\Settings::getChartRendererPath() . 'jpgraph_line.php';
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
@@ -235,7 +235,7 @@
 block discarded – undo
235 235
      * Calculate an (approximate) OpenXML column width, based on font size and text contained
236 236
      *
237 237
      * @param     \PhpOffice\PhpSpreadsheet\Style\Font            $font            Font object
238
-     * @param     \PhpOffice\PhpSpreadsheet\RichText|string    $cellText        Text to calculate width
238
+     * @param     string    $cellText        Text to calculate width
239 239
      * @param     int                        $rotation        Rotation angle
240 240
      * @param     \PhpOffice\PhpSpreadsheet\Style\Font|null    $defaultFont    Font object
241 241
      * @return     int        Column width
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Xlsx.php 1 patch
Doc Comments   +12 added lines, -1 removed lines patch added patch discarded remove patch
@@ -281,6 +281,11 @@  discard block
 block discarded – undo
281 281
         return isset($c->v) ? (string) $c->v : null;
282 282
     }
283 283
 
284
+    /**
285
+     * @param string $r
286
+     * @param string $cellDataType
287
+     * @param string $castBaseType
288
+     */
284 289
     private function castToFormula($c, $r, &$cellDataType, &$value, &$calculatedValue, &$sharedFormulas, $castBaseType)
285 290
     {
286 291
         $cellDataType = 'f';
@@ -335,7 +340,7 @@  discard block
 block discarded – undo
335 340
      *
336 341
      * @param     string         $pFilename
337 342
      * @throws    Exception
338
-     * @return    Spreadsheet
343
+     * @return    \PhpOffice\PhpSpreadsheet\Spreadsheet
339 344
      */
340 345
     public function load($pFilename)
341 346
     {
@@ -2005,6 +2010,9 @@  discard block
 block discarded – undo
2005 2010
         }
2006 2011
     }
2007 2012
 
2013
+    /**
2014
+     * @param \PhpOffice\PhpSpreadsheet\Style\Border $docBorder
2015
+     */
2008 2016
     private static function readBorder($docBorder, $eleBorder)
2009 2017
     {
2010 2018
         if (isset($eleBorder['style'])) {
@@ -2127,6 +2135,9 @@  discard block
 block discarded – undo
2127 2135
         return preg_replace('~[^/]+/\.\./~', '', dirname($base) . "/$add");
2128 2136
     }
2129 2137
 
2138
+    /**
2139
+     * @param string $style
2140
+     */
2130 2141
     private static function toCSSArray($style)
2131 2142
     {
2132 2143
         $style = str_replace(["\r", "\n"], '', $style);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Xlsx/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/Writer/Xlsx/Chart.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -412,6 +412,8 @@  discard block
 block discarded – undo
412 412
      * @param  string $id1
413 413
      * @param  string $id2
414 414
      * @param  bool $isMultiLevelSeries
415
+     * @param null|Axis $xAxis
416
+     * @param null|Axis $yAxis
415 417
      *
416 418
      * @throws  \PhpSpreadsheet\Writer\Exception
417 419
      */
@@ -534,6 +536,10 @@  discard block
 block discarded – undo
534 536
      * @param  string $id1
535 537
      * @param  string $id2
536 538
      * @param  bool $isMultiLevelSeries
539
+     * @param null|Axis $xAxis
540
+     * @param null|Axis $yAxis
541
+     * @param null|GridLines $majorGridlines
542
+     * @param null|GridLines $minorGridlines
537 543
      *
538 544
      * @throws  \PhpSpreadsheet\Writer\Exception
539 545
      */
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Xls.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/Xls/MD5.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -190,6 +190,11 @@
 block discarded – undo
190 190
         return ($Y ^ ($X | (~ $Z))) ; // Y XOR (X OR NOT Z)
191 191
     }
192 192
 
193
+    /**
194
+     * @param string[] $func
195
+     * @param integer $s
196
+     * @param integer $t
197
+     */
193 198
     private static function step($func, &$A, $B, $C, $D, $M, $s, $t)
194 199
     {
195 200
         $A = ($A + call_user_func($func, $B, $C, $D) + $M + $t) & 0xffffffff;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Writer/Xls/Parser.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -504,7 +504,7 @@  discard block
 block discarded – undo
504 504
      *
505 505
      * @access private
506 506
      * @param mixed $token The token to convert.
507
-     * @return mixed the converted token on success
507
+     * @return string the converted token on success
508 508
      */
509 509
     private function convert($token)
510 510
     {
@@ -574,7 +574,7 @@  discard block
 block discarded – undo
574 574
      *
575 575
      * @access private
576 576
      * @param string $string A string for conversion to its ptg value.
577
-     * @return mixed the converted token on success
577
+     * @return string the converted token on success
578 578
      */
579 579
     private function convertString($string)
580 580
     {
@@ -654,7 +654,7 @@  discard block
 block discarded – undo
654 654
      *
655 655
      * @access private
656 656
      * @param string $token An Excel range in the Sheet1!A1:A2 format.
657
-     * @return mixed The packed ptgArea3d token on success.
657
+     * @return string The packed ptgArea3d token on success.
658 658
      */
659 659
     private function convertRange3d($token)
660 660
     {
@@ -726,7 +726,7 @@  discard block
 block discarded – undo
726 726
      *
727 727
      * @access private
728 728
      * @param string $cell An Excel cell reference
729
-     * @return mixed The packed ptgRef3d token on success.
729
+     * @return string The packed ptgRef3d token on success.
730 730
      */
731 731
     private function convertRef3d($cell)
732 732
     {
@@ -834,7 +834,7 @@  discard block
 block discarded – undo
834 834
      *
835 835
      * @access private
836 836
      * @param string $ext_ref The name of the external reference
837
-     * @return mixed The reference index in packed() format on success
837
+     * @return string The reference index in packed() format on success
838 838
      */
839 839
     private function getRefIndex($ext_ref)
840 840
     {
@@ -925,7 +925,7 @@  discard block
 block discarded – undo
925 925
      *
926 926
      * @access private
927 927
      * @param string $cell The Excel cell reference to be packed
928
-     * @return array Array containing the row and column in packed() format
928
+     * @return string[] Array containing the row and column in packed() format
929 929
      */
930 930
     private function cellToPackedRowcol($cell)
931 931
     {
@@ -954,7 +954,7 @@  discard block
 block discarded – undo
954 954
      *
955 955
      * @access private
956 956
      * @param string $range The Excel range to be packed
957
-     * @return array Array containing (row1,col1,row2,col2) in packed() format
957
+     * @return string[] Array containing (row1,col1,row2,col2) in packed() format
958 958
      */
959 959
     private function rangeToPackedRange($range)
960 960
     {
@@ -1075,7 +1075,7 @@  discard block
 block discarded – undo
1075 1075
      * Checks if it's a valid token.
1076 1076
      *
1077 1077
      * @access private
1078
-     * @param mixed $token The token to check.
1078
+     * @param string $token The token to check.
1079 1079
      * @return mixed       The checked token or false on failure
1080 1080
      */
1081 1081
     private function match($token)
@@ -1157,7 +1157,7 @@  discard block
 block discarded – undo
1157 1157
      * @access public
1158 1158
      * @param string $formula The formula to parse, without the initial equal
1159 1159
      *                        sign (=).
1160
-     * @return mixed true on success
1160
+     * @return boolean true on success
1161 1161
      */
1162 1162
     public function parse($formula)
1163 1163
     {
Please login to merge, or discard this patch.