Completed
Pull Request — master (#151)
by Armando
01:35
created
lib/class-api.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -623,7 +623,7 @@  discard block
 block discarded – undo
623 623
 	 * @param string $url  The URL to request.
624 624
 	 * @param array  $args Arguments to be posted with the request.
625 625
 	 *
626
-	 * @return object An object containing details about this request.
626
+	 * @return string An object containing details about this request.
627 627
 	 */
628 628
 	private function _request( $url, array $args = [] ) {
629 629
 		// Prefix the full pod URL if necessary.
@@ -693,7 +693,7 @@  discard block
 block discarded – undo
693 693
 	 * @see   WP_Error::__construct()
694 694
 	 * @since 1.6.0
695 695
 	 *
696
-	 * @param  string|int $code    Error code.
696
+	 * @param  string $code    Error code.
697 697
 	 * @param  string     $message Error message.
698 698
 	 * @param  mixed      $data    Error data.
699 699
 	 */
Please login to merge, or discard this patch.
lib/class-options.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -869,7 +869,7 @@  discard block
 block discarded – undo
869 869
 	/**
870 870
 	 * Validate checkboxes, make them either true or false.
871 871
 	 *
872
-	 * @param string|array $checkboxes Checkboxes to validate.
872
+	 * @param string[] $checkboxes Checkboxes to validate.
873 873
 	 * @param array        $options    Options values themselves.
874 874
 	 *
875 875
 	 * @return array The validated options.
@@ -885,7 +885,7 @@  discard block
 block discarded – undo
885 885
 	/**
886 886
 	 * Validate single-select fields and make sure their selected value are valid.
887 887
 	 *
888
-	 * @param string|array $selects Name(s) of the select fields.
888
+	 * @param string $selects Name(s) of the select fields.
889 889
 	 * @param array        $options Options values themselves.
890 890
 	 *
891 891
 	 * @return array The validated options.
@@ -903,7 +903,7 @@  discard block
 block discarded – undo
903 903
 	/**
904 904
 	 * Validate multi-select fields and make sure their selected values are valid.
905 905
 	 *
906
-	 * @param string|array $selects Name(s) of the select fields.
906
+	 * @param string $selects Name(s) of the select fields.
907 907
 	 * @param array        $options Options values themselves.
908 908
 	 *
909 909
 	 * @return array The validated options.
@@ -963,7 +963,7 @@  discard block
 block discarded – undo
963 963
 	 * Validate the passed aspects or services.
964 964
 	 *
965 965
 	 * @param array $aspects_services List of aspects or services that need to be validated.
966
-	 * @param array $default          Default value if not valid.
966
+	 * @param string[] $default          Default value if not valid.
967 967
 	 *
968 968
 	 * @return array The validated list of aspects or services.
969 969
 	 */
Please login to merge, or discard this patch.