Skip to content

Commit

Permalink
chore: Linter compliance met
Browse files Browse the repository at this point in the history
  • Loading branch information
kidunot89 committed Aug 7, 2024
1 parent 760d52d commit 0a9408f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions access-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ function str_starts_with( $haystack, $needle ) {
*/
function str_ends_with( $haystack, $needle ) {
$length = strlen( $needle );
return $length === 0
|| $length - 1 === strpos( $haystack, $needle, - $length );
return 0 === $length
|| strpos( $haystack, $needle, - $length ) === $length - 1;
}
}//end if

Expand Down

0 comments on commit 0a9408f

Please sign in to comment.