Completed
Push — develop ( e304c1...29df12 )
by Matteo
02:24
created
composer-setup.php 1 patch
Doc Comments   +16 added lines, -4 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
  *
119 119
  * @param string $opt The command-line option to check
120 120
  * @param array $argv Command-line arguments
121
- * @param mixed $default Default value to be returned
121
+ * @param false|string $default Default value to be returned
122 122
  *
123 123
  * @return mixed The command-line value or the default
124 124
  */
@@ -444,6 +444,7 @@  discard block
 block discarded – undo
444 444
 
445 445
 /**
446 446
  * colorize output
447
+ * @param string $color
447 448
  */
448 449
 function out($text, $color = null, $newLine = true)
449 450
 {
@@ -526,6 +527,9 @@  discard block
 block discarded – undo
526 527
     return false;
527 528
 }
528 529
 
530
+/**
531
+ * @param string $contents
532
+ */
529 533
 function validateCaFile($contents)
530 534
 {
531 535
     // assume the CA is valid if php is vulnerable to
@@ -561,7 +565,7 @@  discard block
 block discarded – undo
561 565
      *
562 566
      * @param bool $quiet Quiet mode
563 567
      * @param bool $disableTls Bypass tls
564
-     * @param mixed $cafile Path to CA bundle, or false
568
+     * @param mixed $caFile Path to CA bundle, or false
565 569
      */
566 570
     public function __construct($quiet, $disableTls, $caFile)
567 571
     {
@@ -899,9 +903,9 @@  discard block
 block discarded – undo
899 903
      * Parses an array of version data to match the required channel
900 904
      *
901 905
      * @param array $data Downloaded version data
902
-     * @param mixed $channel Version channel to use
906
+     * @param string $channel Version channel to use
903 907
      * @param false|string $version Set by method
904
-     * @param mixed $url The versioned url, set by method
908
+     * @param null|string $url The versioned url, set by method
905 909
      */
906 910
     protected function parseVersionData(array $data, $channel, &$version, &$url)
907 911
     {
@@ -1181,6 +1185,11 @@  discard block
 block discarded – undo
1181 1185
         }
1182 1186
     }
1183 1187
 
1188
+    /**
1189
+     * @param string $url
1190
+     *
1191
+     * @return string
1192
+     */
1184 1193
     public function get($url)
1185 1194
     {
1186 1195
         $context = $this->getStreamContext($url);
@@ -1227,6 +1236,9 @@  discard block
 block discarded – undo
1227 1236
         return $this->getMergedStreamContext($url);
1228 1237
     }
1229 1238
 
1239
+    /**
1240
+     * @param boolean $cafile
1241
+     */
1230 1242
     protected function getTlsStreamContextDefaults($cafile)
1231 1243
     {
1232 1244
         $ciphers = implode(':', array(
Please login to merge, or discard this patch.