Test Failed
Push — master ( 36b0ed...c8da5c )
by Devin
09:29 queued 10s
created
includes/api/class-give-api.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
 	 * @uses   Give_API::invalid_key()
327 327
 	 * @uses   Give_API::invalid_auth()
328 328
 	 * @since  1.1
329
-	 * @return bool
329
+	 * @return false|null
330 330
 	 */
331 331
 	private function validate_request() {
332 332
 		global $wp_query;
@@ -722,7 +722,7 @@  discard block
 block discarded – undo
722 722
 	 *
723 723
 	 * @param array $args Arguments to override defaults
724 724
 	 *
725
-	 * @return array $dates
725
+	 * @return integer|null $dates
726 726
 	 */
727 727
 	public function get_dates( $args = array() ) {
728 728
 		$dates = array();
Please login to merge, or discard this patch.
includes/class-give-cache.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 	 *
196 196
 	 * @param  string $cache_key
197 197
 	 * @param  bool   $custom_key
198
-	 * @param  mixed  $query_args
198
+	 * @param  string  $query_args
199 199
 	 *
200 200
 	 * @return mixed
201 201
 	 */
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
 	 *
314 314
 	 * @param bool  $force If set to true then all cached values will be delete instead of only expired
315 315
 	 *
316
-	 * @return bool
316
+	 * @return false|null
317 317
 	 */
318 318
 	public static function delete_all_expired( $force = false ) {
319 319
 		global $wpdb;
@@ -754,7 +754,7 @@  discard block
 block discarded – undo
754 754
 	 * @since  2.0
755 755
 	 * @access private
756 756
 	 *
757
-	 * @param $group
757
+	 * @param string $group
758 758
 	 *
759 759
 	 * @return mixed
760 760
 	 */
Please login to merge, or discard this patch.
includes/class-give-comment.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
 	 * @param int        $comment_id
440 440
 	 * @param WP_Comment $comment
441 441
 	 *
442
-	 * @return mixed
442
+	 * @return string
443 443
 	 */
444 444
 	public function __get_comment_author( $author, $comment_id, $comment ) {
445 445
 		if ( in_array( $comment->comment_type, $this->comment_types ) ) {
@@ -462,6 +462,7 @@  discard block
 block discarded – undo
462 462
 	 * @access public
463 463
 	 *
464 464
 	 * @param array @comment_types
465
+	 * @param string[] $comment_types
465 466
 	 *
466 467
 	 * @return array
467 468
 	 */
Please login to merge, or discard this patch.
includes/class-give-db-donors.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 	 * NOTE: This should not be called directly as it does not make necessary changes to
209 209
 	 * the payment meta and logs. Use give_donor_delete() instead.
210 210
 	 *
211
-	 * @param  bool|string|int $_id_or_email ID or Email of Donor.
211
+	 * @param  integer $_id_or_email ID or Email of Donor.
212 212
 	 *
213 213
 	 * @since  1.0
214 214
 	 * @access public
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
 	 * @access public
409 409
 	 *
410 410
 	 * @param  string $field ID or email. Default is 'id'.
411
-	 * @param  mixed  $value The Customer ID or email to search. Default is 0.
411
+	 * @param  integer  $value The Customer ID or email to search. Default is 0.
412 412
 	 *
413 413
 	 * @return mixed         Upon success, an object of the donor. Upon failure, NULL
414 414
 	 */
Please login to merge, or discard this patch.
includes/class-give-db-meta.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 	/**
280 280
 	 * Rename query clauses for new meta table
281 281
 	 *
282
-	 * @param $clause
282
+	 * @param string $clause
283 283
 	 * @param $filter
284 284
 	 *
285 285
 	 * @return mixed
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
 	 * @since  2.0.4
516 516
 	 * @access public
517 517
 	 *
518
-	 * @return string
518
+	 * @return boolean
519 519
 	 */
520 520
 	public function get_meta_type() {
521 521
 		return $this->meta_type;
Please login to merge, or discard this patch.
includes/class-give-donor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1077,7 +1077,7 @@
 block discarded – undo
1077 1077
 	 * @access public
1078 1078
 	 *
1079 1079
 	 * @param  string $meta_key   Metadata name. Default is empty.
1080
-	 * @param  mixed  $meta_value Optional. Metadata value. Default is empty.
1080
+	 * @param  string  $meta_value Optional. Metadata value. Default is empty.
1081 1081
 	 *
1082 1082
 	 * @return bool               False for failure. True for success.
1083 1083
 	 */
Please login to merge, or discard this patch.
includes/class-give-email-access.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@
 block discarded – undo
204 204
 	 * @since  1.0
205 205
 	 * @access public
206 206
 	 *
207
-	 * @return bool
207
+	 * @return boolean|null
208 208
 	 */
209 209
 	public function check_for_token() {
210 210
 
Please login to merge, or discard this patch.
includes/class-give-license-handler.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -812,7 +812,7 @@  discard block
 block discarded – undo
812 812
 		 * @access private
813 813
 		 * @since  1.7
814 814
 		 *
815
-		 * @return bool
815
+		 * @return false|null
816 816
 		 */
817 817
 		private function __remove_license_key_from_subscriptions() {
818 818
 			$subscriptions = get_option( 'give_subscriptions', array() );
@@ -847,7 +847,7 @@  discard block
 block discarded – undo
847 847
 		 * @param $plugin_data
848 848
 		 * @param $status
849 849
 		 *
850
-		 * @return bool
850
+		 * @return false|null
851 851
 		 */
852 852
 		public function plugin_page_notices( $plugin_file, $plugin_data, $status ) {
853 853
 			// Bailout.
@@ -869,7 +869,7 @@  discard block
 block discarded – undo
869 869
 		 *
870 870
 		 * @since  1.8.7
871 871
 		 * @access public
872
-		 * @return array
872
+		 * @return string
873 873
 		 */
874 874
 		public function license_state_message() {
875 875
 			$message_data = array();
Please login to merge, or discard this patch.
includes/class-give-logging.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -513,7 +513,7 @@
 block discarded – undo
513 513
 	 * @since  1.7
514 514
 	 * @access public
515 515
 	 *
516
-	 * @return bool
516
+	 * @return false|null
517 517
 	 */
518 518
 	public function delete_cache() {
519 519
 		// Add log related keys to delete.
Please login to merge, or discard this patch.