From 119c350db656935a2b407290bc8d22fa3f908b66 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Tue, 12 Nov 2019 22:34:51 +0100 Subject: [PATCH] Ran PHPCBF over code phpcs-errors:0 phpunit-status:successful --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 12d788f..ed4e694 100644 --- a/functions.php +++ b/functions.php @@ -179,7 +179,7 @@ function transform(string $transform):string { $transform = preg_replace('#é#', 'é', $transform); $transform = preg_replace('#è#', 'è', $transform); - foreach (array("[", "]") as $toescape) + foreach (["[", "]"] as $toescape) $transform = str_replace ($toescape, "$" . $toescape . "$", $transform); $transform = html_entity_decode($transform, ENT_QUOTES, "utf-8" );