pr improvements
This commit is contained in:
@@ -83,7 +83,7 @@ class ProjectTicketBranchController extends Controller
|
||||
} catch (Throwable) {
|
||||
return response()->json([
|
||||
'is_valid' => false,
|
||||
'message' => ((string) config('app.name')).' could not validate this branch name right now.',
|
||||
'message' => sprintf('%s could not validate this branch name right now.', config('app.name')),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ class ProjectTicketBranchController extends Controller
|
||||
);
|
||||
} catch (Throwable) {
|
||||
throw ValidationException::withMessages([
|
||||
'branch_name' => ((string) config('app.name')).' could not validate this branch name right now.',
|
||||
'branch_name' => sprintf('%s could not validate this branch name right now.', config('app.name')),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -182,7 +182,7 @@ class ProjectTicketBranchController extends Controller
|
||||
);
|
||||
} catch (Throwable) {
|
||||
throw ValidationException::withMessages([
|
||||
'branch_name' => ((string) config('app.name')).' could not create this branch right now.',
|
||||
'branch_name' => sprintf('%s could not create this branch right now.', config('app.name')),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user