Completed
Push — update/publicize-uses-publish-... ( 0d898d...acfb67 )
by
unknown
07:38
created
modules/custom-css/custom-css/preprocessors/scss.inc.php 1 patch
Doc Comments   +72 added lines patch added patch discarded remove patch
@@ -273,6 +273,9 @@  discard block
 block discarded – undo
273 273
 		}
274 274
 	}
275 275
 
276
+	/**
277
+	 * @param stdClass $block
278
+	 */
276 279
 	protected function flattenSelectors($block, $parentKey = null) {
277 280
 		if ($block->selectors) {
278 281
 			$selectors = array();
@@ -362,6 +365,10 @@  discard block
 block discarded – undo
362 365
 	}
363 366
 
364 367
 	// TODO refactor compileNestedBlock and compileMedia into same thing
368
+
369
+	/**
370
+	 * @param string[] $selectors
371
+	 */
365 372
 	protected function compileNestedBlock($block, $selectors) {
366 373
 		$this->pushEnv($block);
367 374
 
@@ -1140,6 +1147,9 @@  discard block
 block discarded – undo
1140 1147
 		return $this->toBool($left[1] < $right[1]);
1141 1148
 	}
1142 1149
 
1150
+	/**
1151
+	 * @param boolean $thing
1152
+	 */
1143 1153
 	public function toBool($thing) {
1144 1154
 		return $thing ? self::$true : self::$false;
1145 1155
 	}
@@ -1268,6 +1278,10 @@  discard block
 block discarded – undo
1268 1278
 	}
1269 1279
 
1270 1280
 	// find the final set of selectors
1281
+
1282
+	/**
1283
+	 * @param stdClass $env
1284
+	 */
1271 1285
 	protected function multiplySelectors($env) {
1272 1286
 		$envs = array();
1273 1287
 		while (null !== $env) {
@@ -1474,6 +1488,9 @@  discard block
 block discarded – undo
1474 1488
 		$env->store[$name] = $value;
1475 1489
 	}
1476 1490
 
1491
+	/**
1492
+	 * @param boolean $defaultValue
1493
+	 */
1477 1494
 	public function get($name, $defaultValue = null, $env = null) {
1478 1495
 		$name = $this->normalizeName($name);
1479 1496
 
@@ -1503,6 +1520,9 @@  discard block
 block discarded – undo
1503 1520
 		$this->importPaths[] = $path;
1504 1521
 	}
1505 1522
 
1523
+	/**
1524
+	 * @param string $path
1525
+	 */
1506 1526
 	public function setImportPaths($path) {
1507 1527
 		$this->importPaths = (array)$path;
1508 1528
 	}
@@ -1511,6 +1531,9 @@  discard block
 block discarded – undo
1511 1531
 		$this->numberPrecision = $numberPrecision;
1512 1532
 	}
1513 1533
 
1534
+	/**
1535
+	 * @param string $formatterName
1536
+	 */
1514 1537
 	public function setFormatter($formatterName) {
1515 1538
 		$this->formatter = $formatterName;
1516 1539
 	}
@@ -1544,6 +1567,10 @@  discard block
 block discarded – undo
1544 1567
 	}
1545 1568
 
1546 1569
 	// results the file path for an import url if it exists
1570
+
1571
+	/**
1572
+	 * @param string $url
1573
+	 */
1547 1574
 	public function findImport($url) {
1548 1575
 		$urls = array();
1549 1576
 
@@ -1579,6 +1606,9 @@  discard block
 block discarded – undo
1579 1606
 		return null;
1580 1607
 	}
1581 1608
 
1609
+	/**
1610
+	 * @param string $name
1611
+	 */
1582 1612
 	protected function fileExists($name) {
1583 1613
 		return is_file($name);
1584 1614
 	}
@@ -1766,6 +1796,11 @@  discard block
 block discarded – undo
1766 1796
 		return array('hsl', fmod($h, 360), $s * 100, $l * 100);
1767 1797
 	}
1768 1798
 
1799
+	/**
1800
+	 * @param double $m1
1801
+	 * @param double $m2
1802
+	 * @param double $h
1803
+	 */
1769 1804
 	public function hueToRGB($m1, $m2, $h) {
1770 1805
 		if ($h < 0)
1771 1806
 			$h += 1;
@@ -1850,6 +1885,10 @@  discard block
 block discarded – undo
1850 1885
 	}
1851 1886
 
1852 1887
 	// helper function for adjust_color, change_color, and scale_color
1888
+
1889
+	/**
1890
+	 * @param string $fn
1891
+	 */
1853 1892
 	protected function alter_color($args, $fn) {
1854 1893
 		$color = $this->assertColor($args[0]);
1855 1894
 
@@ -2047,6 +2086,9 @@  discard block
 block discarded – undo
2047 2086
 		return array("number", $hsl[3], "%");
2048 2087
 	}
2049 2088
 
2089
+	/**
2090
+	 * @param integer $idx
2091
+	 */
2050 2092
 	protected function adjustHsl($color, $idx, $amount) {
2051 2093
 		$hsl = $this->toHSL($color[1], $color[2], $color[3]);
2052 2094
 		$hsl[$idx] += $amount;
@@ -2965,6 +3007,10 @@  discard block
 block discarded – undo
2965 3007
 		return false;
2966 3008
 	}
2967 3009
 
3010
+	/**
3011
+	 * @param string $what
3012
+	 * @param boolean $eatWhitespace
3013
+	 */
2968 3014
 	protected function literal($what, $eatWhitespace = null) {
2969 3015
 		if (is_null($eatWhitespace)) $eatWhitespace = $this->eatWhiteDefault;
2970 3016
 
@@ -2997,6 +3043,9 @@  discard block
 block discarded – undo
2997 3043
 		return $b;
2998 3044
 	}
2999 3045
 
3046
+	/**
3047
+	 * @param string $type
3048
+	 */
3000 3049
 	protected function pushSpecialBlock($type) {
3001 3050
 		$block = $this->pushBlock(null);
3002 3051
 		$block->type = $type;
@@ -3123,6 +3172,9 @@  discard block
 block discarded – undo
3123 3172
 		return $this->genericList($out, "expression");
3124 3173
 	}
3125 3174
 
3175
+	/**
3176
+	 * @param string $parseItem
3177
+	 */
3126 3178
 	protected function genericList(&$out, $parseItem, $delim="", $flatten=true) {
3127 3179
 		$s = $this->seek();
3128 3180
 		$items = array();
@@ -3171,6 +3223,9 @@  discard block
 block discarded – undo
3171 3223
 		return false;
3172 3224
 	}
3173 3225
 
3226
+	/**
3227
+	 * @param integer $minP
3228
+	 */
3174 3229
 	protected function expHelper($lhs, $minP) {
3175 3230
 		$opstr = self::$operatorStr;
3176 3231
 
@@ -3518,6 +3573,11 @@  discard block
 block discarded – undo
3518 3573
 	}
3519 3574
 
3520 3575
 	// an unbounded string stopped by $end
3576
+
3577
+	/**
3578
+	 * @param string $end
3579
+	 * @param string $nestingOpen
3580
+	 */
3521 3581
 	protected function openString($end, &$out, $nestingOpen=null) {
3522 3582
 		$oldWhite = $this->eatWhiteDefault;
3523 3583
 		$this->eatWhiteDefault = false;
@@ -3850,6 +3910,9 @@  discard block
 block discarded – undo
3850 3910
 		return false;
3851 3911
 	}
3852 3912
 
3913
+	/**
3914
+	 * @param boolean $eatWhitespace
3915
+	 */
3853 3916
 	protected function keyword(&$word, $eatWhitespace = null) {
3854 3917
 		if ($this->match('([\w_\-\*!"\'\\\\][\w\-_"\'\\\\]*)',
3855 3918
 			$m, $eatWhitespace))
@@ -3959,6 +4022,10 @@  discard block
 block discarded – undo
3959 4022
 	}
3960 4023
 
3961 4024
 	// try to match something on head of buffer
4025
+
4026
+	/**
4027
+	 * @param string $regex
4028
+	 */
3962 4029
 	protected function match($regex, &$out, $eatWhitespace = null) {
3963 4030
 		if (is_null($eatWhitespace)) $eatWhitespace = $this->eatWhiteDefault;
3964 4031
 
@@ -3987,6 +4054,9 @@  discard block
 block discarded – undo
3987 4054
 		return $gotWhite;
3988 4055
 	}
3989 4056
 
4057
+	/**
4058
+	 * @param string $regex
4059
+	 */
3990 4060
 	protected function peek($regex, &$out, $from=null) {
3991 4061
 		if (is_null($from)) $from = $this->count;
3992 4062
 
@@ -4253,6 +4323,7 @@  discard block
 block discarded – undo
4253 4323
 	/**
4254 4324
 	 * Get path to cached .css file
4255 4325
 	 *
4326
+	 * @param string $fname
4256 4327
 	 * @return string
4257 4328
 	 */
4258 4329
 	protected function cacheName($fname) {
@@ -4262,6 +4333,7 @@  discard block
 block discarded – undo
4262 4333
 	/**
4263 4334
 	 * Get path to cached imports
4264 4335
 	 *
4336
+	 * @param string $out
4265 4337
 	 * @return string
4266 4338
 	 */
4267 4339
 	protected function importsCacheName($out) {
Please login to merge, or discard this patch.
sync/class.jetpack-sync-options.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -119,6 +119,9 @@  discard block
 block discarded – undo
119 119
 		return $default;
120 120
 	}
121 121
 
122
+	/**
123
+	 * @param string $name
124
+	 */
122 125
 	private static function update_grouped_option( $group, $name, $value ) {
123 126
 		$options = get_option( self::$grouped_options[ $group ] );
124 127
 		if ( ! is_array( $options ) ) {
@@ -217,6 +220,9 @@  discard block
 block discarded – undo
217 220
 		return $result;
218 221
 	}
219 222
 
223
+	/**
224
+	 * @param string $name
225
+	 */
220 226
 	private static function get_grouped_option( $group, $name, $default ) {
221 227
 		$options = get_option( self::$grouped_options[ $group ] );
222 228
 		if ( is_array( $options ) && isset( $options[ $name ] ) ) {
Please login to merge, or discard this patch.
modules/shortcodes/archiveorg.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
  *
99 99
  * @param string $content
100 100
  *
101
- * @return mixed
101
+ * @return string
102 102
  */
103 103
 function jetpack_archiveorg_embed_to_shortcode( $content ) {
104 104
 	if ( false === stripos( $content, 'archive.org/embed/' ) )
Please login to merge, or discard this patch.
modules/wordads/php/api.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
 	/**
47 47
 	 * Returns status of WordAds approval.
48
-	 * @return boolean true if site is WordAds approved
48
+	 * @return string true if site is WordAds approved
49 49
 	 *
50 50
 	 * @since 4.5.0
51 51
 	 */
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
 	/**
61 61
 	 * Returns status of WordAds active.
62
-	 * @return boolean true if ads are active on site
62
+	 * @return string true if ads are active on site
63 63
 	 *
64 64
 	 * @since 4.5.0
65 65
 	 */
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
 	/**
75 75
 	 * Returns status of WordAds house ads.
76
-	 * @return boolean true if WP.com house ads should be shown
76
+	 * @return string true if WP.com house ads should be shown
77 77
 	 *
78 78
 	 * @since 4.5.0
79 79
 	 */
Please login to merge, or discard this patch.
modules/shortcodes/class.filter-embedded-html-objects.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -90,6 +90,9 @@  discard block
 block discarded – undo
90 90
 		return $html;
91 91
 	}
92 92
 
93
+	/**
94
+	 * @param string $regexp
95
+	 */
93 96
 	static public function regexp_entities( $regexp ) {
94 97
 		return preg_replace(
95 98
 			'/\[\^&([^\]]+)\]\*\+/',
@@ -128,6 +131,9 @@  discard block
 block discarded – undo
128 131
 		return self::dispatch( $matches );
129 132
 	}
130 133
 
134
+	/**
135
+	 * @param string[] $matches
136
+	 */
131 137
 	static function dispatch( $matches ) {
132 138
 		$html  = preg_replace( '%&#0*58;//%', '://', $matches[0] );
133 139
 		$attrs = self::get_attrs( $html );
Please login to merge, or discard this patch.
modules/theme-tools/content-options/blog-display.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -138,6 +138,7 @@
 block discarded – undo
138 138
 /**
139 139
  * Returns a class value, `output-the-content` by default.
140 140
  * Used for themes with a 'Mixed' Blog Display so we can tell which output is by default.
141
+ * @param string $new_class
141 142
  */
142 143
 function jetpack_the_content_customizer_class( $new_class = null ) {
143 144
 	static $class;
Please login to merge, or discard this patch.
modules/shortcodes/googleapps.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
  *
99 99
  * @param string $content
100 100
  *
101
- * @return mixed
101
+ * @return string
102 102
  */
103 103
 function jetpack_archiveorg_embed_to_shortcode( $content ) {
104 104
 	if ( false === stripos( $content, 'archive.org/embed/' ) )
Please login to merge, or discard this patch.
class.jetpack.php 1 patch
Doc Comments   +42 added lines, -12 removed lines patch added patch discarded remove patch
@@ -889,7 +889,7 @@  discard block
 block discarded – undo
889 889
 	}
890 890
 	/**
891 891
 	 * Does the network allow admins to add new users.
892
-	 * @return boolian
892
+	 * @return boolean
893 893
 	 */
894 894
 	static function network_add_new_users( $option = null ) {
895 895
 		return (bool) get_site_option( 'add_new_users' );
@@ -994,7 +994,7 @@  discard block
 block discarded – undo
994 994
 	 * database which could be set to anything as opposed to what this function returns.
995 995
 	 * @param  bool  $option
996 996
 	 *
997
-	 * @return boolean
997
+	 * @return string
998 998
 	 */
999 999
 	public function is_main_network_option( $option ) {
1000 1000
 		// return '1' or ''
@@ -1005,7 +1005,7 @@  discard block
 block discarded – undo
1005 1005
 	 * Return true if we are with multi-site or multi-network false if we are dealing with single site.
1006 1006
 	 *
1007 1007
 	 * @param  string  $option
1008
-	 * @return boolean
1008
+	 * @return string
1009 1009
 	 */
1010 1010
 	public function is_multisite( $option ) {
1011 1011
 		return (string) (bool) is_multisite();
@@ -1067,7 +1067,7 @@  discard block
 block discarded – undo
1067 1067
 
1068 1068
 	/**
1069 1069
 	 * Returns true if the site has file write access false otherwise.
1070
-	 * @return string ( '1' | '0' )
1070
+	 * @return integer ( '1' | '0' )
1071 1071
 	 **/
1072 1072
 	public static function file_system_write_access() {
1073 1073
 		if ( ! function_exists( 'get_filesystem_method' ) ) {
@@ -1276,6 +1276,7 @@  discard block
 block discarded – undo
1276 1276
 	 * @access public
1277 1277
 	 * @static
1278 1278
 	 *
1279
+	 * @param string $feature
1279 1280
 	 * @return bool True if plan supports feature, false if not
1280 1281
 	 */
1281 1282
 	public static function active_plan_supports( $feature ) {
@@ -1832,6 +1833,7 @@  discard block
 block discarded – undo
1832 1833
 	 * @param int $user_id
1833 1834
 	 * @param string $token
1834 1835
 	 * return bool
1836
+	 * @param boolean $is_master_user
1835 1837
 	 */
1836 1838
 	public static function update_user_token( $user_id, $token, $is_master_user ) {
1837 1839
 		// not designed for concurrent updates
@@ -2226,6 +2228,7 @@  discard block
 block discarded – undo
2226 2228
 
2227 2229
 	/**
2228 2230
 	 * Like core's get_file_data implementation, but caches the result.
2231
+	 * @param string $file
2229 2232
 	 */
2230 2233
 	public static function get_file_data( $file, $headers ) {
2231 2234
 		//Get just the filename from $file (i.e. exclude full path) so that a consistent hash is generated
@@ -2254,7 +2257,7 @@  discard block
 block discarded – undo
2254 2257
 	 *
2255 2258
 	 * @param string $tag Tag as it appears in each module heading.
2256 2259
 	 *
2257
-	 * @return mixed
2260
+	 * @return string
2258 2261
 	 */
2259 2262
 	public static function translate_module_tag( $tag ) {
2260 2263
 		return jetpack_get_module_i18n_tag( $tag );
@@ -2267,7 +2270,7 @@  discard block
 block discarded – undo
2267 2270
 	 *
2268 2271
 	 * @param array $modules
2269 2272
 	 *
2270
-	 * @return string|void
2273
+	 * @return string
2271 2274
 	 */
2272 2275
 	public static function get_translated_modules( $modules ) {
2273 2276
 		foreach ( $modules as $index => $module ) {
@@ -2596,6 +2599,9 @@  discard block
 block discarded – undo
2596 2599
 		return self::update_active_modules( $new );
2597 2600
 	}
2598 2601
 
2602
+	/**
2603
+	 * @param string $module
2604
+	 */
2599 2605
 	public static function enable_module_configurable( $module ) {
2600 2606
 		$module = Jetpack::get_module_slug( $module );
2601 2607
 		add_filter( 'jetpack_module_configurable_' . $module, '__return_true' );
@@ -2606,21 +2612,33 @@  discard block
 block discarded – undo
2606 2612
 		return Jetpack::admin_url( array( 'page' => 'jetpack', 'configure' => $module ) );
2607 2613
 	}
2608 2614
 
2615
+	/**
2616
+	 * @param string $module
2617
+	 */
2609 2618
 	public static function module_configuration_load( $module, $method ) {
2610 2619
 		$module = Jetpack::get_module_slug( $module );
2611 2620
 		add_action( 'jetpack_module_configuration_load_' . $module, $method );
2612 2621
 	}
2613 2622
 
2623
+	/**
2624
+	 * @param string $module
2625
+	 */
2614 2626
 	public static function module_configuration_head( $module, $method ) {
2615 2627
 		$module = Jetpack::get_module_slug( $module );
2616 2628
 		add_action( 'jetpack_module_configuration_head_' . $module, $method );
2617 2629
 	}
2618 2630
 
2631
+	/**
2632
+	 * @param string $module
2633
+	 */
2619 2634
 	public static function module_configuration_screen( $module, $method ) {
2620 2635
 		$module = Jetpack::get_module_slug( $module );
2621 2636
 		add_action( 'jetpack_module_configuration_screen_' . $module, $method );
2622 2637
 	}
2623 2638
 
2639
+	/**
2640
+	 * @param string $module
2641
+	 */
2624 2642
 	public static function module_configuration_activation_screen( $module, $method ) {
2625 2643
 		$module = Jetpack::get_module_slug( $module );
2626 2644
 		add_action( 'display_activate_module_setting_' . $module, $method );
@@ -2628,6 +2646,9 @@  discard block
 block discarded – undo
2628 2646
 
2629 2647
 /* Installation */
2630 2648
 
2649
+	/**
2650
+	 * @param string $message
2651
+	 */
2631 2652
 	public static function bail_on_activation( $message, $deactivate = true ) {
2632 2653
 ?>
2633 2654
 <!doctype html>
@@ -3276,7 +3297,7 @@  discard block
 block discarded – undo
3276 3297
 	 * Add help to the Jetpack page
3277 3298
 	 *
3278 3299
 	 * @since Jetpack (1.2.3)
3279
-	 * @return false if not the Jetpack page
3300
+	 * @return false|null if not the Jetpack page
3280 3301
 	 */
3281 3302
 	function admin_help() {
3282 3303
 		$current_screen = get_current_screen();
@@ -4274,6 +4295,7 @@  discard block
 block discarded – undo
4274 4295
 	/**
4275 4296
 	 * Returns the requested Jetpack API URL
4276 4297
 	 *
4298
+	 * @param string $relative_url
4277 4299
 	 * @return string
4278 4300
 	 */
4279 4301
 	public static function api_url( $relative_url ) {
@@ -4418,7 +4440,8 @@  discard block
 block discarded – undo
4418 4440
 	 * Note these tokens are unique per call, NOT static per site for connecting.
4419 4441
 	 *
4420 4442
 	 * @since 2.6
4421
-	 * @return array
4443
+	 * @param string $action
4444
+	 * @return string
4422 4445
 	 */
4423 4446
 	public function generate_secrets( $action, $exp = 600 ) {
4424 4447
 	    $secret = wp_generate_password( 32, false ) // secret_1
@@ -4749,6 +4772,10 @@  discard block
 block discarded – undo
4749 4772
 		return new WP_User( $token_details['user_id'] );
4750 4773
 	}
4751 4774
 
4775
+	/**
4776
+	 * @param integer $timestamp
4777
+	 * @param string $nonce
4778
+	 */
4752 4779
 	function add_nonce( $timestamp, $nonce ) {
4753 4780
 		global $wpdb;
4754 4781
 		static $nonces_used_this_request = array();
@@ -4894,6 +4921,7 @@  discard block
 block discarded – undo
4894 4921
 	 * @param string $key
4895 4922
 	 * @param string $value
4896 4923
 	 * @param bool $restate private
4924
+	 * @return string
4897 4925
 	 */
4898 4926
 	public static function state( $key = null, $value = null, $restate = false ) {
4899 4927
 		static $state = array();
@@ -4950,6 +4978,9 @@  discard block
 block discarded – undo
4950 4978
 		Jetpack::state( null, null, true );
4951 4979
 	}
4952 4980
 
4981
+	/**
4982
+	 * @param string $file
4983
+	 */
4953 4984
 	public static function check_privacy( $file ) {
4954 4985
 		static $is_site_publicly_accessible = null;
4955 4986
 
@@ -5699,8 +5730,8 @@  discard block
 block discarded – undo
5699 5730
 	 *  - Absolute URLs             `http://domain.com/feh.png`
5700 5731
 	 *  - Domain root relative URLs `/feh.png`
5701 5732
 	 *
5702
-	 * @param $css string: The raw CSS -- should be read in directly from the file.
5703
-	 * @param $css_file_url : The URL that the file can be accessed at, for calculating paths from.
5733
+	 * @param string $css string: The raw CSS -- should be read in directly from the file.
5734
+	 * @param string $css_file_url : The URL that the file can be accessed at, for calculating paths from.
5704 5735
 	 *
5705 5736
 	 * @return mixed|string
5706 5737
 	 */
@@ -5991,7 +6022,7 @@  discard block
 block discarded – undo
5991 6022
 	 *
5992 6023
 	 * @param string $option_name
5993 6024
 	 *
5994
-	 * @return bool
6025
+	 * @return false|null
5995 6026
 	 */
5996 6027
 	public static function jumpstart_has_updated_module_option( $option_name = '' ) {
5997 6028
 		// Bail if Jump Start has already been dismissed
@@ -6082,7 +6113,6 @@  discard block
 block discarded – undo
6082 6113
 	}
6083 6114
 
6084 6115
 	/**
6085
-	 * @param mixed $result Value for the user's option
6086 6116
 	 * @return mixed
6087 6117
 	 */
6088 6118
 	function get_user_option_meta_box_order_dashboard( $sorted ) {
Please login to merge, or discard this patch.