Completed
Push — develop ( 467bab...e1f81f )
by Adrien
10:03
created
src/PhpSpreadsheet/Shared/OLE.php 1 patch
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      *
95 95
      * @acces public
96 96
      * @param string $file
97
-     * @return mixed true on success, PEAR_Error on failure
97
+     * @return boolean true on success, PEAR_Error on failure
98 98
      * @throws \PHPExcel\Reader\Exception
99 99
     */
100 100
     public function read($file)
@@ -225,6 +225,7 @@  discard block
 block discarded – undo
225 225
     /**
226 226
      * Reads a signed char.
227 227
      * @param   resource  file handle
228
+     * @param resource $fh
228 229
      * @return  int
229 230
      * @access public
230 231
      */
@@ -237,6 +238,7 @@  discard block
 block discarded – undo
237 238
     /**
238 239
      * Reads an unsigned short (2 octets).
239 240
      * @param   resource  file handle
241
+     * @param resource $fh
240 242
      * @return  int
241 243
      * @access public
242 244
      */
@@ -249,6 +251,7 @@  discard block
 block discarded – undo
249 251
     /**
250 252
      * Reads an unsigned long (4 octets).
251 253
      * @param   resource  file handle
254
+     * @param resource $fh
252 255
      * @return  int
253 256
      * @access public
254 257
      */
@@ -264,7 +267,8 @@  discard block
 block discarded – undo
264 267
     *
265 268
     * @access public
266 269
     * @param  integer  the block id of the first block
267
-    * @return mixed true on success, PEAR_Error on failure
270
+    * @param integer $blockId
271
+    * @return boolean true on success, PEAR_Error on failure
268 272
     */
269 273
     public function _readPpsWks($blockId)
270 274
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/OLE/PPS/Root.php 1 patch
Doc Comments   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,6 +42,7 @@  discard block
 block discarded – undo
42 42
     /**
43 43
      * @param integer $time_1st A timestamp
44 44
      * @param integer $time_2nd A timestamp
45
+     * @param File[] $raChild
45 46
      */
46 47
     public function __construct($time_1st, $time_2nd, $raChild)
47 48
     {
@@ -57,9 +58,9 @@  discard block
 block discarded – undo
57 58
     * If a resource pointer to a stream created by fopen() is passed
58 59
     * it will be used, but you have to close such stream by yourself.
59 60
     *
60
-    * @param string|resource $filename The name of the file or stream where to save the OLE container.
61
+    * @param string|null $filename The name of the file or stream where to save the OLE container.
61 62
     * @access public
62
-    * @return mixed true on success
63
+    * @return boolean true on success
63 64
     * @throws \PHPExcel\Writer\Exception
64 65
     */
65 66
     public function save($filename)
@@ -121,7 +122,7 @@  discard block
 block discarded – undo
121 122
     *
122 123
     * @access public
123 124
     * @param array $raList Reference to an array of PPS's
124
-    * @return array The array of numbers
125
+    * @return double[] The array of numbers
125 126
     */
126 127
     public function _calcSize(&$raList)
127 128
     {
@@ -160,7 +161,7 @@  discard block
 block discarded – undo
160 161
     * @access public
161 162
     * @param integer $i2 The argument
162 163
     * @see save()
163
-    * @return integer
164
+    * @return double
164 165
     */
165 166
     private static function adjust2($i2)
166 167
     {
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 1 patch
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.
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.