Completed
Push — add/legacy-files ( 812cbc...51d502 )
by
unknown
66:05 queued 56:52
created
packages/analyzer/src/Declarations/Visitor.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -10,6 +10,9 @@
 block discarded – undo
10 10
 	private $declarations;
11 11
 	private $current_relative_path;
12 12
 
13
+	/**
14
+	 * @param  $declarations
15
+	 */
13 16
 	public function __construct( $current_relative_path, $declarations ) {
14 17
 		$this->current_relative_path = $current_relative_path;
15 18
 		$this->declarations = $declarations;
Please login to merge, or discard this patch.
packages/analyzer/src/Invocations/Function_Call.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@
 block discarded – undo
14 14
 	public $line;
15 15
 	public $func_name;
16 16
 
17
+	/**
18
+	 * @param string $func_name
19
+	 */
17 20
 	public function __construct( $path, $line, $func_name ) {
18 21
 		$this->path = $path;
19 22
 		$this->line = $line;
Please login to merge, or discard this patch.
packages/analyzer/src/Declarations.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -33,6 +33,9 @@
 block discarded – undo
33 33
 		}
34 34
 	}
35 35
 
36
+	/**
37
+	 * @param string $root
38
+	 */
36 39
 	public function scan_dir( $root, $exclude = array() ) {
37 40
 
38 41
 		if ( is_null( $exclude ) || ! is_array( $exclude ) ) {
Please login to merge, or discard this patch.
packages/analyzer/src/Warnings/Warning.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -9,6 +9,10 @@
 block discarded – undo
9 9
 	public $line;
10 10
 	public $message;
11 11
 
12
+	/**
13
+	 * @param string $type
14
+	 * @param string $message
15
+	 */
12 16
 	function __construct( $type, $path, $line, $message ) {
13 17
 		$this->type = $type;
14 18
 		$this->path = $path;
Please login to merge, or discard this patch.
packages/analyzer/src/Invocations.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -37,6 +37,9 @@
 block discarded – undo
37 37
 		}
38 38
 	}
39 39
 
40
+	/**
41
+	 * @param string $root
42
+	 */
40 43
 	public function scan_dir( $root, $exclude = array() ) {
41 44
 		$filter = function ( $file, $key, $iterator ) use ( $exclude ) {
42 45
 			if ( $iterator->hasChildren() && ! in_array( $file->getFilename(), $exclude ) ) {
Please login to merge, or discard this patch.
packages/analyzer/src/Invocations/Visitor.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -9,6 +9,9 @@
 block discarded – undo
9 9
 	private $invocations;
10 10
 	private $file_path;
11 11
 
12
+	/**
13
+	 * @param  $invocations
14
+	 */
12 15
 	public function __construct( $file_path, $invocations ) {
13 16
 		$this->file_path   = $file_path;
14 17
 		$this->invocations = $invocations;
Please login to merge, or discard this patch.
packages/analyzer/src/PersistentList.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -31,6 +31,7 @@
 block discarded – undo
31 31
 
32 32
 	/**
33 33
 	 * Saves the items to a file and returns the file contents
34
+	 * @param string $file_path
34 35
 	 */
35 36
 	public function save( $file_path ) {
36 37
 		$handle = fopen( $file_path, 'w+' );
Please login to merge, or discard this patch.
class.jetpack.php 1 patch
Doc Comments   +38 added lines, -16 removed lines patch added patch discarded remove patch
@@ -762,7 +762,7 @@  discard block
 block discarded – undo
762 762
 	 * This is ported over from the manage module, which has been deprecated and baked in here.
763 763
 	 *
764 764
 	 * @param $domains
765
-	 * @return array
765
+	 * @return string[]
766 766
 	 */
767 767
 	function allow_wpcom_domain( $domains ) {
768 768
 		if ( empty( $domains ) ) {
@@ -1258,7 +1258,7 @@  discard block
 block discarded – undo
1258 1258
 	}
1259 1259
 	/**
1260 1260
 	 * Does the network allow admins to add new users.
1261
-	 * @return boolian
1261
+	 * @return boolean
1262 1262
 	 */
1263 1263
 	static function network_add_new_users( $option = null ) {
1264 1264
 		return (bool) get_site_option( 'add_new_users' );
@@ -1363,7 +1363,7 @@  discard block
 block discarded – undo
1363 1363
 	 * database which could be set to anything as opposed to what this function returns.
1364 1364
 	 * @param  bool  $option
1365 1365
 	 *
1366
-	 * @return boolean
1366
+	 * @return string
1367 1367
 	 */
1368 1368
 	public function is_main_network_option( $option ) {
1369 1369
 		// return '1' or ''
@@ -1374,7 +1374,7 @@  discard block
 block discarded – undo
1374 1374
 	 * Return true if we are with multi-site or multi-network false if we are dealing with single site.
1375 1375
 	 *
1376 1376
 	 * @param  string  $option
1377
-	 * @return boolean
1377
+	 * @return string
1378 1378
 	 */
1379 1379
 	public function is_multisite( $option ) {
1380 1380
 		return (string) (bool) is_multisite();
@@ -1436,7 +1436,7 @@  discard block
 block discarded – undo
1436 1436
 
1437 1437
 	/**
1438 1438
 	 * Returns true if the site has file write access false otherwise.
1439
-	 * @return string ( '1' | '0' )
1439
+	 * @return integer ( '1' | '0' )
1440 1440
 	 **/
1441 1441
 	public static function file_system_write_access() {
1442 1442
 		if ( ! function_exists( 'get_filesystem_method' ) ) {
@@ -2163,6 +2163,7 @@  discard block
 block discarded – undo
2163 2163
 	 * @param int $user_id
2164 2164
 	 * @param string $token
2165 2165
 	 * return bool
2166
+	 * @param boolean $is_master_user
2166 2167
 	 */
2167 2168
 	public static function update_user_token( $user_id, $token, $is_master_user ) {
2168 2169
 		// not designed for concurrent updates
@@ -2607,7 +2608,7 @@  discard block
 block discarded – undo
2607 2608
 	 *
2608 2609
 	 * @param string $tag Tag as it appears in each module heading.
2609 2610
 	 *
2610
-	 * @return mixed
2611
+	 * @return string
2611 2612
 	 */
2612 2613
 	public static function translate_module_tag( $tag ) {
2613 2614
 		return jetpack_get_module_i18n_tag( $tag );
@@ -2779,8 +2780,8 @@  discard block
 block discarded – undo
2779 2780
 	 * Rewrites ABSPATH (eg `/home/jetpack/wordpress/`) to ABSPATH, and if WP_CONTENT_DIR
2780 2781
 	 * is located outside of ABSPATH, rewrites that to WP_CONTENT_DIR.
2781 2782
 	 *
2782
-	 * @param $string
2783
-	 * @return mixed
2783
+	 * @param string $string
2784
+	 * @return string|null
2784 2785
 	 */
2785 2786
 	public static function alias_directories( $string ) {
2786 2787
 		// ABSPATH has a trailing slash.
@@ -3022,6 +3023,9 @@  discard block
 block discarded – undo
3022 3023
 		_deprecated_function( __METHOD__, 'jetpack-4.2' );
3023 3024
 	}
3024 3025
 
3026
+	/**
3027
+	 * @return string
3028
+	 */
3025 3029
 	public static function deactivate_module( $module ) {
3026 3030
 		/**
3027 3031
 		 * Fires when a module is deactivated.
@@ -3040,6 +3044,9 @@  discard block
 block discarded – undo
3040 3044
 		return self::update_active_modules( $new );
3041 3045
 	}
3042 3046
 
3047
+	/**
3048
+	 * @param string $module
3049
+	 */
3043 3050
 	public static function enable_module_configurable( $module ) {
3044 3051
 		$module = Jetpack::get_module_slug( $module );
3045 3052
 		add_filter( 'jetpack_module_configurable_' . $module, '__return_true' );
@@ -3068,6 +3075,9 @@  discard block
 block discarded – undo
3068 3075
 	}
3069 3076
 
3070 3077
 /* Installation */
3078
+	/**
3079
+	 * @param string $message
3080
+	 */
3071 3081
 	public static function bail_on_activation( $message, $deactivate = true ) {
3072 3082
 ?>
3073 3083
 <!doctype html>
@@ -3802,7 +3812,7 @@  discard block
 block discarded – undo
3802 3812
 	 * Add help to the Jetpack page
3803 3813
 	 *
3804 3814
 	 * @since Jetpack (1.2.3)
3805
-	 * @return false if not the Jetpack page
3815
+	 * @return false|null if not the Jetpack page
3806 3816
 	 */
3807 3817
 	function admin_help() {
3808 3818
 		$current_screen = get_current_screen();
@@ -4638,6 +4648,9 @@  discard block
 block discarded – undo
4638 4648
 		return $url;
4639 4649
 	}
4640 4650
 
4651
+	/**
4652
+	 * @return string
4653
+	 */
4641 4654
 	public static function nonce_url_no_esc( $actionurl, $action = -1, $name = '_wpnonce' ) {
4642 4655
 		$actionurl = str_replace( '&amp;', '&', $actionurl );
4643 4656
 		return add_query_arg( $name, wp_create_nonce( $action ), $actionurl );
@@ -4697,6 +4710,7 @@  discard block
 block discarded – undo
4697 4710
 	/**
4698 4711
 	 * Returns the requested Jetpack API URL
4699 4712
 	 *
4713
+	 * @param string $relative_url
4700 4714
 	 * @return string
4701 4715
 	 */
4702 4716
 	public static function api_url( $relative_url ) {
@@ -4892,6 +4906,7 @@  discard block
 block discarded – undo
4892 4906
 	 * Note these tokens are unique per call, NOT static per site for connecting.
4893 4907
 	 *
4894 4908
 	 * @since 2.6
4909
+	 * @param string $action
4895 4910
 	 * @return array
4896 4911
 	 */
4897 4912
 	public static function generate_secrets( $action, $user_id = false, $exp = 600 ) {
@@ -5447,7 +5462,6 @@  discard block
 block discarded – undo
5447 5462
 	/**
5448 5463
 	 * Report authentication status to the WP REST API.
5449 5464
 	 *
5450
-	 * @param  WP_Error|mixed $result Error from another authentication handler, null if we should handle it, or another value if not
5451 5465
 	 * @return WP_Error|boolean|null {@see WP_JSON_Server::check_authentication}
5452 5466
 	 */
5453 5467
 	public function wp_rest_authentication_errors( $value ) {
@@ -5457,6 +5471,10 @@  discard block
 block discarded – undo
5457 5471
 		return $this->rest_authentication_status;
5458 5472
 	}
5459 5473
 
5474
+	/**
5475
+	 * @param integer $timestamp
5476
+	 * @param string $nonce
5477
+	 */
5460 5478
 	function add_nonce( $timestamp, $nonce ) {
5461 5479
 		global $wpdb;
5462 5480
 		static $nonces_used_this_request = array();
@@ -5602,6 +5620,7 @@  discard block
 block discarded – undo
5602 5620
 	 * @param string $key
5603 5621
 	 * @param string $value
5604 5622
 	 * @param bool $restate private
5623
+	 * @return string
5605 5624
 	 */
5606 5625
 	public static function state( $key = null, $value = null, $restate = false ) {
5607 5626
 		static $state = array();
@@ -5658,6 +5677,9 @@  discard block
 block discarded – undo
5658 5677
 		Jetpack::state( null, null, true );
5659 5678
 	}
5660 5679
 
5680
+	/**
5681
+	 * @param string $file
5682
+	 */
5661 5683
 	public static function check_privacy( $file ) {
5662 5684
 		static $is_site_publicly_accessible = null;
5663 5685
 
@@ -5740,6 +5762,9 @@  discard block
 block discarded – undo
5740 5762
 		}
5741 5763
 	}
5742 5764
 
5765
+	/**
5766
+	 * @param string $url
5767
+	 */
5743 5768
 	public static function staticize_subdomain( $url ) {
5744 5769
 
5745 5770
 		// Extract hostname from URL
@@ -6295,9 +6320,7 @@  discard block
 block discarded – undo
6295 6320
 	 *
6296 6321
 	 * Attached to `style_loader_src` filter.
6297 6322
 	 *
6298
-	 * @param string $tag The tag that would link to the external asset.
6299 6323
 	 * @param string $handle The registered handle of the script in question.
6300
-	 * @param string $href The url of the asset in question.
6301 6324
 	 */
6302 6325
 	public static function set_suffix_on_min( $src, $handle ) {
6303 6326
 		if ( false === strpos( $src, '.min.css' ) ) {
@@ -6484,8 +6507,8 @@  discard block
 block discarded – undo
6484 6507
 	 *  - Absolute URLs             `http://domain.com/feh.png`
6485 6508
 	 *  - Domain root relative URLs `/feh.png`
6486 6509
 	 *
6487
-	 * @param $css string: The raw CSS -- should be read in directly from the file.
6488
-	 * @param $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6510
+	 * @param string $css string: The raw CSS -- should be read in directly from the file.
6511
+	 * @param string $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6489 6512
 	 *
6490 6513
 	 * @return mixed|string
6491 6514
 	 */
@@ -6728,7 +6751,7 @@  discard block
 block discarded – undo
6728 6751
 	/**
6729 6752
 	 * Stores and prints out domains to prefetch for page speed optimization.
6730 6753
 	 *
6731
-	 * @param mixed $new_urls
6754
+	 * @param string[] $new_urls
6732 6755
 	 */
6733 6756
 	public static function dns_prefetch( $new_urls = null ) {
6734 6757
 		static $prefetch_urls = array();
@@ -6784,7 +6807,6 @@  discard block
 block discarded – undo
6784 6807
 	}
6785 6808
 
6786 6809
 	/**
6787
-	 * @param mixed $result Value for the user's option
6788 6810
 	 * @return mixed
6789 6811
 	 */
6790 6812
 	function get_user_option_meta_box_order_dashboard( $sorted ) {
Please login to merge, or discard this patch.
modules/sitemaps/sitemap-librarian.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 	 * @param string $name Name of the sitemap to be retrieved.
32 32
 	 * @param string $type Type of the sitemap to be retrieved.
33 33
 	 *
34
-	 * @return array $args {
34
+	 * @return string $args {
35 35
 	 *   @type int    $id        ID number of the sitemap in the database.
36 36
 	 *   @type string $timestamp Most recent timestamp of the resources pointed to.
37 37
 	 *   @type string $name      Name of the sitemap in the database.
Please login to merge, or discard this patch.