Completed
Push — master ( 1614fa...13be2d )
by Armando
01:52
created
lib/class-api.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -596,7 +596,7 @@  discard block
 block discarded – undo
596 596
 	 *
597 597
 	 * @param string $url  The URL to request.
598 598
 	 * @param array  $args Arguments to be posted with the request.
599
-	 * @return object An object containing details about this request.
599
+	 * @return string An object containing details about this request.
600 600
 	 */
601 601
 	private function _request( $url, $args = array() ) {
602 602
 		// Prefix the full pod URL if necessary.
@@ -665,7 +665,7 @@  discard block
 block discarded – undo
665 665
 	 * @see WP_Error::__construct()
666 666
 	 * @since 1.6.0
667 667
 	 *
668
-	 * @param  string|int $code    Error code.
668
+	 * @param  string $code    Error code.
669 669
 	 * @param  string     $message Error message.
670 670
 	 * @param  mixed      $data    Error data.
671 671
 	 */
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
@@ -737,7 +737,7 @@  discard block
 block discarded – undo
737 737
 	/**
738 738
 	 * Validate checkboxes, make them either true or false.
739 739
 	 *
740
-	 * @param string|array $checkboxes Checkboxes to validate.
740
+	 * @param string[] $checkboxes Checkboxes to validate.
741 741
 	 * @param array        $options    Options values themselves.
742 742
 	 * @return array The validated options.
743 743
 	 */
@@ -751,7 +751,7 @@  discard block
 block discarded – undo
751 751
 	/**
752 752
 	 * Validate single-select fields and make sure their selected value are valid.
753 753
 	 *
754
-	 * @param string|array $selects Name(s) of the select fields.
754
+	 * @param string $selects Name(s) of the select fields.
755 755
 	 * @param array        $options Options values themselves.
756 756
 	 * @return array The validated options.
757 757
 	 */
@@ -767,7 +767,7 @@  discard block
 block discarded – undo
767 767
 	/**
768 768
 	 * Validate multi-select fields and make sure their selected values are valid.
769 769
 	 *
770
-	 * @param string|array $selects Name(s) of the select fields.
770
+	 * @param string $selects Name(s) of the select fields.
771 771
 	 * @param array        $options Options values themselves.
772 772
 	 * @return array The validated options.
773 773
 	 */
@@ -821,7 +821,7 @@  discard block
 block discarded – undo
821 821
 	 * Validate the passed aspects or services.
822 822
 	 *
823 823
 	 * @param array $aspects_services List of aspects or services that need to be validated.
824
-	 * @param array $default          Default value if not valid.
824
+	 * @param string[] $default          Default value if not valid.
825 825
 	 * @return array The validated list of aspects or services.
826 826
 	 */
827 827
 	public function validate_aspects_services( &$aspects_services, $default = array() ) {
Please login to merge, or discard this patch.
lib/class-post.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@
 block discarded – undo
191 191
 	 *
192 192
 	 * @param integer $post_id ID of the post being saved.
193 193
 	 * @param WP_Post $post    Post object being saved.
194
-	 * @return boolean If the post was posted successfully.
194
+	 * @return false|null If the post was posted successfully.
195 195
 	 */
196 196
 	public function post( $post_id, $post ) {
197 197
 		$this->_assign_wp_post( $post );
Please login to merge, or discard this patch.
wp-to-diaspora.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
 	 * Add the "Settings" link to the plugins page.
288 288
 	 *
289 289
 	 * @param array $links Links to display for plugin on plugins page.
290
-	 * @return array Links to display for plugin on plugins page.
290
+	 * @return string[] Links to display for plugin on plugins page.
291 291
 	 */
292 292
 	public function settings_link( $links ) {
293 293
 		$links[] = '<a href="' . admin_url( 'options-general.php?page=wp_to_diaspora' ) . '">' . __( 'Settings' ) . '</a>';
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
 	/**
401 401
 	 * Check the pod connection status.
402 402
 	 *
403
-	 * @return string The status of the connection.
403
+	 * @return boolean|null The status of the connection.
404 404
 	 */
405 405
 	private function _check_pod_connection_status() {
406 406
 		$options = WP2D_Options::instance();
Please login to merge, or discard this patch.