@@ -866,7 +866,7 @@ discard block |
||
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 |
||
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 ) ) { |
@@ -267,7 +267,7 @@ |
||
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'; |
@@ -357,6 +357,7 @@ discard block |
||
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 |
||
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 |
||
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 ); |
@@ -175,7 +175,7 @@ |
||
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() ) { |
@@ -1,46 +1,46 @@ |
||
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.1.2 |
|
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.1.2 |
|
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 |