Skip to content

Commit 0a9408f

Browse files
committed
chore: Linter compliance met
1 parent 760d52d commit 0a9408f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

access-functions.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ function str_starts_with( $haystack, $needle ) {
3737
*/
3838
function str_ends_with( $haystack, $needle ) {
3939
$length = strlen( $needle );
40-
return $length === 0
41-
|| $length - 1 === strpos( $haystack, $needle, - $length );
40+
return 0 === $length
41+
|| strpos( $haystack, $needle, - $length ) === $length - 1;
4242
}
4343
}//end if
4444

0 commit comments

Comments
 (0)