Completed
Push — develop ( e1f81f...539a89 )
by Adrien
16:11
created
src/PhpSpreadsheet/Chart/Renderer/JpGraph.php 1 patch
Doc Comments   +62 added lines patch added patch discarded remove patch
@@ -62,6 +62,9 @@  discard block
 block discarded – undo
62 62
     private static $plotMark = 0;
63 63
 
64 64
 
65
+    /**
66
+     * @param string $markerID
67
+     */
65 68
     private function formatPointMarker($seriesPlot, $markerID)
66 69
     {
67 70
         $plotMarkKeys = array_keys(self::$markSet);
@@ -90,6 +93,9 @@  discard block
 block discarded – undo
90 93
     }
91 94
 
92 95
 
96
+    /**
97
+     * @param integer $labelCount
98
+     */
93 99
     private function formatDataSetLabels($groupID, $datasetLabels, $labelCount, $rotation = '')
94 100
     {
95 101
         $datasetLabelFormatCode = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotCategoryByIndex(0)->getFormatCode();
@@ -120,6 +126,9 @@  discard block
 block discarded – undo
120 126
     }
121 127
 
122 128
 
129
+    /**
130
+     * @param integer $seriesCount
131
+     */
123 132
     private function percentageSumCalculation($groupID, $seriesCount)
124 133
     {
125 134
         //    Adjust our values to a percentage value across all series in the group
@@ -152,6 +161,9 @@  discard block
 block discarded – undo
152 161
     }
153 162
 
154 163
 
164
+    /**
165
+     * @param \PhpSpreadsheet\Chart\Title $captionElement
166
+     */
155 167
     private function getCaption($captionElement)
156 168
     {
157 169
         //    Read any caption
@@ -264,6 +276,9 @@  discard block
 block discarded – undo
264 276
     }
265 277
 
266 278
 
279
+    /**
280
+     * @param integer $groupID
281
+     */
267 282
     private function renderPlotLine($groupID, $filled = false, $combination = false, $dimensions = '2d')
268 283
     {
269 284
         $grouping = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotGrouping();
@@ -328,6 +343,9 @@  discard block
 block discarded – undo
328 343
     }
329 344
 
330 345
 
346
+    /**
347
+     * @param integer $groupID
348
+     */
331 349
     private function renderPlotBar($groupID, $dimensions = '2d')
332 350
     {
333 351
         $rotation = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotDirection();
@@ -414,6 +432,10 @@  discard block
 block discarded – undo
414 432
     }
415 433
 
416 434
 
435
+    /**
436
+     * @param integer $groupID
437
+     * @param boolean $bubble
438
+     */
417 439
     private function renderPlotScatter($groupID, $bubble)
418 440
     {
419 441
         $grouping = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotGrouping();
@@ -460,6 +482,9 @@  discard block
 block discarded – undo
460 482
     }
461 483
 
462 484
 
485
+    /**
486
+     * @param integer $groupID
487
+     */
463 488
     private function renderPlotRadar($groupID)
464 489
     {
465 490
         $radarStyle = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotStyle();
@@ -499,6 +524,9 @@  discard block
 block discarded – undo
499 524
     }
500 525
 
501 526
 
527
+    /**
528
+     * @param integer $groupID
529
+     */
502 530
     private function renderPlotContour($groupID)
503 531
     {
504 532
         $contourStyle = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotStyle();
@@ -520,6 +548,9 @@  discard block
 block discarded – undo
520 548
     }
521 549
 
522 550
 
551
+    /**
552
+     * @param integer $groupID
553
+     */
523 554
     private function renderPlotStock($groupID)
524 555
     {
525 556
         $seriesCount = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotSeriesCount();
@@ -560,6 +591,9 @@  discard block
 block discarded – undo
560 591
     }
561 592
 
562 593
 
594
+    /**
595
+     * @param integer $groupCount
596
+     */
563 597
     private function renderAreaChart($groupCount, $dimensions = '2d')
564 598
     {
565 599
         require_once(\PhpSpreadsheet\Settings::getChartRendererPath().'jpgraph_line.php');
@@ -572,6 +606,9 @@  discard block
 block discarded – undo
572 606
     }
573 607
 
574 608
 
609
+    /**
610
+     * @param integer $groupCount
611
+     */
575 612
     private function renderLineChart($groupCount, $dimensions = '2d')
576 613
     {
577 614
         require_once(\PhpSpreadsheet\Settings::getChartRendererPath().'jpgraph_line.php');
@@ -584,6 +621,9 @@  discard block
 block discarded – undo
584 621
     }
585 622
 
586 623
 
624
+    /**
625
+     * @param integer $groupCount
626
+     */
587 627
     private function renderBarChart($groupCount, $dimensions = '2d')
588 628
     {
589 629
         require_once(\PhpSpreadsheet\Settings::getChartRendererPath().'jpgraph_bar.php');
@@ -596,6 +636,9 @@  discard block
 block discarded – undo
596 636
     }
597 637
 
598 638
 
639
+    /**
640
+     * @param integer $groupCount
641
+     */
599 642
     private function renderScatterChart($groupCount)
600 643
     {
601 644
         require_once(\PhpSpreadsheet\Settings::getChartRendererPath().'jpgraph_scatter.php');
@@ -610,6 +653,9 @@  discard block
 block discarded – undo
610 653
     }
611 654
 
612 655
 
656
+    /**
657
+     * @param integer $groupCount
658
+     */
613 659
     private function renderBubbleChart($groupCount)
614 660
     {
615 661
         require_once(\PhpSpreadsheet\Settings::getChartRendererPath().'jpgraph_scatter.php');
@@ -622,6 +668,9 @@  discard block
 block discarded – undo
622 668
     }
623 669
 
624 670
 
671
+    /**
672
+     * @param integer $groupCount
673
+     */
625 674
     private function renderPieChart($groupCount, $dimensions = '2d', $doughnut = false, $multiplePlots = false)
626 675
     {
627 676
         require_once(\PhpSpreadsheet\Settings::getChartRendererPath().'jpgraph_pie.php');
@@ -699,6 +748,9 @@  discard block
 block discarded – undo
699 748
     }
700 749
 
701 750
 
751
+    /**
752
+     * @param integer $groupCount
753
+     */
702 754
     private function renderRadarChart($groupCount)
703 755
     {
704 756
         require_once(\PhpSpreadsheet\Settings::getChartRendererPath().'jpgraph_radar.php');
@@ -711,6 +763,9 @@  discard block
 block discarded – undo
711 763
     }
712 764
 
713 765
 
766
+    /**
767
+     * @param integer $groupCount
768
+     */
714 769
     private function renderStockChart($groupCount)
715 770
     {
716 771
         require_once(\PhpSpreadsheet\Settings::getChartRendererPath().'jpgraph_stock.php');
@@ -723,6 +778,10 @@  discard block
 block discarded – undo
723 778
     }
724 779
 
725 780
 
781
+    /**
782
+     * @param integer $groupCount
783
+     * @param string|null $dimensions
784
+     */
726 785
     private function renderContourChart($groupCount, $dimensions)
727 786
     {
728 787
         require_once(\PhpSpreadsheet\Settings::getChartRendererPath().'jpgraph_contour.php');
@@ -735,6 +794,9 @@  discard block
 block discarded – undo
735 794
     }
736 795
 
737 796
 
797
+    /**
798
+     * @param integer $groupCount
799
+     */
738 800
     private function renderCombinationChart($groupCount, $dimensions, $outputDestination)
739 801
     {
740 802
         require_once(\PhpSpreadsheet\Settings::getChartRendererPath().'jpgraph_line.php');
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Document/Properties.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     /**
178 178
      * Get Created
179 179
      *
180
-     * @return datetime
180
+     * @return integer|null
181 181
      */
182 182
     public function getCreated()
183 183
     {
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
     /**
210 210
      * Get Modified
211 211
      *
212
-     * @return datetime
212
+     * @return integer|null
213 213
      */
214 214
     public function getModified()
215 215
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Excel2007.php 1 patch
Doc Comments   +18 added lines, -1 removed lines patch added patch discarded remove patch
@@ -285,6 +285,11 @@  discard block
 block discarded – undo
285 285
         return isset($c->v) ? (string) $c->v : null;
286 286
     }
287 287
 
288
+    /**
289
+     * @param string $r
290
+     * @param string $cellDataType
291
+     * @param string $castBaseType
292
+     */
288 293
     private function castToFormula($c, $r, &$cellDataType, &$value, &$calculatedValue, &$sharedFormulas, $castBaseType)
289 294
     {
290 295
 //        echo 'Formula', PHP_EOL;
@@ -327,6 +332,9 @@  discard block
 block discarded – undo
327 332
     }
328 333
 
329 334
 
335
+    /**
336
+     * @return string|null
337
+     */
330 338
     private function getFromZipArchive($archive, $fileName = '')
331 339
     {
332 340
         // Root-relative paths
@@ -356,7 +364,7 @@  discard block
 block discarded – undo
356 364
      * Loads Spreadsheet from file
357 365
      *
358 366
      * @param     string         $pFilename
359
-     * @return    Spreadsheet
367
+     * @return    \PhpSpreadsheet\Spreadsheet
360 368
      * @throws    Exception
361 369
      */
362 370
     public function load($pFilename)
@@ -1921,6 +1929,9 @@  discard block
 block discarded – undo
1921 1929
         return 'FF000000';
1922 1930
     }
1923 1931
 
1932
+    /**
1933
+     * @param \PhpSpreadsheet\Style $docStyle
1934
+     */
1924 1935
     private static function readStyle($docStyle, $style)
1925 1936
     {
1926 1937
         // format code
@@ -2120,6 +2131,9 @@  discard block
 block discarded – undo
2120 2131
         return $value;
2121 2132
     }
2122 2133
 
2134
+    /**
2135
+     * @param \PhpSpreadsheet\Spreadsheet $excel
2136
+     */
2123 2137
     private function readRibbon($excel, $customUITarget, $zip)
2124 2138
     {
2125 2139
         $baseDir = dirname($customUITarget);
@@ -2172,6 +2186,9 @@  discard block
 block discarded – undo
2172 2186
         return preg_replace('~[^/]+/\.\./~', '', dirname($base) . "/$add");
2173 2187
     }
2174 2188
 
2189
+    /**
2190
+     * @param string $style
2191
+     */
2175 2192
     private static function toCSSArray($style)
2176 2193
     {
2177 2194
         $style = str_replace(array("\r","\n"), "", $style);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Excel2007/Chart.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -26,6 +26,10 @@  discard block
 block discarded – undo
26 26
  */
27 27
 class Chart
28 28
 {
29
+    /**
30
+     * @param string $name
31
+     * @param string $format
32
+     */
29 33
     private static function getAttribute($component, $name, $format)
30 34
     {
31 35
         $attributes = $component->attributes();
@@ -53,6 +57,10 @@  discard block
 block discarded – undo
53 57
         }
54 58
     }
55 59
 
60
+    /**
61
+     * @param \SimpleXMLElement $chartElements
62
+     * @param string $chartName
63
+     */
56 64
     public static function readChart($chartElements, $chartName)
57 65
     {
58 66
         $namespacesChartMeta = $chartElements->getNamespaces(true);
@@ -195,6 +203,9 @@  discard block
 block discarded – undo
195 203
         return $chart;
196 204
     }
197 205
 
206
+    /**
207
+     * @param string $type
208
+     */
198 209
     private static function chartTitle($titleDetails, $namespacesChartMeta, $type)
199 210
     {
200 211
         $caption = array();
@@ -481,6 +492,9 @@  discard block
 block discarded – undo
481 492
         return $plotAttributes;
482 493
     }
483 494
 
495
+    /**
496
+     * @param \PhpSpreadsheet\Chart\Layout $plotArea
497
+     */
484 498
     private static function setChartAttributes($plotArea, $plotAttributes)
485 499
     {
486 500
         foreach ($plotAttributes as $plotAttributeKey => $plotAttributeValue) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Gnumeric.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -163,6 +163,9 @@  discard block
 block discarded – undo
163 163
         return $worksheetInfo;
164 164
     }
165 165
 
166
+    /**
167
+     * @param string $filename
168
+     */
166 169
     private function gzfileGetContents($filename)
167 170
     {
168 171
         $file = @gzopen($filename, 'rb');
@@ -180,7 +183,7 @@  discard block
 block discarded – undo
180 183
      * Loads PhpSpreadsheet from file
181 184
      *
182 185
      * @param     string         $pFilename
183
-     * @return     PhpSpreadsheet
186
+     * @return     \PhpSpreadsheet\Spreadsheet
184 187
      * @throws     Exception
185 188
      */
186 189
     public function load($pFilename)
@@ -197,7 +200,7 @@  discard block
 block discarded – undo
197 200
      *
198 201
      * @param     string         $pFilename
199 202
      * @param    \PhpSpreadsheet\Spreadsheet    $spreadsheet
200
-     * @return     PhpSpreadsheet
203
+     * @return     \PhpSpreadsheet\Spreadsheet
201 204
      * @throws     Exception
202 205
      */
203 206
     public function loadIntoExisting($pFilename, \PhpSpreadsheet\Spreadsheet $spreadsheet)
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/HTML.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      * Loads PhpSpreadsheet from file
136 136
      *
137 137
      * @param  string                    $pFilename
138
-     * @return PhpSpreadsheet
138
+     * @return \PhpSpreadsheet\Spreadsheet
139 139
      * @throws Exception
140 140
      */
141 141
     public function load($pFilename)
@@ -217,6 +217,12 @@  discard block
 block discarded – undo
217 217
         $cellContent = (string) '';
218 218
     }
219 219
 
220
+    /**
221
+     * @param \PhpSpreadsheet\Worksheet $sheet
222
+     * @param integer $row
223
+     * @param string $column
224
+     * @param string $cellContent
225
+     */
220 226
     protected function processDomElement(DOMNode $element, $sheet, &$row, &$column, &$cellContent, $format = null)
221 227
     {
222 228
         foreach ($element->childNodes as $child) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Font.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
      * Calculate an (approximate) OpenXML column width, based on font size and text contained
238 238
      *
239 239
      * @param     \PhpSpreadsheet\Style\Font            $font            Font object
240
-     * @param     \PhpSpreadsheet\RichText|string    $cellText        Text to calculate width
240
+     * @param     string    $cellText        Text to calculate width
241 241
      * @param     integer                        $rotation        Rotation angle
242 242
      * @param     \PhpSpreadsheet\Style\Font|NULL    $defaultFont    Font object
243 243
      * @return     integer        Column width
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
      * Calculate an (approximate) pixel size, based on centimeter size
407 407
      *
408 408
      * @param     int        $sizeInCm    Font size (in centimeters)
409
-     * @return     int        Size (in pixels)
409
+     * @return     double        Size (in pixels)
410 410
      */
411 411
     public static function centimeterSizeToPixels($sizeInCm = 1)
412 412
     {
@@ -417,6 +417,7 @@  discard block
 block discarded – undo
417 417
      * Returns the font path given the font
418 418
      *
419 419
      * @param \PhpSpreadsheet\Style\Font
420
+     * @param \PhpSpreadsheet\Style\Font $font
420 421
      * @return string Path to TrueType font file
421 422
      */
422 423
     public static function getTrueTypeFontFileFromFont($font)
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Spreadsheet.php 1 patch
Doc Comments   +11 added lines, -10 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     /**
137 137
     * The workbook has macros ?
138 138
     *
139
-    * @return true if workbook has macros, false if not
139
+    * @return boolean if workbook has macros, false if not
140 140
     */
141 141
     public function hasMacros()
142 142
     {
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     /**
178 178
     * Set the macros certificate
179 179
     *
180
-    * @param string|null $Certificate
180
+    * @param string|null $certificate
181 181
     */
182 182
     public function setMacrosCertificate($certificate = null)
183 183
     {
@@ -232,6 +232,7 @@  discard block
 block discarded – undo
232 232
     * retrieve ribbon XML Data
233 233
     *
234 234
     * return string|null|array
235
+    * @return string
235 236
     */
236 237
     public function getRibbonXMLData($what = 'all') //we need some constants here...
237 238
     {
@@ -307,7 +308,7 @@  discard block
 block discarded – undo
307 308
     /**
308 309
     * This workbook have a custom UI ?
309 310
     *
310
-    * @return true|false
311
+    * @return boolean
311 312
     */
312 313
     public function hasRibbon()
313 314
     {
@@ -317,7 +318,7 @@  discard block
 block discarded – undo
317 318
     /**
318 319
     * This workbook have additionnal object for the ribbon ?
319 320
     *
320
-    * @return true|false
321
+    * @return boolean
321 322
     */
322 323
     public function hasRibbonBinObjects()
323 324
     {
@@ -615,7 +616,7 @@  discard block
 block discarded – undo
615 616
      * Get index for sheet
616 617
      *
617 618
      * @param  Worksheet $pSheet
618
-     * @return Sheet index
619
+     * @return integer index
619 620
      * @throws Exception
620 621
      */
621 622
     public function getIndex(Worksheet $pSheet)
@@ -634,7 +635,7 @@  discard block
 block discarded – undo
634 635
      *
635 636
      * @param  string $sheetName Sheet name to modify index for
636 637
      * @param  int $newIndex New index for the sheet
637
-     * @return New sheet index
638
+     * @return integer sheet index
638 639
      * @throws Exception
639 640
      */
640 641
     public function setIndexByName($sheetName, $newIndex)
@@ -776,7 +777,7 @@  discard block
 block discarded – undo
776 777
      * Add named range
777 778
      *
778 779
      * @param  NamedRange $namedRange
779
-     * @return PhpSpreadsheet
780
+     * @return boolean
780 781
      */
781 782
     public function addNamedRange(NamedRange $namedRange)
782 783
     {
@@ -821,7 +822,7 @@  discard block
 block discarded – undo
821 822
      *
822 823
      * @param  string  $namedRange
823 824
      * @param  Worksheet|null  $pSheet  Scope: use null for global scope.
824
-     * @return PhpSpreadsheet
825
+     * @return Spreadsheet
825 826
      */
826 827
     public function removeNamedRange($namedRange, Worksheet $pSheet = null)
827 828
     {
@@ -840,7 +841,7 @@  discard block
 block discarded – undo
840 841
     /**
841 842
      * Get worksheet iterator
842 843
      *
843
-     * @return WorksheetIterator
844
+     * @return Worksheet\Iterator
844 845
      */
845 846
     public function getWorksheetIterator()
846 847
     {
@@ -850,7 +851,7 @@  discard block
 block discarded – undo
850 851
     /**
851 852
      * Copy workbook (!= clone!)
852 853
      *
853
-     * @return PhpSpreadsheet
854
+     * @return Spreadsheet
854 855
      */
855 856
     public function copy()
856 857
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Style.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
147 147
     /**
148 148
      * Get parent. Only used for style supervisor
149 149
      *
150
-     * @return PhpSpreadsheet
150
+     * @return Style
151 151
      */
152 152
     public function getParent()
153 153
     {
Please login to merge, or discard this patch.