@@ -47,11 +47,11 @@ discard block |
||
47 | 47 | */ |
48 | 48 | public function field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id ) { |
49 | 49 | |
50 | - if( 'edit' === $context ) { |
|
50 | + if ( 'edit' === $context ) { |
|
51 | 51 | return $field_options; |
52 | 52 | } |
53 | 53 | |
54 | - $this->add_field_support('date_display', $field_options ); |
|
54 | + $this->add_field_support( 'date_display', $field_options ); |
|
55 | 55 | |
56 | 56 | return $field_options; |
57 | 57 | } |
@@ -71,11 +71,11 @@ discard block |
||
71 | 71 | public function get_content( $output = '', $entry = array(), $field_settings = array(), $field = array() ) { |
72 | 72 | |
73 | 73 | /** Overridden by a template. */ |
74 | - if( \GV\Utils::get( $field, 'field_path' ) !== gravityview()->plugin->dir( 'templates/fields/field-html.php' ) ) { |
|
74 | + if ( \GV\Utils::get( $field, 'field_path' ) !== gravityview()->plugin->dir( 'templates/fields/field-html.php' ) ) { |
|
75 | 75 | return $output; |
76 | 76 | } |
77 | 77 | |
78 | - return GVCommon::format_date( $field['value'], 'format=' . \GV\Utils::get( $field_settings, 'date_display' ) ); |
|
78 | + return GVCommon::format_date( $field[ 'value' ], 'format=' . \GV\Utils::get( $field_settings, 'date_display' ) ); |
|
79 | 79 | } |
80 | 80 | } |
81 | 81 |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function set_provider( $provider = null ) { |
40 | 40 | |
41 | - if( gravityview()->request->is_admin() ) { |
|
41 | + if ( gravityview()->request->is_admin() ) { |
|
42 | 42 | return; |
43 | 43 | } |
44 | 44 | |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | } |
58 | 58 | |
59 | 59 | // We're switching providers; remove the hooks that were added. |
60 | - if( self::$active_provider ) { |
|
60 | + if ( self::$active_provider ) { |
|
61 | 61 | self::$active_provider->remove_hooks(); |
62 | 62 | } |
63 | 63 |
@@ -21,13 +21,13 @@ |
||
21 | 21 | $plugin_hooks_files = glob( $include_path . 'class-gravityview-plugin-hooks-*.php' ); |
22 | 22 | |
23 | 23 | // Load all plugin files automatically |
24 | -foreach ( (array) $plugin_hooks_files as $plugin_hooks_file ) { |
|
24 | +foreach ( (array)$plugin_hooks_files as $plugin_hooks_file ) { |
|
25 | 25 | include $plugin_hooks_file; |
26 | 26 | } |
27 | 27 | |
28 | 28 | $theme_hooks_files = glob( $include_path . 'class-gravityview-theme-hooks-*.php' ); |
29 | 29 | |
30 | 30 | // Load all theme files automatically |
31 | -foreach ( (array) $theme_hooks_files as $theme_hooks_file ) { |
|
31 | +foreach ( (array)$theme_hooks_files as $theme_hooks_file ) { |
|
32 | 32 | include $theme_hooks_file; |
33 | 33 | } |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | |
65 | 65 | add_filter( 'icl_ls_languages', array( $this, 'wpml_ls_filter' ) ); |
66 | 66 | |
67 | - add_filter( 'gravityview_directory_link', array( $this, 'filter_gravityview_back_link') ); |
|
67 | + add_filter( 'gravityview_directory_link', array( $this, 'filter_gravityview_back_link' ) ); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | /** |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | function filter_gravityview_back_link( $link ) { |
85 | 85 | global $wpml_url_filters; |
86 | 86 | |
87 | - if( $wpml_url_filters ) { |
|
87 | + if ( $wpml_url_filters ) { |
|
88 | 88 | $link = $wpml_url_filters->permalink_filter( $link, GravityView_frontend::getInstance()->getPostId() ); |
89 | 89 | } |
90 | 90 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | private function remove_url_hooks() { |
102 | 102 | global $wpml_url_filters; |
103 | 103 | |
104 | - if( ! $wpml_url_filters ) { |
|
104 | + if ( ! $wpml_url_filters ) { |
|
105 | 105 | return; |
106 | 106 | } |
107 | 107 | |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | private function add_url_hooks() { |
130 | 130 | global $wpml_url_filters; |
131 | 131 | |
132 | - if( ! $wpml_url_filters ) { |
|
132 | + if ( ! $wpml_url_filters ) { |
|
133 | 133 | return; |
134 | 134 | } |
135 | 135 | |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | break; |
227 | 227 | } |
228 | 228 | |
229 | - $languages[ $lang_code ]['url'] = $entry_link; |
|
229 | + $languages[ $lang_code ][ 'url' ] = $entry_link; |
|
230 | 230 | } |
231 | 231 | |
232 | 232 | $this->add_url_hooks(); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | function edit_entry_fix_hidden_fields( $fields ) { |
50 | 50 | |
51 | 51 | /** @type GF_Field $field */ |
52 | - foreach( $fields as &$field ) { |
|
52 | + foreach ( $fields as &$field ) { |
|
53 | 53 | |
54 | 54 | if ( 'hidden' === $field->type ) { |
55 | 55 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | */ |
63 | 63 | $reveal_hidden_field = apply_filters( 'gravityview/edit_entry/reveal_hidden_field', false, $field ); |
64 | 64 | |
65 | - if( ! $reveal_hidden_field ) { |
|
65 | + if ( ! $reveal_hidden_field ) { |
|
66 | 66 | continue; |
67 | 67 | } |
68 | 68 |
@@ -50,7 +50,7 @@ |
||
50 | 50 | public function edit_entry_fix_uid_fields( $fields ) { |
51 | 51 | |
52 | 52 | /** @type \GF_Field $field */ |
53 | - foreach( $fields as &$field ) { |
|
53 | + foreach ( $fields as &$field ) { |
|
54 | 54 | if ( 'uid' === $field->type ) { |
55 | 55 | |
56 | 56 | // Replace GF_Field with GF_Field_Text, copying all the data from $field |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | * @return \GV\Field The field implementation from configuration (\GV\GF_Field, \GV\Internal_Field). |
167 | 167 | */ |
168 | 168 | public static function from_configuration( $configuration ) { |
169 | - if ( empty( $configuration['id'] ) ) { |
|
169 | + if ( empty( $configuration[ 'id' ] ) ) { |
|
170 | 170 | $field = new self(); |
171 | 171 | gravityview()->log->error( 'Trying to get field from configuration without a field ID.', array( 'data' => $configuration ) ); |
172 | 172 | $field->update_configuration( $configuration ); |
@@ -179,8 +179,8 @@ discard block |
||
179 | 179 | } else { |
180 | 180 | $trace = debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS ); |
181 | 181 | } |
182 | - $trace = $trace[1]; |
|
183 | - if ( $trace['function'] == 'from_configuration' && $trace['class'] == __CLASS__ ) { |
|
182 | + $trace = $trace[ 1 ]; |
|
183 | + if ( $trace[ 'function' ] == 'from_configuration' && $trace[ 'class' ] == __CLASS__ ) { |
|
184 | 184 | $field = new self(); |
185 | 185 | gravityview()->log->error( 'Infinite loop protection tripped. Returning default class here.' ); |
186 | 186 | $field->update_configuration( $configuration ); |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | } |
189 | 189 | |
190 | 190 | /** @type \GV\GF_Field|\GV\Internal_Field $field_class Determine the field implementation to use, and try to use. */ |
191 | - $field_class = is_numeric( $configuration['id'] ) ? '\GV\GF_Field' : '\GV\Internal_Field'; |
|
191 | + $field_class = is_numeric( $configuration[ 'id' ] ) ? '\GV\GF_Field' : '\GV\Internal_Field'; |
|
192 | 192 | |
193 | 193 | /** |
194 | 194 | * @filter `gravityview/field/class` Filter the field class about to be created from the configuration. |
@@ -227,24 +227,24 @@ discard block |
||
227 | 227 | public function update_configuration( $configuration ) { |
228 | 228 | $configuration = wp_parse_args( $configuration, $this->as_configuration() ); |
229 | 229 | |
230 | - if ( $this->ID != $configuration['id'] ) { |
|
230 | + if ( $this->ID != $configuration[ 'id' ] ) { |
|
231 | 231 | /** Smelling trouble here... */ |
232 | 232 | gravityview()->log->warning( 'ID is being changed for {field_class} instance, but implementation is not. Use ::from_configuration instead', array( 'field_class', __CLASS__ ) ); |
233 | 233 | } |
234 | 234 | |
235 | - $this->ID = $configuration['id']; |
|
236 | - $this->label = $configuration['label']; |
|
237 | - $this->show_label = $configuration['show_label'] == '1'; |
|
238 | - $this->custom_label = $configuration['custom_label']; |
|
239 | - $this->custom_class = $configuration['custom_class']; |
|
240 | - $this->cap = $configuration['only_loggedin'] == '1' ? $configuration['only_loggedin_cap'] : ''; |
|
241 | - $this->search_filter = $configuration['search_filter'] == '1'; |
|
242 | - $this->show_as_link = $configuration['show_as_link'] == '1'; |
|
235 | + $this->ID = $configuration[ 'id' ]; |
|
236 | + $this->label = $configuration[ 'label' ]; |
|
237 | + $this->show_label = $configuration[ 'show_label' ] == '1'; |
|
238 | + $this->custom_label = $configuration[ 'custom_label' ]; |
|
239 | + $this->custom_class = $configuration[ 'custom_class' ]; |
|
240 | + $this->cap = $configuration[ 'only_loggedin' ] == '1' ? $configuration[ 'only_loggedin_cap' ] : ''; |
|
241 | + $this->search_filter = $configuration[ 'search_filter' ] == '1'; |
|
242 | + $this->show_as_link = $configuration[ 'show_as_link' ] == '1'; |
|
243 | 243 | |
244 | 244 | /** Shared among all field types (sort of). */ |
245 | 245 | $shared_configuration_keys = array( |
246 | 246 | 'id', 'label', 'show_label', 'custom_label', 'custom_class', |
247 | - 'only_loggedin' ,'only_loggedin_cap', 'search_filter', 'show_as_link', |
|
247 | + 'only_loggedin', 'only_loggedin_cap', 'search_filter', 'show_as_link', |
|
248 | 248 | ); |
249 | 249 | |
250 | 250 | /** Everything else goes into the properties for now. @todo subclasses! */ |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | |
274 | 274 | /** A custom label is available. */ |
275 | 275 | if ( ! empty( $this->custom_label ) ) { |
276 | - return \GravityView_API::replace_variables( $this->custom_label, $source ? $source->form ? : null : null, $entry ? $entry->as_entry() : null ); |
|
276 | + return \GravityView_API::replace_variables( $this->custom_label, $source ? $source->form ?: null : null, $entry ? $entry->as_entry() : null ); |
|
277 | 277 | } |
278 | 278 | |
279 | 279 | return ''; |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | * @return mixed|null The value for the given configuration key, null if doesn't exist. |
360 | 360 | */ |
361 | 361 | public function __get( $key ) { |
362 | - switch( $key ) { |
|
362 | + switch ( $key ) { |
|
363 | 363 | default: |
364 | 364 | if ( isset( $this->configuration[ $key ] ) ) { |
365 | 365 | return $this->configuration[ $key ]; |
@@ -377,7 +377,7 @@ discard block |
||
377 | 377 | * @return boolean Whether this $key is set or not. |
378 | 378 | */ |
379 | 379 | public function __isset( $key ) { |
380 | - switch( $key ) { |
|
380 | + switch ( $key ) { |
|
381 | 381 | default: |
382 | 382 | return isset( $this->configuration[ $key ] ); |
383 | 383 | } |
@@ -532,7 +532,7 @@ |
||
532 | 532 | * @since 1.16.4 |
533 | 533 | * @param int $entry_id ID of the Gravity Forms entry |
534 | 534 | * @param array $entry Deleted entry array |
535 | - */ |
|
535 | + */ |
|
536 | 536 | do_action( 'gravityview/delete-entry/deleted', $entry_id, $entry ); |
537 | 537 | } |
538 | 538 |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | */ |
113 | 113 | public function add_reserved_arg( $args ) { |
114 | 114 | |
115 | - $args[] = 'delete'; |
|
115 | + $args[ ] = 'delete'; |
|
116 | 116 | |
117 | 117 | return $args; |
118 | 118 | } |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | |
183 | 183 | // Index 100 is the default GravityView template path. |
184 | 184 | // Index 110 is Edit Entry link |
185 | - $file_paths[115] = self::$file; |
|
185 | + $file_paths[ 115 ] = self::$file; |
|
186 | 186 | |
187 | 187 | return $file_paths; |
188 | 188 | } |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | |
298 | 298 | $attributes = array( |
299 | 299 | 'class' => 'btn btn-sm button button-small alignright pull-right btn-danger gv-button-delete', |
300 | - 'tabindex' => ( GFCommon::$tab_index ++ ), |
|
300 | + 'tabindex' => ( GFCommon::$tab_index++ ), |
|
301 | 301 | 'onclick' => self::get_confirm_dialog(), |
302 | 302 | ); |
303 | 303 | |
@@ -342,12 +342,12 @@ discard block |
||
342 | 342 | ); |
343 | 343 | |
344 | 344 | // If the form is not submitted, return early |
345 | - if ( 'delete' !== $get_fields['action'] || empty( $get_fields['entry_id'] ) ) { |
|
345 | + if ( 'delete' !== $get_fields[ 'action' ] || empty( $get_fields[ 'entry_id' ] ) ) { |
|
346 | 346 | return; |
347 | 347 | } |
348 | 348 | |
349 | 349 | // Make sure it's a GravityView request |
350 | - $valid_nonce_key = wp_verify_nonce( $get_fields['delete'], self::get_nonce_key( $get_fields['entry_id'] ) ); |
|
350 | + $valid_nonce_key = wp_verify_nonce( $get_fields[ 'delete' ], self::get_nonce_key( $get_fields[ 'entry_id' ] ) ); |
|
351 | 351 | |
352 | 352 | if ( ! $valid_nonce_key ) { |
353 | 353 | gravityview()->log->debug( 'Delete entry not processed: nonce validation failed.' ); |
@@ -356,10 +356,10 @@ discard block |
||
356 | 356 | } |
357 | 357 | |
358 | 358 | // Get the entry slug |
359 | - $entry_slug = esc_attr( $get_fields['entry_id'] ); |
|
359 | + $entry_slug = esc_attr( $get_fields[ 'entry_id' ] ); |
|
360 | 360 | |
361 | 361 | // Redirect after deleting the entry. |
362 | - $view = \GV\View::by_id( $get_fields['view_id'] ); |
|
362 | + $view = \GV\View::by_id( $get_fields[ 'view_id' ] ); |
|
363 | 363 | |
364 | 364 | // See if there's an entry there |
365 | 365 | $entry = gravityview_get_entry( $entry_slug, true, false, $view ); |
@@ -386,9 +386,9 @@ discard block |
||
386 | 386 | $this->_redirect_and_exit( $delete_redirect_base, $delete_response->get_error_message(), 'error' ); |
387 | 387 | } |
388 | 388 | |
389 | - if ( (int) $view->settings->get( 'delete_redirect' ) === self::REDIRECT_TO_URL_VALUE ) { |
|
389 | + if ( (int)$view->settings->get( 'delete_redirect' ) === self::REDIRECT_TO_URL_VALUE ) { |
|
390 | 390 | |
391 | - $form = GFAPI::get_form( $entry['form_id'] ); |
|
391 | + $form = GFAPI::get_form( $entry[ 'form_id' ] ); |
|
392 | 392 | $redirect_url_setting = $view->settings->get( 'delete_redirect_url' ); |
393 | 393 | $redirect_url = GFCommon::replace_variables( $redirect_url_setting, $form, $entry, false, false, false, 'text' ); |
394 | 394 | |
@@ -464,7 +464,7 @@ discard block |
||
464 | 464 | */ |
465 | 465 | private function delete_or_trash_entry( $entry ) { |
466 | 466 | |
467 | - $entry_id = $entry['id']; |
|
467 | + $entry_id = $entry[ 'id' ]; |
|
468 | 468 | |
469 | 469 | $mode = $this->get_delete_mode(); |
470 | 470 | |
@@ -528,7 +528,7 @@ discard block |
||
528 | 528 | public function process_connected_posts( $entry_id = 0, $entry = array() ) { |
529 | 529 | |
530 | 530 | // The entry had no connected post |
531 | - if ( empty( $entry['post_id'] ) ) { |
|
531 | + if ( empty( $entry[ 'post_id' ] ) ) { |
|
532 | 532 | return; |
533 | 533 | } |
534 | 534 | |
@@ -546,9 +546,9 @@ discard block |
||
546 | 546 | $action = current_action(); |
547 | 547 | |
548 | 548 | if ( 'gravityview/delete-entry/deleted' === $action ) { |
549 | - $result = wp_delete_post( $entry['post_id'], true ); |
|
549 | + $result = wp_delete_post( $entry[ 'post_id' ], true ); |
|
550 | 550 | } else { |
551 | - $result = wp_trash_post( $entry['post_id'] ); |
|
551 | + $result = wp_trash_post( $entry[ 'post_id' ] ); |
|
552 | 552 | } |
553 | 553 | |
554 | 554 | if ( false === $result ) { |
@@ -579,13 +579,13 @@ discard block |
||
579 | 579 | public function verify_nonce() { |
580 | 580 | |
581 | 581 | // No delete entry request was made |
582 | - if ( empty( $_GET['entry_id'] ) || empty( $_GET['delete'] ) ) { |
|
582 | + if ( empty( $_GET[ 'entry_id' ] ) || empty( $_GET[ 'delete' ] ) ) { |
|
583 | 583 | return false; |
584 | 584 | } |
585 | 585 | |
586 | - $nonce_key = self::get_nonce_key( $_GET['entry_id'] ); |
|
586 | + $nonce_key = self::get_nonce_key( $_GET[ 'entry_id' ] ); |
|
587 | 587 | |
588 | - $valid = wp_verify_nonce( $_GET['delete'], $nonce_key ); |
|
588 | + $valid = wp_verify_nonce( $_GET[ 'delete' ], $nonce_key ); |
|
589 | 589 | |
590 | 590 | /** |
591 | 591 | * @filter `gravityview/delete-entry/verify_nonce` Override Delete Entry nonce validation. Return true to declare nonce valid. |
@@ -641,7 +641,7 @@ discard block |
||
641 | 641 | $error = __( 'You do not have permission to delete this entry.', 'gk-gravityview' ); |
642 | 642 | } |
643 | 643 | |
644 | - if ( $entry['status'] === 'trash' ) { |
|
644 | + if ( $entry[ 'status' ] === 'trash' ) { |
|
645 | 645 | if ( 'trash' === $this->get_delete_mode() ) { |
646 | 646 | $error = __( 'The entry is already in the trash.', 'gk-gravityview' ); |
647 | 647 | } else { |
@@ -685,7 +685,7 @@ discard block |
||
685 | 685 | |
686 | 686 | $current_user = wp_get_current_user(); |
687 | 687 | |
688 | - $entry_id = isset( $entry['id'] ) ? $entry['id'] : null; |
|
688 | + $entry_id = isset( $entry[ 'id' ] ) ? $entry[ 'id' ] : null; |
|
689 | 689 | |
690 | 690 | // Or if they can delete any entries (as defined in Gravity Forms), we're good. |
691 | 691 | if ( GVCommon::has_cap( array( 'gravityforms_delete_entries', 'gravityview_delete_others_entries' ), $entry_id ) ) { |
@@ -699,17 +699,17 @@ discard block |
||
699 | 699 | if ( ! empty( $field ) ) { |
700 | 700 | |
701 | 701 | // If capability is not defined, something is not right! |
702 | - if ( empty( $field['allow_edit_cap'] ) ) { |
|
702 | + if ( empty( $field[ 'allow_edit_cap' ] ) ) { |
|
703 | 703 | |
704 | 704 | gravityview()->log->error( 'Cannot read delete entry field caps', array( 'data' => $field ) ); |
705 | 705 | |
706 | 706 | return false; |
707 | 707 | } |
708 | 708 | |
709 | - if ( GVCommon::has_cap( $field['allow_edit_cap'] ) ) { |
|
709 | + if ( GVCommon::has_cap( $field[ 'allow_edit_cap' ] ) ) { |
|
710 | 710 | |
711 | 711 | // Do not return true if cap is read, as we need to check if the current user created the entry |
712 | - if ( $field['allow_edit_cap'] !== 'read' ) { |
|
712 | + if ( $field[ 'allow_edit_cap' ] !== 'read' ) { |
|
713 | 713 | return true; |
714 | 714 | } |
715 | 715 | } else { |
@@ -720,7 +720,7 @@ discard block |
||
720 | 720 | } |
721 | 721 | } |
722 | 722 | |
723 | - if ( ! isset( $entry['created_by'] ) ) { |
|
723 | + if ( ! isset( $entry[ 'created_by' ] ) ) { |
|
724 | 724 | |
725 | 725 | gravityview()->log->error( 'Entry `created_by` doesn\'t exist.' ); |
726 | 726 | |
@@ -736,7 +736,7 @@ discard block |
||
736 | 736 | } |
737 | 737 | |
738 | 738 | // If the logged-in user is the same as the user who created the entry, we're good. |
739 | - if ( is_user_logged_in() && intval( $current_user->ID ) === intval( $entry['created_by'] ) ) { |
|
739 | + if ( is_user_logged_in() && intval( $current_user->ID ) === intval( $entry[ 'created_by' ] ) ) { |
|
740 | 740 | |
741 | 741 | gravityview()->log->debug( 'User {user_id} created the entry.', array( 'user_id' => $current_user->ID ) ); |
742 | 742 | |
@@ -761,12 +761,12 @@ discard block |
||
761 | 761 | */ |
762 | 762 | public function maybe_display_message( $current_view_id = 0 ) { |
763 | 763 | |
764 | - if ( empty( $_GET['status'] ) || ! self::verify_nonce() ) { |
|
764 | + if ( empty( $_GET[ 'status' ] ) || ! self::verify_nonce() ) { |
|
765 | 765 | return; |
766 | 766 | } |
767 | 767 | |
768 | 768 | // Entry wasn't deleted from current View |
769 | - if ( isset( $_GET['view_id'] ) && intval( $_GET['view_id'] ) !== intval( $current_view_id ) ) { |
|
769 | + if ( isset( $_GET[ 'view_id' ] ) && intval( $_GET[ 'view_id' ] ) !== intval( $current_view_id ) ) { |
|
770 | 770 | return; |
771 | 771 | } |
772 | 772 | |
@@ -775,11 +775,11 @@ discard block |
||
775 | 775 | |
776 | 776 | public function display_message() { |
777 | 777 | |
778 | - if ( empty( $_GET['status'] ) || empty( $_GET['delete'] ) ) { |
|
778 | + if ( empty( $_GET[ 'status' ] ) || empty( $_GET[ 'delete' ] ) ) { |
|
779 | 779 | return; |
780 | 780 | } |
781 | 781 | |
782 | - $status = esc_attr( $_GET['status'] ); |
|
782 | + $status = esc_attr( $_GET[ 'status' ] ); |
|
783 | 783 | $message_from_url = \GV\Utils::_GET( 'message', '' ); |
784 | 784 | $message_from_url = rawurldecode( stripslashes_deep( $message_from_url ) ); |
785 | 785 | $class = ''; |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | |
54 | 54 | $partial_entries_addon = GF_Partial_Entries::get_instance(); |
55 | 55 | |
56 | - $feed_settings = $partial_entries_addon->get_feed_settings( $form['id'] ); |
|
56 | + $feed_settings = $partial_entries_addon->get_feed_settings( $form[ 'id' ] ); |
|
57 | 57 | |
58 | 58 | $is_enabled = \GV\Utils::get( $feed_settings, 'enable', 0 ); |
59 | 59 | |
@@ -70,14 +70,14 @@ discard block |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | // Set the expected $_POST key for the Add-On to use |
73 | - $_POST['partial_entry_id'] = $partial_entry_id; |
|
73 | + $_POST[ 'partial_entry_id' ] = $partial_entry_id; |
|
74 | 74 | |
75 | 75 | gravityview()->log->debug( 'Saving partial entry (ID #{partial_entry_id}) for Entry #{entry_id}', array( |
76 | 76 | 'partial_entry_id' => $partial_entry_id, |
77 | 77 | 'entry_id' => $entry_id |
78 | 78 | ) ); |
79 | 79 | |
80 | - $partial_entries_addon->maybe_save_partial_entry( $form['id'] ); |
|
80 | + $partial_entries_addon->maybe_save_partial_entry( $form[ 'id' ] ); |
|
81 | 81 | } |
82 | 82 | } |
83 | 83 |