| @@ -6,10 +6,8 @@ | ||
| 6 | 6 | class FrmSimpleBlocksController { |
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * Enqueue Formidable Simple Blocks' js and CSS for editor in admin. |
| 10 | - * | |
| 11 | - * @return void | |
| 12 | 10 | */ |
| 13 | 11 | public static function block_editor_assets() { |
| 14 | 12 | $version = FrmAppHelper::plugin_version(); |
| 15 | 13 | |
| @@ -91,10 +89,8 @@ | ||
| 91 | 89 | } |
| 92 | 90 | |
| 93 | 91 | /** |
| 94 | 92 | * Registers simple form block |
| 95 | - * | |
| 96 | - * @return void | |
| 97 | 93 | */ |
| 98 | 94 | public static function register_simple_form_block() { |
| 99 | 95 | if ( ! is_callable( 'register_block_type' ) ) { |
| 100 | 96 | return; |
| @@ -134,9 +130,10 @@ | ||
| 134 | 130 | |
| 135 | 131 | /** |
| 136 | 132 | * Renders a form given the specified attributes. |
| 137 | 133 | * |
| 138 | - * @param array $attributes | |
| 134 | + * @param $attributes | |
| 135 | + * | |
| 139 | 136 | * @return string |
| 140 | 137 | */ |
| 141 | 138 | public static function simple_form_render( $attributes ) { |
| 142 | 139 | if ( ! isset( $attributes['formId'] ) ) { |
| @@ -141,14 +138,8 @@ | ||
| 141 | 138 | public static function simple_form_render( $attributes ) { |
| 142 | 139 | if ( ! isset( $attributes['formId'] ) ) { |
| 143 | 140 | return ''; |
| 144 | 141 | } |
| 145 | - | |
| 146 | - /** | |
| 147 | - * @since 5.5.2 | |
| 148 | - * @param array $attributes | |
| 149 | - */ | |
| 150 | - do_action( 'frm_before_simple_form_render', $attributes ); | |
| 151 | 142 | |
| 152 | 143 | $params = array_filter( $attributes ); |
| 153 | 144 | $params['id'] = $params['formId']; |
| 154 | 145 | unset( $params['formId'] ); |