Skip to content

Commit b87be74

Browse files
committed
Cleanup
1 parent 27145e8 commit b87be74

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/lib/ValidationRulesBuilder.php

-5
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ private function resolveAttributeRules(Attribute $attribute):void
101101
}
102102
if ($attribute->phpType === 'bool' || $attribute->phpType === 'boolean') {
103103
$this->rules[$attribute->columnName . '_boolean'] = new ValidationRule([$attribute->columnName], 'boolean');
104-
// $this->defaultRule($attribute);
105104
return;
106105
}
107106

@@ -119,13 +118,11 @@ private function resolveAttributeRules(Attribute $attribute):void
119118
}
120119

121120
$this->rules[$key] = new ValidationRule([$attribute->columnName], $attribute->dbType, $params);
122-
// $this->defaultRule($attribute);
123121
return;
124122
}
125123

126124
if (in_array($attribute->phpType, ['int', 'integer', 'double', 'float']) && !$attribute->isReference()) {
127125
$this->addNumericRule($attribute);
128-
// $this->defaultRule($attribute);
129126
return;
130127
}
131128
if ($attribute->phpType === 'string' && !$attribute->isReference()) {
@@ -135,10 +132,8 @@ private function resolveAttributeRules(Attribute $attribute):void
135132
$key = $attribute->columnName . '_in';
136133
$this->rules[$key] =
137134
new ValidationRule([$attribute->columnName], 'in', ['range' => $attribute->enumValues]);
138-
// $this->defaultRule($attribute); // TODO remove
139135
return;
140136
}
141-
// $this->defaultRule($attribute);
142137
$this->addRulesByAttributeName($attribute);
143138
}
144139

0 commit comments

Comments
 (0)