From 1ff1540ba23194f95d426435f027d94034861215 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Wed, 11 Dec 2013 11:05:44 -0600 Subject: [PATCH] Remove inline functions in bootstrap.php --- bootstrap.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index 93f1161c0..7d7bf3ca8 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -229,14 +229,11 @@ class Bootstrap { // char is not a single-byte char switch ($mode) { case MB_CASE_LOWER: - return preg_replace_callback('/\p{Lu}+/u', - function($a) { return mb_strtolower($a); }, $str); + return preg_replace_callback('/\p{Lu}+/u', 'mb_strtolower', $str); case MB_CASE_UPPER: - return preg_replace_callback('/\p{Ll}+/u', - function($a) { return mb_strtoupper($a); }, $str); + return preg_replace_callback('/\p{Ll}+/u', 'mb_strtoupper', $str); case MB_CASE_TITLE: - return preg_replace_callback('/\b\p{Ll}/u', - function($a) { return mb_strtoupper($a); }, $str); + return preg_replace_callback('/\b\p{Ll}/u', 'mb_strtoupper', $str); } } } -- GitLab