Commit be3266d2 authored by Taylor Otwell's avatar Taylor Otwell

Decomplicate the messages->format method.

parent 6ee6f7ba
......@@ -105,7 +105,10 @@ class Messages {
*/
private function format($messages, $format)
{
array_walk($messages, function(&$message, $key) use ($format) { $message = str_replace(':message', $message, $format); });
foreach ($messages as $key => &$message)
{
$message = str_replace(':message', $message, $format);
}
return $messages;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment