Completed
Pull Request — trunk (#541)
by Justin
20:13 queued 05:52
created
includes/CMB2.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -866,7 +866,7 @@  discard block
 block discarded – undo
866 866
 	 * @param  mixed  $field_id     Field (or group field) ID
867 867
 	 * @param  mixed  $field_args   Array of field arguments
868 868
 	 * @param  mixed  $sub_field_id Sub field ID (if field_group exists)
869
-	 * @param  mixed  $field_group  If a sub-field, will be the parent group CMB2_Field object
869
+	 * @param  CMB2_Field|null  $field_group  If a sub-field, will be the parent group CMB2_Field object
870 870
 	 * @return array                Array of CMB2_Field arguments
871 871
 	 */
872 872
 	public function get_field_args( $field_id, $field_args, $sub_field_id, $field_group ) {
@@ -925,7 +925,7 @@  discard block
 block discarded – undo
925 925
 	 * @since  2.0.0
926 926
 	 * @param  array  $field           Metabox field config array
927 927
 	 * @param  int    $position        (optional) Position of metabox. 1 for first, etc
928
-	 * @return mixed                   Field id or false
928
+	 * @return string                   Field id or false
929 929
 	 */
930 930
 	public function add_field( array $field, $position = 0 ) {
931 931
 		if ( ! is_array( $field ) || ! array_key_exists( 'id', $field ) ) {
Please login to merge, or discard this patch.
includes/CMB2_hookup.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -267,7 +267,7 @@
 block discarded – undo
267 267
 	 * Add 'closed' class to metabox
268 268
 	 * @since  2.0.0
269 269
 	 * @param  array  $classes Array of classes
270
-	 * @return array           Modified array of classes
270
+	 * @return string[]           Modified array of classes
271 271
 	 */
272 272
 	public function close_metabox_class( $classes ) {
273 273
 		$classes[] = 'closed';
Please login to merge, or discard this patch.
includes/CMB2_Sanitize.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -357,6 +357,7 @@  discard block
 block discarded – undo
357 357
 	/**
358 358
 	 * Gets the values for the `file` field type from the data being saved.
359 359
 	 * @since  2.2.0
360
+	 * @param string $id_key
360 361
 	 */
361 362
 	public function _get_group_file_value_array( $id_key ) {
362 363
 		$alldata = $this->field->group->data_to_save;
@@ -378,6 +379,7 @@  discard block
 block discarded – undo
378 379
 	/**
379 380
 	 * Peforms saving of `file` attachement's ID
380 381
 	 * @since  1.1.0
382
+	 * @param string $file_id_key
381 383
 	 */
382 384
 	public function _save_file_id_value( $file_id_key ) {
383 385
 		$id_field = $this->_new_supporting_field( $file_id_key );
@@ -398,6 +400,7 @@  discard block
 block discarded – undo
398 400
 	/**
399 401
 	 * Peforms saving of `text_datetime_timestamp_timezone` utc timestamp
400 402
 	 * @since  2.2.0
403
+	 * @param string $utc_key
401 404
 	 */
402 405
 	public function _save_utc_value( $utc_key, $utc_stamp ) {
403 406
 		return $this->_new_supporting_field( $utc_key )->save_field( $utc_stamp );
Please login to merge, or discard this patch.
includes/CMB2_Types.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@
 block discarded – undo
175 175
 	 * Combines attributes into a string for a form element
176 176
 	 * @since  1.1.0
177 177
 	 * @param  array  $attrs        Attributes to concatenate
178
-	 * @param  array  $attr_exclude Attributes that should NOT be concatenated
178
+	 * @param  string[]  $attr_exclude Attributes that should NOT be concatenated
179 179
 	 * @return string               String of attributes for form element
180 180
 	 */
181 181
 	public function concat_attrs( $attrs, $attr_exclude = array() ) {
Please login to merge, or discard this patch.
includes/CMB2_Boxes.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 	 * Retrieve all CMB2 instances that have the specified property set.
75 75
 	 * @since  2.2.0
76 76
 	 * @param  string $property Property name.
77
-	 * @param  mixed  $ignore   The value to ignore.
77
+	 * @param  boolean  $ignore   The value to ignore.
78 78
 	 * @return CMB2[]           Array of matching cmb2 instances.
79 79
 	 */
80 80
 	public static function get_by_property( $property, $ignore = null ) {
Please login to merge, or discard this patch.
includes/CMB2_REST_Access.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_REST_Endpoints.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -384,7 +384,6 @@  discard block
 block discarded – undo
384 384
 	 *
385 385
 	 * @since 2.2.0
386 386
 	 *
387
-	 * @param  mixed $data
388 387
 	 * @return array $data
389 388
 	 */
390 389
 	public function prepare_item( $post ) {
@@ -397,7 +396,7 @@  discard block
 block discarded – undo
397 396
 	 * @since  2.2.0
398 397
 	 *
399 398
 	 * @param  mixed $cb Callable function/method.
400
-	 * @return mixed     Results of output buffer after calling function/method.
399
+	 * @return string     Results of output buffer after calling function/method.
401 400
 	 */
402 401
 	public function get_cb_results( $cb ) {
403 402
 		$args = func_get_args();
Please login to merge, or discard this patch.