Completed
Push — develop ( 942ad7...b0621f )
by Adrien
22:01 queued 09:22
created
src/PhpSpreadsheet/Shared/JAMA/utils/Error.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 
66 66
 /**
67 67
  *    Custom error handler
68
- *    @param int $num Error number
68
+ * @return string|null
69 69
  */
70 70
 function JAMAError($errorNumber = null)
71 71
 {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/OLERead.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     /**
75 75
      * Read the file
76 76
      *
77
-     * @param $sFileName string Filename
77
+     * @param string $sFileName string Filename
78 78
      * @throws \PHPExcel\Reader\Exception
79 79
      */
80 80
     public function read($sFileName)
@@ -172,6 +172,7 @@  discard block
 block discarded – undo
172 172
     /**
173 173
      * Extract binary stream data
174 174
      *
175
+     * @param integer $stream
175 176
      * @return string
176 177
      */
177 178
     public function getStream($stream)
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/PCLZip/PclZip.php 3 patches
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -215,6 +215,10 @@  discard block
 block discarded – undo
215 215
     //     Note that no real action is taken, if the archive does not exist it is not
216 216
     //     created. Use create() for that.
217 217
     // --------------------------------------------------------------------------------
218
+
219
+    /**
220
+     * @param string $p_zipname
221
+     */
218 222
     public function __construct($p_zipname)
219 223
     {
220 224
 
@@ -2193,6 +2197,10 @@  discard block
 block discarded – undo
2193 2197
     // Description :
2194 2198
     // Parameters :
2195 2199
     // --------------------------------------------------------------------------------
2200
+
2201
+    /**
2202
+     * @param string $p_mode
2203
+     */
2196 2204
     public function privOpenFd($p_mode)
2197 2205
     {
2198 2206
         $v_result=1;
@@ -3772,6 +3780,10 @@  discard block
 block discarded – undo
3772 3780
     // Parameters :
3773 3781
     // Return Values :
3774 3782
     // --------------------------------------------------------------------------------
3783
+
3784
+    /**
3785
+     * @param string $p_string
3786
+     */
3775 3787
     public function privExtractFileAsString(&$p_entry, &$p_string, &$p_options)
3776 3788
     {
3777 3789
         $v_result=1;
Please login to merge, or discard this patch.
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -541,12 +541,12 @@  discard block
 block discarded – undo
541 541
 
542 542
         // ----- For each file in the list check the attributes
543 543
         $v_supported_attributes = [
544
-          PCLZIP_ATT_FILE_NAME => 'mandatory',
545
-          PCLZIP_ATT_FILE_NEW_SHORT_NAME => 'optional',
546
-          PCLZIP_ATT_FILE_NEW_FULL_NAME => 'optional',
547
-          PCLZIP_ATT_FILE_MTIME => 'optional',
548
-          PCLZIP_ATT_FILE_CONTENT => 'optional',
549
-          PCLZIP_ATT_FILE_COMMENT => 'optional',
544
+            PCLZIP_ATT_FILE_NAME => 'mandatory',
545
+            PCLZIP_ATT_FILE_NEW_SHORT_NAME => 'optional',
546
+            PCLZIP_ATT_FILE_NEW_FULL_NAME => 'optional',
547
+            PCLZIP_ATT_FILE_MTIME => 'optional',
548
+            PCLZIP_ATT_FILE_CONTENT => 'optional',
549
+            PCLZIP_ATT_FILE_COMMENT => 'optional',
550 550
         ];
551 551
         foreach ($v_att_list as $v_entry) {
552 552
             $v_result = $this->privFileDescrParseAtt($v_entry, $v_filedescr_list[], $v_options, $v_supported_attributes);
@@ -704,25 +704,25 @@  discard block
 block discarded – undo
704 704
             if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) {
705 705
                 // ----- Parse the options
706 706
                 $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options, [
707
-                  PCLZIP_OPT_PATH => 'optional',
708
-                  PCLZIP_OPT_REMOVE_PATH => 'optional',
709
-                  PCLZIP_OPT_REMOVE_ALL_PATH => 'optional',
710
-                  PCLZIP_OPT_ADD_PATH => 'optional',
711
-                  PCLZIP_CB_PRE_EXTRACT => 'optional',
712
-                  PCLZIP_CB_POST_EXTRACT => 'optional',
713
-                  PCLZIP_OPT_SET_CHMOD => 'optional',
714
-                  PCLZIP_OPT_BY_NAME => 'optional',
715
-                  PCLZIP_OPT_BY_EREG => 'optional',
716
-                  PCLZIP_OPT_BY_PREG => 'optional',
717
-                  PCLZIP_OPT_BY_INDEX => 'optional',
718
-                  PCLZIP_OPT_EXTRACT_AS_STRING => 'optional',
719
-                  PCLZIP_OPT_EXTRACT_IN_OUTPUT => 'optional',
720
-                  PCLZIP_OPT_REPLACE_NEWER => 'optional',
721
-                  PCLZIP_OPT_STOP_ON_ERROR => 'optional',
722
-                  PCLZIP_OPT_EXTRACT_DIR_RESTRICTION => 'optional',
723
-                  PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional',
724
-                  PCLZIP_OPT_TEMP_FILE_ON => 'optional',
725
-                  PCLZIP_OPT_TEMP_FILE_OFF => 'optional',
707
+                    PCLZIP_OPT_PATH => 'optional',
708
+                    PCLZIP_OPT_REMOVE_PATH => 'optional',
709
+                    PCLZIP_OPT_REMOVE_ALL_PATH => 'optional',
710
+                    PCLZIP_OPT_ADD_PATH => 'optional',
711
+                    PCLZIP_CB_PRE_EXTRACT => 'optional',
712
+                    PCLZIP_CB_POST_EXTRACT => 'optional',
713
+                    PCLZIP_OPT_SET_CHMOD => 'optional',
714
+                    PCLZIP_OPT_BY_NAME => 'optional',
715
+                    PCLZIP_OPT_BY_EREG => 'optional',
716
+                    PCLZIP_OPT_BY_PREG => 'optional',
717
+                    PCLZIP_OPT_BY_INDEX => 'optional',
718
+                    PCLZIP_OPT_EXTRACT_AS_STRING => 'optional',
719
+                    PCLZIP_OPT_EXTRACT_IN_OUTPUT => 'optional',
720
+                    PCLZIP_OPT_REPLACE_NEWER => 'optional',
721
+                    PCLZIP_OPT_STOP_ON_ERROR => 'optional',
722
+                    PCLZIP_OPT_EXTRACT_DIR_RESTRICTION => 'optional',
723
+                    PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional',
724
+                    PCLZIP_OPT_TEMP_FILE_ON => 'optional',
725
+                    PCLZIP_OPT_TEMP_FILE_OFF => 'optional',
726 726
                 ]);
727 727
                 if ($v_result != 1) {
728 728
                     return 0;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2592,7 +2592,7 @@  discard block
 block discarded – undo
2592 2592
                 // ----- Set the file properties
2593 2593
                 $p_header['size'] = 0;
2594 2594
                 //$p_header['external'] = 0x41FF0010;     // Value for a folder : to be checked
2595
-                $p_header['external'] = 0x00000010;     // Value for a folder : to be checked
2595
+                $p_header['external'] = 0x00000010; // Value for a folder : to be checked
2596 2596
 
2597 2597
                 // ----- Call the header generation
2598 2598
                 if (($v_result = $this->privWriteFileHeader($p_header)) != 1) {
@@ -4980,7 +4980,7 @@  discard block
 block discarded – undo
4980 4980
                 if ($v_skip > 0) {
4981 4981
                     --$v_skip;
4982 4982
                 } else {
4983
-                    $v_result = $v_list[$i] . ($i != (sizeof($v_list) - 1)?'/' . $v_result:'');
4983
+                    $v_result = $v_list[$i] . ($i != (sizeof($v_list) - 1) ? '/' . $v_result : '');
4984 4984
                 }
4985 4985
             }
4986 4986
         }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/TimeZone.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
     /**
82 82
      *    Return the Timezone transition for the specified timezone and timestamp
83 83
      *
84
-     *    @param        DateTimeZone         $objTimezone    The timezone for finding the transitions
84
+     *    @param        \DateTimeZone         $objTimezone    The timezone for finding the transitions
85 85
      *    @param        integer                 $timestamp        PHP date/time value for finding the current transition
86 86
      *    @return         array                The current transition details
87 87
      */
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Trend/BestFit.php 1 patch
Doc Comments   +11 added lines, -3 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      * Return the Y-Value for a specified value of X
123 123
      *
124 124
      * @param     float        $xValue            X-Value
125
-     * @return     float                        Y-Value
125
+     * @return     boolean                        Y-Value
126 126
      */
127 127
     public function getValueOfYForX($xValue)
128 128
     {
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      * Return the X-Value for a specified value of Y
134 134
      *
135 135
      * @param     float        $yValue            Y-Value
136
-     * @return     float                        X-Value
136
+     * @return     boolean                        X-Value
137 137
      */
138 138
     public function getValueOfXForY($yValue)
139 139
     {
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      * Return the Equation of the best-fit line
155 155
      *
156 156
      * @param     int        $dp        Number of places of decimal precision to display
157
-     * @return     string
157
+     * @return     boolean
158 158
      */
159 159
     public function getEquation($dp = 0)
160 160
     {
@@ -306,6 +306,9 @@  discard block
 block discarded – undo
306 306
         return $this->yBestFitValues;
307 307
     }
308 308
 
309
+    /**
310
+     * @param double $sumY2
311
+     */
309 312
     protected function calculateGoodnessOfFit($sumX, $sumY, $sumX2, $sumY2, $sumXY, $meanX, $meanY, $const)
310 313
     {
311 314
         $SSres = $SScov = $SScor = $SStot = $SSsex = 0.0;
@@ -360,6 +363,11 @@  discard block
 block discarded – undo
360 363
         }
361 364
     }
362 365
 
366
+    /**
367
+     * @param double[] $yValues
368
+     * @param double[] $xValues
369
+     * @param boolean $const
370
+     */
363 371
     protected function leastSquareFit($yValues, $xValues, $const)
364 372
     {
365 373
         // calculate sums
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Trend/ExponentialBestFit.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      * Return the Slope of the line
78 78
      *
79 79
      * @param     int        $dp        Number of places of decimal precision to display
80
-     * @return     string
80
+     * @return     double
81 81
      **/
82 82
     public function getSlope($dp = 0)
83 83
     {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      * Return the Value of X where it intersects Y = 0
92 92
      *
93 93
      * @param     int        $dp        Number of places of decimal precision to display
94
-     * @return     string
94
+     * @return     double
95 95
      **/
96 96
     public function getIntersect($dp = 0)
97 97
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Trend/PowerBestFit.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
      * Return the Value of X where it intersects Y = 0
82 82
      *
83 83
      * @param     int        $dp        Number of places of decimal precision to display
84
-     * @return     string
84
+     * @return     double
85 85
      **/
86 86
     public function getIntersect($dp = 0)
87 87
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/XMLWriter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
      * Fallback method for writeRaw, introduced in PHP 5.2
110 110
      *
111 111
      * @param string $text
112
-     * @return string
112
+     * @return boolean
113 113
      */
114 114
     public function writeRawData($text)
115 115
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/ZipArchive.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -155,6 +155,9 @@
 block discarded – undo
155 155
         return $contents;
156 156
     }
157 157
 
158
+    /**
159
+     * @param integer $index
160
+     */
158 161
     public function getFromIndex($index)
159 162
     {
160 163
         $extracted = $this->zip->extractByIndex($index, PCLZIP_OPT_EXTRACT_AS_STRING);
Please login to merge, or discard this patch.