Skip to content

Commit

Permalink
Change PHP keywords to comply with PSR2
Browse files Browse the repository at this point in the history
Signed-off-by: CodeLingoBot <bot@codelingo.io>
  • Loading branch information
CodeLingoBot committed Apr 15, 2019
1 parent 4ef2c08 commit ac1c1c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphp/utils/STRUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static function startsWith($haystack, $needle) {
// search backwards starting from haystack length characters from the end
return
$needle === "" ||
strrpos($haystack, $needle, - strlen($haystack)) !== FALSE;
strrpos($haystack, $needle, - strlen($haystack)) !== false;
}

public static function endsWith($haystack, $needle) {
Expand All @@ -30,7 +30,7 @@ public static function endsWith($haystack, $needle) {
$needle === "" ||
(
($temp = strlen($haystack) - strlen($needle)) >= 0 &&
strpos($haystack, $needle, $temp) !== FALSE
strpos($haystack, $needle, $temp) !== false
);
}

Expand Down

0 comments on commit ac1c1c8

Please sign in to comment.