Skip to content

Commit 68e695b

Browse files
ju-gowtaylorotwell
andauthored
Update Inspiring.php (#54846)
* Update Inspiring.php Only the selected quotes needs to be formatted, not all. * Update Inspiring.php --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent d1b79d7 commit 68e695b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Illuminate/Foundation/Inspiring.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ class Inspiring
5656
*/
5757
public static function quote()
5858
{
59-
return static::quotes()
60-
->map(fn ($quote) => static::formatForConsole($quote))
61-
->random();
59+
return static::formatForConsole(static::quotes()->random());
6260
}
6361

6462
/**

0 commit comments

Comments
 (0)