DEleted function in request and changed the way the controller uses it,
This commit is contained in:
@@ -27,14 +27,4 @@ class ValidateProjectTicketBranchRequest extends FormRequest
|
||||
'repository_connection_id' => ['required', 'integer', 'exists:repository_connections,id'],
|
||||
];
|
||||
}
|
||||
|
||||
public function branchName(): string
|
||||
{
|
||||
return trim((string) $this->validated('branch_name'));
|
||||
}
|
||||
|
||||
public function repositoryConnectionId(): int
|
||||
{
|
||||
return (int) $this->validated('repository_connection_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user