1
0
forked from poc/pds

Update validation for line stop code to require a minimum length of 3 characters

This commit is contained in:
dhanabalan
2025-08-22 14:47:01 +05:30
parent a831f6e787
commit d4045b7b0f

View File

@@ -35,7 +35,7 @@ class LineStopImporter extends Importer
public function resolveRecord(): ?LineStop
{
$warnMsg = [];
if (Str::length($this->data['code']) < 6 || !ctype_alnum($this->data['code'])) {
if (Str::length($this->data['code']) < 3 || !ctype_alnum($this->data['code'])) {
$warnMsg[] = "Invalid line stop code found";
}
if (Str::length($this->data['reason']) < 5) {