Completed
Pull Request — trunk (#541)
by Justin
05:46
created
includes/CMB2_REST.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 	/**
153 153
 	 * Handler for updating custom field data.
154 154
 	 * @since  2.2.0
155
-	 * @param  mixed    $value    The value of the field
155
+	 * @param  mixed    $values    The value of the field
156 156
 	 * @param  object   $object   The object from the response
157 157
 	 * @param  string   $field_id Name of field
158 158
 	 * @return bool|int
@@ -233,6 +233,9 @@  discard block
 block discarded – undo
233 233
 		return $protected;
234 234
 	}
235 235
 
236
+	/**
237
+	 * @param string $field_id
238
+	 */
236 239
 	public function field_can_update( $field_id ) {
237 240
 
238 241
 		$field        = $this->cmb->get_field( $field_id );
Please login to merge, or discard this patch.
includes/CMB2.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -620,7 +620,7 @@  discard block
 block discarded – undo
620 620
 	/**
621 621
 	 * Save a repeatable group
622 622
 	 * @since  1.x.x
623
-	 * @param  array $field_group CMB2_Field group field object
623
+	 * @param  CMB2_Field $field_group CMB2_Field group field object
624 624
 	 * @return mixed              Return of CMB2_Field::update_data()
625 625
 	 */
626 626
 	public function save_group_field( $field_group ) {
@@ -910,7 +910,7 @@  discard block
 block discarded – undo
910 910
 	 * @param  mixed  $field_id     Field (or group field) ID
911 911
 	 * @param  mixed  $field_args   Array of field arguments
912 912
 	 * @param  mixed  $sub_field_id Sub field ID (if field_group exists)
913
-	 * @param  mixed  $field_group  If a sub-field, will be the parent group CMB2_Field object
913
+	 * @param  CMB2_Field|null  $field_group  If a sub-field, will be the parent group CMB2_Field object
914 914
 	 * @return array                Array of CMB2_Field arguments
915 915
 	 */
916 916
 	public function get_field_args( $field_id, $field_args, $sub_field_id, $field_group ) {
@@ -969,7 +969,7 @@  discard block
 block discarded – undo
969 969
 	 * @since  2.0.0
970 970
 	 * @param  array  $field           Metabox field config array
971 971
 	 * @param  int    $position        (optional) Position of metabox. 1 for first, etc
972
-	 * @return mixed                   Field id or false
972
+	 * @return string                   Field id or false
973 973
 	 */
974 974
 	public function add_field( array $field, $position = 0 ) {
975 975
 		if ( ! is_array( $field ) || ! array_key_exists( 'id', $field ) ) {
Please login to merge, or discard this patch.
includes/CMB2_REST_Controller.php 1 patch
Doc Comments   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,7 +94,6 @@  discard block
 block discarded – undo
94 94
 	 *
95 95
 	 * @since 2.2.0
96 96
 	 *
97
-	 * @param  mixed $data
98 97
 	 * @return array $data
99 98
 	 */
100 99
 	public function prepare_item( $post ) {
@@ -107,7 +106,7 @@  discard block
 block discarded – undo
107 106
 	 * @since  2.2.0
108 107
 	 *
109 108
 	 * @param  mixed $cb Callable function/method.
110
-	 * @return mixed     Results of output buffer after calling function/method.
109
+	 * @return string     Results of output buffer after calling function/method.
111 110
 	 */
112 111
 	public function get_cb_results( $cb ) {
113 112
 		$args = func_get_args();
@@ -142,6 +141,9 @@  discard block
 block discarded – undo
142 141
 		return apply_filters( 'cmb2_rest_prepare', rest_ensure_response( $data ), $this->request, $this );
143 142
 	}
144 143
 
144
+	/**
145
+	 * @param string $request_type
146
+	 */
145 147
 	protected function initiate_rest_read_box( $request, $request_type ) {
146 148
 		$this->initiate_rest_box( $request, $request_type );
147 149
 
Please login to merge, or discard this patch.
includes/CMB2_REST_Controller_Boxes.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,6 @@
 block discarded – undo
100 100
 	 *
101 101
 	 * @since 2.2.0
102 102
 	 *
103
-	 * @param CMB2 $cmb
104 103
 	 * @return array
105 104
 	 */
106 105
 	public function get_rest_box() {
Please login to merge, or discard this patch.
includes/helper-functions.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * CMB2 Helper Functions
4
- *
5
- * @category  WordPress_Plugin
6
- * @package   CMB2
7
- * @author    WebDevStudios
8
- * @license   GPL-2.0+
9
- * @link      http://webdevstudios.com
10
- */
3
+	 * CMB2 Helper Functions
4
+	 *
5
+	 * @category  WordPress_Plugin
6
+	 * @package   CMB2
7
+	 * @author    WebDevStudios
8
+	 * @license   GPL-2.0+
9
+	 * @link      http://webdevstudios.com
10
+	 */
11 11
 
12 12
 /**
13 13
  * Helper function to provide directory path to CMB2
Please login to merge, or discard this patch.
includes/CMB2_Hookup_Base.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Base class for hooking CMB2 into WordPress.
4
- *
5
- * @since  2.2.0
6
- *
7
- * @category  WordPress_Plugin
8
- * @package   CMB2
9
- * @author    WebDevStudios
10
- * @license   GPL-2.0+
11
- * @link      http://webdevstudios.com
12
- */
3
+	 * Base class for hooking CMB2 into WordPress.
4
+	 *
5
+	 * @since  2.2.0
6
+	 *
7
+	 * @category  WordPress_Plugin
8
+	 * @package   CMB2
9
+	 * @author    WebDevStudios
10
+	 * @license   GPL-2.0+
11
+	 * @link      http://webdevstudios.com
12
+	 */
13 13
 abstract class CMB2_Hookup_Base {
14 14
 
15 15
 	/**
Please login to merge, or discard this patch.
init.php 1 patch
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -1,46 +1,46 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @category     WordPress_Plugin
4
- * @package      CMB2
5
- * @author       WebDevStudios
6
- * @license      GPL-2.0+
7
- * @link         http://webdevstudios.com
8
- *
9
- * Plugin Name:  CMB2
10
- * Plugin URI:   https://github.com/WebDevStudios/CMB2
11
- * Description:  CMB2 will create metaboxes and forms with custom fields that will blow your mind.
12
- * Author:       WebDevStudios
13
- * Author URI:   http://webdevstudios.com
14
- * Contributors: WebDevStudios (@webdevstudios / webdevstudios.com)
15
- *               Justin Sternberg (@jtsternberg / dsgnwrks.pro)
16
- *               Jared Atchison (@jaredatch / jaredatchison.com)
17
- *               Bill Erickson (@billerickson / billerickson.net)
18
- *               Andrew Norcross (@norcross / andrewnorcross.com)
19
- *
20
- * Version:      2.2.1
21
- *
22
- * Text Domain:  cmb2
23
- * Domain Path:  languages
24
- *
25
- *
26
- * Released under the GPL license
27
- * http://www.opensource.org/licenses/gpl-license.php
28
- *
29
- * This is an add-on for WordPress
30
- * http://wordpress.org/
31
- *
32
- * **********************************************************************
33
- * This program is free software; you can redistribute it and/or modify
34
- * it under the terms of the GNU General Public License as published by
35
- * the Free Software Foundation; either version 2 of the License, or
36
- * (at your option) any later version.
37
- *
38
- * This program is distributed in the hope that it will be useful,
39
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
40
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
41
- * GNU General Public License for more details.
42
- * **********************************************************************
43
- */
3
+	 * @category     WordPress_Plugin
4
+	 * @package      CMB2
5
+	 * @author       WebDevStudios
6
+	 * @license      GPL-2.0+
7
+	 * @link         http://webdevstudios.com
8
+	 *
9
+	 * Plugin Name:  CMB2
10
+	 * Plugin URI:   https://github.com/WebDevStudios/CMB2
11
+	 * Description:  CMB2 will create metaboxes and forms with custom fields that will blow your mind.
12
+	 * Author:       WebDevStudios
13
+	 * Author URI:   http://webdevstudios.com
14
+	 * Contributors: WebDevStudios (@webdevstudios / webdevstudios.com)
15
+	 *               Justin Sternberg (@jtsternberg / dsgnwrks.pro)
16
+	 *               Jared Atchison (@jaredatch / jaredatchison.com)
17
+	 *               Bill Erickson (@billerickson / billerickson.net)
18
+	 *               Andrew Norcross (@norcross / andrewnorcross.com)
19
+	 *
20
+	 * Version:      2.2.1
21
+	 *
22
+	 * Text Domain:  cmb2
23
+	 * Domain Path:  languages
24
+	 *
25
+	 *
26
+	 * Released under the GPL license
27
+	 * http://www.opensource.org/licenses/gpl-license.php
28
+	 *
29
+	 * This is an add-on for WordPress
30
+	 * http://wordpress.org/
31
+	 *
32
+	 * **********************************************************************
33
+	 * This program is free software; you can redistribute it and/or modify
34
+	 * it under the terms of the GNU General Public License as published by
35
+	 * the Free Software Foundation; either version 2 of the License, or
36
+	 * (at your option) any later version.
37
+	 *
38
+	 * This program is distributed in the hope that it will be useful,
39
+	 * but WITHOUT ANY WARRANTY; without even the implied warranty of
40
+	 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
41
+	 * GNU General Public License for more details.
42
+	 * **********************************************************************
43
+	 */
44 44
 
45 45
 /************************************************************************
46 46
                   You should not edit the code below
Please login to merge, or discard this patch.