Completed
Push — master ( 559f84...4424cd )
by Armando
01:14
created
lib/class-wp2d-api.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -629,7 +629,7 @@  discard block
 block discarded – undo
629 629
 	 * @param string $url  The URL to request.
630 630
 	 * @param array  $args Arguments to be posted with the request.
631 631
 	 *
632
-	 * @return object An object containing details about this request.
632
+	 * @return string An object containing details about this request.
633 633
 	 */
634 634
 	private function request( $url, array $args = [] ) {
635 635
 		// Prefix the full pod URL if necessary.
@@ -700,7 +700,7 @@  discard block
 block discarded – undo
700 700
 	 *
701 701
 	 * @see   WP_Error::__construct()
702 702
 	 *
703
-	 * @param string|int $code    Error code.
703
+	 * @param string $code    Error code.
704 704
 	 * @param string     $message Error message.
705 705
 	 * @param mixed      $data    Error data.
706 706
 	 */
Please login to merge, or discard this patch.
lib/class-wp2d-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.
lib/class-wp2d.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 	 *
277 277
 	 * @param array $links Links to display for plugin on plugins page.
278 278
 	 *
279
-	 * @return array Links to display for plugin on plugins page.
279
+	 * @return string[] Links to display for plugin on plugins page.
280 280
 	 */
281 281
 	public function settings_link( $links ) {
282 282
 		$links[] = '<a href="' . esc_url( admin_url( 'options-general.php?page=wp_to_diaspora' ) ) . '">' . __( 'Settings', 'wp-to-diaspora' ) . '</a>';
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
 	/**
354 354
 	 * Check the pod connection status.
355 355
 	 *
356
-	 * @return bool The status of the connection.
356
+	 * @return boolean|null The status of the connection.
357 357
 	 */
358 358
 	private function check_pod_connection_status() {
359 359
 		$options = WP2D_Options::instance();
Please login to merge, or discard this patch.