Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Change PHP keywords to comply with PSR2 #513

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PHP/proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,7 @@ public function pathMatch($allowedRefererPath, $refererPath)

public function endsWith($haystack, $needle) {
// search forward starting from end minus needle length characters
return $needle === "" || (($temp = strlen($haystack) - strlen($needle)) >= 0 && strpos($haystack, $needle, $temp) !== FALSE);
return $needle === "" || (($temp = strlen($haystack) - strlen($needle)) >= 0 && strpos($haystack, $needle, $temp) !== false);
}

public function checkAllowedReferer(){
Expand Down