@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | |
6 | 6 | class FrmFormTemplateApi extends FrmFormApi { |
7 | 7 | |
8 | - protected static $code_option_name = 'frm_free_license_code'; |
|
8 | + protected static $code_option_name = 'frm_free_license_code'; |
|
9 | 9 | |
10 | 10 | private static $base_api_url = 'https://formidableforms.com/wp-json/form-templates/v1/'; |
11 | 11 | |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | |
77 | 77 | $templates = $this->get_api_info(); |
78 | 78 | $contact_form = 20872734; |
79 | - return isset( $templates[ $contact_form ] ) && ! empty( $templates[ $contact_form ]['url'] ); |
|
79 | + return isset( $templates[$contact_form] ) && ! empty( $templates[$contact_form]['url'] ); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
@@ -137,15 +137,15 @@ discard block |
||
137 | 137 | continue; |
138 | 138 | } |
139 | 139 | |
140 | - $data['urlByKey'][ $template['key'] ] = $template['url']; |
|
140 | + $data['urlByKey'][$template['key']] = $template['url']; |
|
141 | 141 | } |
142 | 142 | |
143 | - if ( ! isset( $data['urlByKey'][ $key ] ) ) { |
|
143 | + if ( ! isset( $data['urlByKey'][$key] ) ) { |
|
144 | 144 | $error = new WP_Error( 400, 'We were unable to retrieve the template' ); |
145 | 145 | wp_send_json_error( $error ); |
146 | 146 | } |
147 | 147 | |
148 | - $data['url'] = $data['urlByKey'][ $key ]; |
|
148 | + $data['url'] = $data['urlByKey'][$key]; |
|
149 | 149 | } |
150 | 150 | |
151 | 151 | wp_send_json_success( $data ); |