Skip to content

Commit 8115e1b

Browse files
authored
gpeb-restart-workflow-on-edit.php: PHPCS
1 parent 09779d1 commit 8115e1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gp-entry-blocks/gpeb-restart-workflow-on-edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
* https://gravitywiz.com/documentation/gravity-forms-entry-blocks/
55
*/
66
// Update "123" with your form ID.
7-
add_filter( 'gform_entry_created_123', function( $entry, $form) {
7+
add_filter( 'gform_entry_created_123', function( $entry, $form ) {
88
if ( class_exists( 'Gravity_Flow_API' )
99
&& is_callable( 'gp_entry_blocks' )
1010
&& gp_entry_blocks()->block_edit_form->has_submitted_edited_entry()
1111
) {
12-
$api = new Gravity_Flow_API($form['id'] );
12+
$api = new Gravity_Flow_API( $form['id'] );
1313
$api->restart_workflow( $entry );
1414
}
1515
}, 10, 2 );

0 commit comments

Comments
 (0)