From 7b0ed66d6b972bfc88d7b9a1a0e1369f01084189 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Sun, 8 Nov 2020 17:45:02 +0100 Subject: Replace array_repeat() with equivalent array_fill() calls --- ratatoeskr/sys/GlobalSte.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ratatoeskr/sys/GlobalSte.php') diff --git a/ratatoeskr/sys/GlobalSte.php b/ratatoeskr/sys/GlobalSte.php index 3a5c8e6..3fad630 100644 --- a/ratatoeskr/sys/GlobalSte.php +++ b/ratatoeskr/sys/GlobalSte.php @@ -49,7 +49,9 @@ class GlobalSte $repeats = empty($params["repeat"]) ? 1 : $params["repeat"] + 0; return implode( "\n\n", - array_repeat( + array_fill( + 0, + $repeats, "

Lorem ipsum dolor sit amet, consectetur adipisici elit, " . "sed eiusmod tempor incidunt ut labore et dolore magna " . "aliqua. Ut enim ad minim veniam, quis nostrud exercitation " @@ -112,8 +114,7 @@ class GlobalSte . "dolore magna aliquyam erat, sed diam voluptua. At vero eos " . "et accusam et justo duo dolores et ea rebum. Stet clita " . "kasd gubergren, no sea takimata sanctus est Lorem ipsum " - . "dolor sit amet.

", - $repeats + . "dolor sit amet.

" ) ); } -- cgit v1.2.3-70-g09d2