File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Illuminate/Validation Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -78,10 +78,9 @@ public static function withMessages(array $messages)
78
78
}
79
79
80
80
/**
81
- * Create a summary error message from the validation errors.
82
- *
83
- * @param \Illuminate\Contracts\Validation\Validator $validator
81
+ * Create a error message summary from the validation errors.
84
82
*
83
+ * @param \Illuminate\Contracts\Validation\Validator $validator
85
84
* @return string
86
85
*/
87
86
protected static function summarize ($ validator )
@@ -96,7 +95,8 @@ protected static function summarize($validator)
96
95
97
96
if ($ additional = count ($ messages )) {
98
97
$ pluralized = 1 === $ additional ? 'error ' : 'errors ' ;
99
- $ message .= " (and $ additional more $ pluralized) " ;
98
+
99
+ $ message .= " (and {$ additional } more {$ pluralized }) " ;
100
100
}
101
101
102
102
return $ message ;
You can’t perform that action at this time.
0 commit comments