Completed
Pull Request — master (#2)
by Stephen
13:19
created
src/wp-admin/includes/class-ftp-pure.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -83,6 +83,9 @@
 block discarded – undo
83 83
 		return $result;
84 84
 	}
85 85
 
86
+	/**
87
+	 * @param string $cmd
88
+	 */
86 89
 	function _exec($cmd, $fnction="_exec") {
87 90
 		if(!$this->_ready) {
88 91
 			$this->PushError($fnction,'Connect first');
Please login to merge, or discard this patch.
src/wp-admin/includes/class-ftp.php 1 patch
Doc Comments   +48 added lines patch added patch discarded remove patch
@@ -231,6 +231,9 @@  discard block
 block discarded – undo
231 231
 		return TRUE;
232 232
 	}
233 233
 
234
+	/**
235
+	 * @param integer $mode
236
+	 */
234 237
 	function SetType($mode=FTP_AUTOASCII) {
235 238
 		if(!in_array($mode, $this->AuthorizedTransferMode)) {
236 239
 			$this->SendMSG("Wrong type");
@@ -256,6 +259,9 @@  discard block
 block discarded – undo
256 259
 		return TRUE;
257 260
 	}
258 261
 
262
+	/**
263
+	 * @param boolean $pasv
264
+	 */
259 265
 	function Passive($pasv=NULL) {
260 266
 		if(is_null($pasv)) $this->_passive=!$this->_passive;
261 267
 		else $this->_passive=$pasv;
@@ -389,6 +395,9 @@  discard block
 block discarded – undo
389 395
 		return true;
390 396
 	}
391 397
 
398
+	/**
399
+	 * @param string $pathname
400
+	 */
392 401
 	function chdir($pathname) {
393 402
 		if(!$this->_exec("CWD ".$pathname, "chdir")) return FALSE;
394 403
 		if(!$this->_checkCode()) return FALSE;
@@ -407,6 +416,10 @@  discard block
 block discarded – undo
407 416
 		return TRUE;
408 417
 	}
409 418
 
419
+	/**
420
+	 * @param string $from
421
+	 * @param string $to
422
+	 */
410 423
 	function rename($from, $to) {
411 424
 		if(!$this->_exec("RNFR ".$from, "rename")) return FALSE;
412 425
 		if(!$this->_checkCode()) return FALSE;
@@ -417,6 +430,9 @@  discard block
 block discarded – undo
417 430
 		return TRUE;
418 431
 	}
419 432
 
433
+	/**
434
+	 * @param string $pathname
435
+	 */
420 436
 	function filesize($pathname) {
421 437
 		if(!isset($this->_features["SIZE"])) {
422 438
 			$this->PushError("filesize", "not supported by server");
@@ -437,6 +453,9 @@  discard block
 block discarded – undo
437 453
 		return true;
438 454
 	}
439 455
 
456
+	/**
457
+	 * @param string $pathname
458
+	 */
440 459
 	function mdtm($pathname) {
441 460
 		if(!isset($this->_features["MDTM"])) {
442 461
 			$this->PushError("mdtm", "not supported by server");
@@ -457,12 +476,18 @@  discard block
 block discarded – undo
457 476
 		return array($DATA[1], $DATA[3]);
458 477
 	}
459 478
 
479
+	/**
480
+	 * @param string $pathname
481
+	 */
460 482
 	function delete($pathname) {
461 483
 		if(!$this->_exec("DELE ".$pathname, "delete")) return FALSE;
462 484
 		if(!$this->_checkCode()) return FALSE;
463 485
 		return TRUE;
464 486
 	}
465 487
 
488
+	/**
489
+	 * @param string $command
490
+	 */
466 491
 	function site($command, $fnction="site") {
467 492
 		if(!$this->_exec("SITE ".$command, $fnction)) return FALSE;
468 493
 		if(!$this->_checkCode()) return FALSE;
@@ -524,6 +549,9 @@  discard block
 block discarded – undo
524 549
 		return $exists;
525 550
 	}
526 551
 
552
+	/**
553
+	 * @param string $remotefile
554
+	 */
527 555
 	function fget($fp, $remotefile,$rest=0) {
528 556
 		if($this->_can_restore and $rest!=0) fseek($fp, $rest);
529 557
 		$pi=pathinfo($remotefile);
@@ -548,6 +576,10 @@  discard block
 block discarded – undo
548 576
 		return $out;
549 577
 	}
550 578
 
579
+	/**
580
+	 * @param string $remotefile
581
+	 * @param string $localfile
582
+	 */
551 583
 	function get($remotefile, $localfile=NULL, $rest=0) {
552 584
 		if(is_null($localfile)) $localfile=$remotefile;
553 585
 		if (@file_exists($localfile)) $this->SendMSG("Warning : local file will be overwritten");
@@ -583,6 +615,9 @@  discard block
 block discarded – undo
583 615
 		return $out;
584 616
 	}
585 617
 
618
+	/**
619
+	 * @param string $remotefile
620
+	 */
586 621
 	function fput($remotefile, $fp) {
587 622
 		if($this->_can_restore and $rest!=0) fseek($fp, $rest);
588 623
 		$pi=pathinfo($remotefile);
@@ -607,6 +642,9 @@  discard block
 block discarded – undo
607 642
 		return $ret;
608 643
 	}
609 644
 
645
+	/**
646
+	 * @param string $localfile
647
+	 */
610 648
 	function put($localfile, $remotefile=NULL, $rest=0) {
611 649
 		if(is_null($remotefile)) $remotefile=$localfile;
612 650
 		if (!file_exists($localfile)) {
@@ -718,6 +756,9 @@  discard block
 block discarded – undo
718 756
 		return $ret;
719 757
 	}
720 758
 
759
+	/**
760
+	 * @param string $remote
761
+	 */
721 762
 	function mdel($remote, $continious=false) {
722 763
 		$list=$this->rawlist($remote, "-la");
723 764
 		if($list===false) {
@@ -823,6 +864,9 @@  discard block
 block discarded – undo
823 864
 		);
824 865
 	}
825 866
 
867
+	/**
868
+	 * @param string $remote
869
+	 */
826 870
 	function dirlist($remote) {
827 871
 		$list=$this->rawlist($remote, "-la");
828 872
 		if($list===false) {
@@ -878,6 +922,10 @@  discard block
 block discarded – undo
878 922
 // <!-- Partie : gestion des erreurs                                                            -->
879 923
 // <!-- --------------------------------------------------------------------------------------- -->
880 924
 // Gnre une erreur pour traitement externe  la classe
925
+	/**
926
+	 * @param string $fctname
927
+	 * @param string $msg
928
+	 */
881 929
 	function PushError($fctname,$msg,$desc=false){
882 930
 		$error=array();
883 931
 		$error['time']=time();
Please login to merge, or discard this patch.
src/wp-admin/includes/class-pclzip.php 1 patch
Doc Comments   +22 added lines patch added patch discarded remove patch
@@ -2339,6 +2339,10 @@  discard block
 block discarded – undo
2339 2339
   // Description :
2340 2340
   // Parameters :
2341 2341
   // --------------------------------------------------------------------------------
2342
+
2343
+  /**
2344
+   * @param string $p_mode
2345
+   */
2342 2346
   function privOpenFd($p_mode)
2343 2347
   {
2344 2348
     $v_result=1;
@@ -4150,6 +4154,10 @@  discard block
 block discarded – undo
4150 4154
   // Parameters :
4151 4155
   // Return Values :
4152 4156
   // --------------------------------------------------------------------------------
4157
+
4158
+  /**
4159
+   * @param string $p_string
4160
+   */
4153 4161
   function privExtractFileAsString(&$p_entry, &$p_string, &$p_options)
4154 4162
   {
4155 4163
     $v_result=1;
@@ -5041,6 +5049,10 @@  discard block
 block discarded – undo
5041 5049
   // Parameters :
5042 5050
   // Return Values :
5043 5051
   // --------------------------------------------------------------------------------
5052
+
5053
+  /**
5054
+   * @param PclZip $p_archive_to_add
5055
+   */
5044 5056
   function privMerge(&$p_archive_to_add)
5045 5057
   {
5046 5058
     $v_result=1;
@@ -5548,6 +5560,11 @@  discard block
 block discarded – undo
5548 5560
   //             3 : src & dest gzip
5549 5561
   // Return Values :
5550 5562
   // --------------------------------------------------------------------------------
5563
+
5564
+  /**
5565
+   * @param integer $p_src
5566
+   * @param integer $p_dest
5567
+   */
5551 5568
   function PclZipUtilCopyBlock($p_src, $p_dest, $p_size, $p_mode=0)
5552 5569
   {
5553 5570
     $v_result = 1;
@@ -5610,6 +5627,11 @@  discard block
 block discarded – undo
5610 5627
   // Return Values :
5611 5628
   //   1 on success, 0 on failure.
5612 5629
   // --------------------------------------------------------------------------------
5630
+
5631
+  /**
5632
+   * @param string $p_src
5633
+   * @param string $p_dest
5634
+   */
5613 5635
   function PclZipUtilRename($p_src, $p_dest)
5614 5636
   {
5615 5637
     $v_result = 1;
Please login to merge, or discard this patch.
src/wp-admin/includes/class-wp-filesystem-ftpsockets.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -359,7 +359,7 @@
 block discarded – undo
359 359
 
360 360
 	/**
361 361
 	 * @param string $file
362
-	 * @return int
362
+	 * @return false|string
363 363
 	 */
364 364
 	public function size($file) {
365 365
 		return $this->ftp->filesize($file);
Please login to merge, or discard this patch.
src/wp-admin/includes/class-wp-list-table.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@
 block discarded – undo
183 183
 	 * @access public
184 184
 	 *
185 185
 	 * @param string $name Property to check if set.
186
-	 * @return bool Whether the property is set.
186
+	 * @return boolean|null Whether the property is set.
187 187
 	 */
188 188
 	public function __isset( $name ) {
189 189
 		if ( in_array( $name, $this->compat_fields ) ) {
Please login to merge, or discard this patch.
src/wp-admin/includes/class-wp-ms-themes-list-table.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
 	/**
51 51
 	 *
52
-	 * @return array
52
+	 * @return string[]
53 53
 	 */
54 54
 	protected function get_table_classes() {
55 55
 		// todo: remove and add CSS for .themes
Please login to merge, or discard this patch.
src/wp-admin/includes/class-wp-ms-users-list-table.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -389,7 +389,7 @@
 block discarded – undo
389 389
 	 * @since 4.3.0
390 390
 	 * @access protected
391 391
 	 *
392
-	 * @param object $user        User being acted upon.
392
+	 * @param WP_User $user        User being acted upon.
393 393
 	 * @param string $column_name Current column name.
394 394
 	 * @param string $primary     Primary column name.
395 395
 	 * @return string Row actions output for users in Multisite.
Please login to merge, or discard this patch.
src/wp-admin/includes/misc.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
  *
190 190
  * @global WP_Rewrite $wp_rewrite
191 191
  *
192
- * @return bool True if web.config was updated successfully
192
+ * @return null|boolean True if web.config was updated successfully
193 193
  */
194 194
 function iis7_save_url_rewrite_rules(){
195 195
 	if ( is_multisite() )
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
  *
276 276
  * @since 2.0.0
277 277
  *
278
- * @param array $vars An array of globals to reset.
278
+ * @param string[] $vars An array of globals to reset.
279 279
  */
280 280
 function wp_reset_vars( $vars ) {
281 281
 	foreach ( $vars as $var ) {
Please login to merge, or discard this patch.
src/wp-admin/includes/nav-menu.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1282,7 +1282,7 @@
 block discarded – undo
1282 1282
  *
1283 1283
  * @param int|string $nav_menu_selected_id (id, slug, or name ) of the currently-selected menu
1284 1284
  * @param string $nav_menu_selected_title Title of the currently-selected menu
1285
- * @return array $messages The menu updated message
1285
+ * @return string[] $messages The menu updated message
1286 1286
  */
1287 1287
 function wp_nav_menu_update_menu_items ( $nav_menu_selected_id, $nav_menu_selected_title ) {
1288 1288
 	$unsorted_menu_items = wp_get_nav_menu_items( $nav_menu_selected_id, array( 'orderby' => 'ID', 'output' => ARRAY_A, 'output_key' => 'ID', 'post_status' => 'draft,publish' ) );
Please login to merge, or discard this patch.