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 1, 2023
1 parent 9b6f9b4 commit 1357c5a
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 1357c5a

Please sign in to comment.