Skip to content

A free open source IT asset/license management system

remove some commented things

spencerrlonggd0593c6b8dba
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 () {