Skip to content

Commit

Permalink
Fixes for PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
kedarkhaire committed Sep 5, 2023
1 parent a4513a5 commit 59d5222
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Form/AppCallbackUrlSettingsForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 59d5222

Please sign in to comment.