| @@ -16,9 +16,11 @@ | ||
| 16 | 16 | * |
| 17 | 17 | * @param string $id |
| 18 | 18 | * @param string $name |
| 19 | 19 | * @param array $args { |
| 20 | - * @param bool|null $echo True if you want the toggle to echo. False if you want it to return an HTML string. | |
| 20 | + * Any extra arguments. | |
| 21 | + * | |
| 22 | + * @type bool|null $echo True if you want the toggle to echo. False if you want it to return an HTML string. | |
| 21 | 23 | * } |
| 22 | 24 | * |
| 23 | 25 | * @return string|void |
| 24 | 26 | */ |
| @@ -25,9 +27,9 @@ | ||
| 25 | 27 | public static function toggle( $id, $name, $args ) { |
| 26 | 28 | wp_enqueue_script( 'formidable_settings' ); |
| 27 | 29 | return FrmAppHelper::clip( |
| 28 | 30 | // @phpstan-ignore-next-line |
| 29 | - function() use ( $id, $name, $args ) { | |
| 31 | + function () use ( $id, $name, $args ) { | |
| 30 | 32 | require FrmAppHelper::plugin_path() . '/classes/views/shared/toggle.php'; |
| 31 | 33 | }, |
| 32 | 34 | isset( $args['echo'] ) ? $args['echo'] : false |
| 33 | 35 | ); |