Skip to content
Permalink
Browse files

Merge pull request #1016 from yoavf/strings-coding-standards

strings.php - coding standards
  • Loading branch information...
yoavf committed Jun 20, 2019
2 parents a7edc08 + 58f932b commit 2272ba7232f2e75ad1f3f0617ed09749990acc85
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;

0 comments on commit 2272ba7

Please sign in to comment.
You can’t perform that action at this time.