From d0593c6b8dba36519131d1b3a4067980d9b1555a Mon Sep 17 00:00:00 2001 From: spencerrlongg Date: Wed, 23 Jul 2025 16:19:32 -0500 Subject: [PATCH] remove some commented things --- app/Rules/NumericEncrypted.php | 4 ---- database/factories/CustomFieldFactory.php | 12 ------------ 2 files changed, 16 deletions(-) diff --git a/app/Rules/NumericEncrypted.php b/app/Rules/NumericEncrypted.php index 3476293d87..ff551e0322 100644 --- a/app/Rules/NumericEncrypted.php +++ b/app/Rules/NumericEncrypted.php @@ -13,7 +13,6 @@ class NumericEncrypted implements ValidationRule { use ValidatesAttributes; - //$this->validateEmail($attribute, $decrypted); /** * Run the validation rule. * @@ -27,9 +26,6 @@ class NumericEncrypted implements ValidationRule if (!$this->validateNumeric($attributeName, $decrypted) && !is_null($decrypted)) { $fail(trans('validation.numeric', ['attribute' => $attributeName])); } - //if (!is_numeric($decrypted) && !is_null($decrypted)) { - // $fail(trans('validation.numeric', ['attribute' => $attributeName])); - //} } catch (\Exception $e) { report($e->getMessage()); $fail(trans('general.something_went_wrong')); diff --git a/database/factories/CustomFieldFactory.php b/database/factories/CustomFieldFactory.php index b0d44b242f..30c41ce4e5 100644 --- a/database/factories/CustomFieldFactory.php +++ b/database/factories/CustomFieldFactory.php @@ -129,18 +129,6 @@ class CustomFieldFactory extends Factory }); } - //public function testEncryptedAlpha() - //{ - // return $this->state(function () { - // return [ - // 'name' => 'Test Encrypted', - // 'field_encrypted' => '1', - // 'help_text' => 'This is a sample encrypted field.', - // 'format' => 'alpha' - // ]; - // }); - //} - public function testCheckbox() { return $this->state(function () {