Style fixes: Capitalization of "true" and "false"

Use "true" instead of "TRUE" and "false" instead of "FALSE" or "False".

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2014-02-06 09:15:16 +01:00
parent b8a31dcc72
commit 165bcba54e
4 changed files with 15 additions and 15 deletions

View file

@ -64,11 +64,11 @@ if (check_token()) {
} elseif (current_action("do_Adopt")) { } elseif (current_action("do_Adopt")) {
list($ret, $output) = pkg_adopt($atype, $ids, true); list($ret, $output) = pkg_adopt($atype, $ids, true);
} elseif (current_action("do_Disown")) { } elseif (current_action("do_Disown")) {
list($ret, $output) = pkg_adopt($atype, $ids, False); list($ret, $output) = pkg_adopt($atype, $ids, false);
} elseif (current_action("do_Vote")) { } elseif (current_action("do_Vote")) {
list($ret, $output) = pkg_vote($atype, $ids, true); list($ret, $output) = pkg_vote($atype, $ids, true);
} elseif (current_action("do_UnVote")) { } elseif (current_action("do_UnVote")) {
list($ret, $output) = pkg_vote($atype, $ids, False); list($ret, $output) = pkg_vote($atype, $ids, false);
} elseif (current_action("do_Delete")) { } elseif (current_action("do_Delete")) {
if (isset($_POST['confirm_Delete'])) { if (isset($_POST['confirm_Delete'])) {
if (!isset($_POST['merge_Into']) || empty($_POST['merge_Into'])) { if (!isset($_POST['merge_Into']) || empty($_POST['merge_Into'])) {
@ -92,7 +92,7 @@ if (check_token()) {
} elseif (current_action("do_Notify")) { } elseif (current_action("do_Notify")) {
list($ret, $output) = pkg_notify($atype, $ids); list($ret, $output) = pkg_notify($atype, $ids);
} elseif (current_action("do_UnNotify")) { } elseif (current_action("do_UnNotify")) {
list($ret, $output) = pkg_notify($atype, $ids, False); list($ret, $output) = pkg_notify($atype, $ids, false);
} elseif (current_action("do_DeleteComment")) { } elseif (current_action("do_DeleteComment")) {
list($ret, $output) = pkg_delete_comment($atype); list($ret, $output) = pkg_delete_comment($atype);
} elseif (current_action("do_ChangeCategory")) { } elseif (current_action("do_ChangeCategory")) {

View file

@ -1566,7 +1566,7 @@ class Archive_Tar extends PEAR
while (strlen($v_binary_data = $this->_readBlock()) != 0) while (strlen($v_binary_data = $this->_readBlock()) != 0)
{ {
$v_extract_file = FALSE; $v_extract_file = false;
$v_extraction_stopped = 0; $v_extraction_stopped = 0;
if (!$this->_readHeader($v_binary_data, $v_header)) if (!$this->_readHeader($v_binary_data, $v_header))

View file

@ -410,7 +410,7 @@ class gettext_reader {
function pgettext($context, $msgid) { function pgettext($context, $msgid) {
$key = $context . chr(4) . $msgid; $key = $context . chr(4) . $msgid;
$ret = $this->translate($key); $ret = $this->translate($key);
if (strpos($ret, "\004") !== FALSE) { if (strpos($ret, "\004") !== false) {
return $msgid; return $msgid;
} else { } else {
return $ret; return $ret;
@ -420,7 +420,7 @@ class gettext_reader {
function npgettext($context, $singular, $plural, $number) { function npgettext($context, $singular, $plural, $number) {
$key = $context . chr(4) . $singular; $key = $context . chr(4) . $singular;
$ret = $this->ngettext($key, $plural, $number); $ret = $this->ngettext($key, $plural, $number);
if (strpos($ret, "\004") !== FALSE) { if (strpos($ret, "\004") !== false) {
return $singular; return $singular;
} else { } else {
return $ret; return $ret;

View file

@ -20,7 +20,7 @@ function canDeleteComment($comment_id=0, $atype="", $uid=0) {
} }
if ($atype == "Trusted User" || $atype == "Developer") { if ($atype == "Trusted User" || $atype == "Developer") {
# A TU/Dev can delete any comment # A TU/Dev can delete any comment
return TRUE; return true;
} }
$dbh = DB::connect(); $dbh = DB::connect();
$q = "SELECT COUNT(ID) AS CNT "; $q = "SELECT COUNT(ID) AS CNT ";
@ -31,10 +31,10 @@ function canDeleteComment($comment_id=0, $atype="", $uid=0) {
if ($result != NULL) { if ($result != NULL) {
$row = $result->fetch(PDO::FETCH_ASSOC); $row = $result->fetch(PDO::FETCH_ASSOC);
if ($row['CNT'] > 0) { if ($row['CNT'] > 0) {
return TRUE; return true;
} }
} }
return FALSE; return false;
} }
/** /**
@ -55,12 +55,12 @@ function canDeleteCommentArray($comment, $atype="", $uid=0) {
return false; return false;
} elseif ($atype == "Trusted User" || $atype == "Developer") { } elseif ($atype == "Trusted User" || $atype == "Developer") {
# A TU/Dev can delete any comment # A TU/Dev can delete any comment
return TRUE; return true;
} else if ($comment['UsersID'] == $uid) { } else if ($comment['UsersID'] == $uid) {
# User's own comment # User's own comment
return TRUE; return true;
} }
return FALSE; return false;
} }
/** /**
@ -76,10 +76,10 @@ function canDeleteCommentArray($comment, $atype="", $uid=0) {
function canSubmitBlacklisted($atype = "") { function canSubmitBlacklisted($atype = "") {
if ($atype == "Trusted User" || $atype == "Developer") { if ($atype == "Trusted User" || $atype == "Developer") {
# Only TUs/Devs can submit blacklisted packages. # Only TUs/Devs can submit blacklisted packages.
return TRUE; return true;
} }
else { else {
return FALSE; return false;
} }
} }
@ -1194,7 +1194,7 @@ function pkg_notify ($atype, $ids, $action=true) {
} }
if ($first) if ($first)
$first = False; $first = false;
else else
$output .= ", "; $output .= ", ";