From 1d7082b2f6eae8abcc25bdcf88ccf2871d43f988 Mon Sep 17 00:00:00 2001 From: Jonathan Nielson Date: Sun, 4 Aug 2024 12:38:03 -0500 Subject: [PATCH] Fix: Make Article factory correctly break new lines --- database/factories/ArticleFactory.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/database/factories/ArticleFactory.php b/database/factories/ArticleFactory.php index 63f5d27..7bd6543 100644 --- a/database/factories/ArticleFactory.php +++ b/database/factories/ArticleFactory.php @@ -76,13 +76,13 @@ class ArticleFactory extends Factory $dice_roll = rand(0,100); if($dice_roll <= 50) { // Make a SubTitle - $markdown_result .= '# ' . fake()->words(rand(1,5), true) . '\n'; + $markdown_result .= '# ' . fake()->words(rand(1,5), true) . "\n"; } elseif ($dice_roll <= 100) { // Make a paragraph - $markdown_result .= fake()->sentences(rand(2,5), true) . '\n'; + $markdown_result .= fake()->sentences(rand(2,5), true) . "\n"; } // Always append a new line - $markdown_result .= '\n'; + $markdown_result .= "\n"; } return $markdown_result;