diff --git a/src/Form/AppCallbackUrlSettingsForm.php b/src/Form/AppCallbackUrlSettingsForm.php index 9fd9a569..9897b64f 100644 --- a/src/Form/AppCallbackUrlSettingsForm.php +++ b/src/Form/AppCallbackUrlSettingsForm.php @@ -95,7 +95,9 @@ public function validateForm(array &$form, FormStateInterface $form_state) { $isRegExValid = FALSE; try { - if (@preg_match($form_state->getValue(['callback_url', 'pattern']), '') !== FALSE) $isRegExValid = TRUE; + if (@preg_match($form_state->getValue(['callback_url', 'pattern']), '') !== FALSE) { + $isRegExValid = TRUE; + } } catch (Exception $e) { $isRegExValid = FALSE;