Skip to content
Snippets Groups Projects
Commit b9e2753a authored by Christian Wach's avatar Christian Wach :soccer:
Browse files

Codestyle

parent beda9ad9
No related branches found
No related tags found
No related merge requests found
......@@ -116,9 +116,9 @@ class CFAFA_Form_Action_Base {
// Get the existing array of Action results.
$actions = get_query_var( 'acfe_form_actions', [] );
$actions[$this->action_name] = $data;
$actions[ $this->action_name ] = $data;
if ( ! empty( $action ) ) {
$actions[$action] = $data;
$actions[ $action ] = $data;
}
// Update array of Action results.
......@@ -193,9 +193,9 @@ class CFAFA_Form_Action_Base {
// Get the existing array of Action results.
$actions = get_query_var( 'acfe_form_actions', [] );
$actions[$this->action_name] = $data;
$actions[ $this->action_name ] = $data;
if ( ! empty( $action ) ) {
$actions[$action] = $data;
$actions[ $action ] = $data;
}
// Update array of Action results.
......@@ -564,7 +564,7 @@ class CFAFA_Form_Action_Base {
foreach ( $form_data as $param => $value ) {
// Allow (string) "0" as valid data.
if ( ! empty( $value ) || $value === '0' ) {
$filtered_data[$param] = $value;
$filtered_data[ $param ] = $value;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment