From 58f932b443632184792f42a3d9d422929ae026ae Mon Sep 17 00:00:00 2001 From: Yoav Farhi Date: Thu, 20 Jun 2019 14:47:46 +0200 Subject: [PATCH] strings.php - coding standards Adds a few missing spaces. --- gp-includes/strings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gp-includes/strings.php b/gp-includes/strings.php index b5720aadf..f63548a09 100644 --- a/gp-includes/strings.php +++ b/gp-includes/strings.php @@ -8,7 +8,7 @@ function gp_startswith( $haystack, $needle ) { } function gp_endswith( $haystack, $needle ) { - return $needle === substr( $haystack, -strlen( $needle )); + return $needle === substr( $haystack, -strlen( $needle ) ); } function gp_in( $needle, $haystack ) { @@ -160,7 +160,7 @@ function gp_string_similarity( $str1, $str2 ) { $length1 = gp_strlen( $str1 ); $length2 = gp_strlen( $str2 ); - $len = min( $length1, $length2); + $len = min( $length1, $length2 ); if ( $len > 5000 ) { //Arbitrary limit on character length for speed purpose. $distance = $len;