@@ -230,7 +230,7 @@ |
||
| 230 | 230 | * |
| 231 | 231 | * @since 1.1.4 |
| 232 | 232 | * @param string $arg Field definition. |
| 233 | - * @param string|array $value A CMB2 field type. |
|
| 233 | + * @param string[] $value A CMB2 field type. |
|
| 234 | 234 | */ |
| 235 | 235 | public function add_arg( $arg, $value ) { |
| 236 | 236 | |
@@ -296,7 +296,7 @@ |
||
| 296 | 296 | /** |
| 297 | 297 | * Initiate the metabox. |
| 298 | 298 | */ |
| 299 | - if ($post_id_text !== ''){ |
|
| 299 | + if ($post_id_text !== '') { |
|
| 300 | 300 | ${ 'cmb_' . $id } = new_cmb2_box( array( |
| 301 | 301 | 'id' => $id, |
| 302 | 302 | 'title' => $title, |
@@ -196,6 +196,7 @@ |
||
| 196 | 196 | * |
| 197 | 197 | * @param int $id Post ID. |
| 198 | 198 | * @param string $field The meta key to retrieve. |
| 199 | + * @return string |
|
| 199 | 200 | */ |
| 200 | 201 | function cmbf( $id, $field ) { |
| 201 | 202 | |