Completed
Push — changelog/76 ( 62986d...5e8874 )
by Jeremy
07:07
created
json-endpoints/class.wpcom-json-api-list-terms-endpoint.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -69,11 +69,17 @@
 block discarded – undo
69 69
 		return $args;
70 70
 	}
71 71
 
72
+	/**
73
+	 * @param string $taxonomy
74
+	 */
72 75
 	function get_found( $taxonomy, $args ) {
73 76
 		unset( $args['offset'] );
74 77
 		return wp_count_terms( $taxonomy, $args );
75 78
 	}
76 79
 
80
+	/**
81
+	 * @param string $taxonomy
82
+	 */
77 83
 	function get_formatted_terms( $taxonomy, $args ) {
78 84
 		$terms = get_terms( $taxonomy, $args );
79 85
 
Please login to merge, or discard this patch.
_inc/lib/icalendar-reader.php 1 patch
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -699,8 +699,7 @@  discard block
 block discarded – undo
699 699
 	 * Render the events
700 700
 	 *
701 701
 	 * @param string $url (default: '')
702
-	 * @param string $context (default: 'widget') or 'shortcode'
703
-	 * @return mixed bool|string false on failure, rendered HTML string on success.
702
+	 * @return false|string bool|string false on failure, rendered HTML string on success.
704 703
 	 */
705 704
 	public function render( $url = '', $args = array() ) {
706 705
 
@@ -857,8 +856,7 @@  discard block
 block discarded – undo
857 856
  * Wrapper function for iCalendarReader->render()
858 857
  *
859 858
  * @param string $url (default: '')
860
- * @param string $context (default: 'widget') or 'shortcode'
861
- * @return mixed bool|string false on failure, rendered HTML string on success.
859
+ * @return false|string bool|string false on failure, rendered HTML string on success.
862 860
  */
863 861
 function icalendar_render_events( $url = '', $args = array() ) {
864 862
 	$ical = new iCalendarReader();
Please login to merge, or discard this patch.
json-endpoints/jetpack/class.jetpack-json-api-cron-endpoint.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@  discard block
 block discarded – undo
24 24
 		return  isset( $args['arguments'] ) ? json_decode( $args['arguments'] ) : array();
25 25
 	}
26 26
 
27
+	/**
28
+	 * @param double $gmt_time
29
+	 */
27 30
 	protected function is_cron_locked( $gmt_time ) {
28 31
 		// The cron lock: a unix timestamp from when the cron was spawned.
29 32
 		$doing_cron_transient = $this->get_cron_lock();
@@ -33,6 +36,9 @@  discard block
 block discarded – undo
33 36
 		return $doing_cron_transient;
34 37
 	}
35 38
 
39
+	/**
40
+	 * @param string $doing_wp_cron
41
+	 */
36 42
 	protected function maybe_unlock_cron( $doing_wp_cron ) {
37 43
 		if ( $this->get_cron_lock() == $doing_wp_cron ) {
38 44
 			delete_transient( 'doing_cron' );
Please login to merge, or discard this patch.
3rd-party/domain-mapping.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -93,14 +93,24 @@
 block discarded – undo
93 93
 	 * So that we can test.
94 94
 	 */
95 95
 
96
+	/**
97
+	 * @param string $class
98
+	 * @param string $method
99
+	 */
96 100
 	public function method_exists( $class, $method ) {
97 101
 		return method_exists( $class, $method );
98 102
 	}
99 103
 
104
+	/**
105
+	 * @param string $class
106
+	 */
100 107
 	public function class_exists( $class ) {
101 108
 		return class_exists( $class );
102 109
 	}
103 110
 
111
+	/**
112
+	 * @param string $function
113
+	 */
104 114
 	public function function_exists( $function ) {
105 115
 		return function_exists( $function );
106 116
 	}
Please login to merge, or discard this patch.
class.jetpack-autoupdate.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
 	/**
164 164
 	 * Iterates through expected items ( plugins or themes ) and compares them to actual results.
165 165
 	 *
166
-	 * @param $items 'plugin' or 'theme'
166
+	 * @param string $items 'plugin' or 'theme'
167 167
 	 */
168 168
 	private function log_items( $items ) {
169 169
 		if ( ! isset( $this->expected[ $items ] ) ) {
Please login to merge, or discard this patch.
json-endpoints/jetpack/class.jetpack-json-api-plugins-endpoint.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -170,6 +170,9 @@
 block discarded – undo
170 170
 	}
171 171
 
172 172
 
173
+	/**
174
+	 * @param string $plugin
175
+	 */
173 176
 	protected function validate_plugin( $plugin ) {
174 177
 		if ( ! isset( $plugin) || empty( $plugin ) ) {
175 178
 			return new WP_Error( 'missing_plugin', __( 'You are required to specify a plugin to activate.', 'jetpack' ), 400 );
Please login to merge, or discard this patch.
_inc/lib/jetpack-wpes-query-builder/jetpack-wpes-query-builder.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 	 *
78 78
 	 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html
79 79
 	 *
80
-	 * @param $function string name of the function
80
+	 * @param string $function string name of the function
81 81
 	 * @param $params array functions parameters
82 82
 	 *
83 83
 	 * @return void
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 	 *
95 95
 	 * @see https://www.elastic.co/guide/en/elasticsearch/guide/current/decay-functions.html
96 96
 	 *
97
-	 * @param $function string name of the decay function - linear, exp, or gauss
97
+	 * @param string $function string name of the decay function - linear, exp, or gauss
98 98
 	 * @param $params array The decay functions parameters, passed to ES directly
99 99
 	 *
100 100
 	 * @return void
@@ -124,6 +124,9 @@  discard block
 block discarded – undo
124 124
 		$this->query_bool_boost = $boost;
125 125
 	}
126 126
 
127
+	/**
128
+	 * @param string $aggs_name
129
+	 */
127 130
 	public function add_aggs( $aggs_name, $aggs ) {
128 131
 		$this->aggs_query = true;
129 132
 		$this->aggs[$aggs_name] = $aggs;
Please login to merge, or discard this patch.
3rd-party/qtranslate-x.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
  * @param string $url_orig Original URL.
9 9
  * @param array $url_info  Pieces of original URL.
10 10
  *
11
- * @return bool
11
+ * @return false|string
12 12
  */
13 13
 function jetpack_no_qtranslate_rest_url_redirect( $url_lang, $url_orig, $url_info ) {
14 14
 	if ( false !== strpos( $url_info['wp-path'], 'wp-json/jetpack' ) ) {
Please login to merge, or discard this patch.
_inc/lib/class.core-rest-api-endpoints.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -598,7 +598,6 @@  discard block
 block discarded – undo
598 598
 	 * @uses Jetpack::disconnect();
599 599
 	 * @since 4.3.0
600 600
 	 *
601
-	 * @param WP_REST_Request $request The request sent to the WP REST API.
602 601
 	 *
603 602
 	 * @return string|WP_Error A raw URL if the connection URL could be built; error message otherwise.
604 603
 	 */
@@ -618,7 +617,6 @@  discard block
 block discarded – undo
618 617
 	 *
619 618
 	 * @since 4.3.0
620 619
 	 *
621
-	 * @param WP_REST_Request $request The request sent to the WP REST API.
622 620
 	 *
623 621
 	 * @return object
624 622
 	 */
Please login to merge, or discard this patch.