From ac93173dde8f36c4cd1084a1341bf44bd4dc8f90 Mon Sep 17 00:00:00 2001 From: Tjebbe Westendorp <1061961+tswestendorp@users.noreply.github.com> Date: Tue, 25 Jun 2024 13:26:49 +0200 Subject: [PATCH] Matched formatting of minus-operator with other results Added surrounding spaces to minus-operator when `$first_num` is greater than or equal to `$second_num` --- classes/BasicCaptcha.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/BasicCaptcha.php b/classes/BasicCaptcha.php index 61bc10b..e145df2 100644 --- a/classes/BasicCaptcha.php +++ b/classes/BasicCaptcha.php @@ -35,7 +35,7 @@ public function getCaptchaCode($length = null): string $result = "$second_num - $first_num"; $captcha_code = $second_num - $first_num; } else { - $result = "$first_num-$second_num"; + $result = "$first_num - $second_num"; $captcha_code = $first_num - $second_num; } } elseif ($operator === '*') {