From f7a44347cb0e951982157b2a0006a5a3da81a60a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= <marcosgdf@gmail.com> Date: Sun, 12 Oct 2014 00:23:19 +0200 Subject: [PATCH] Lowecased booleans to fit with PSR-2 specification. --- htdocs/accountancy/admin/account.php | 2 +- htdocs/accountancy/admin/export.php | 2 +- htdocs/accountancy/admin/importaccounts.php | 2 +- htdocs/accountancy/admin/index.php | 4 ++-- htdocs/accountancy/admin/productaccount.php | 2 +- htdocs/commande/customer.php | 2 +- htdocs/commande/index.php | 8 ++++---- htdocs/commande/orderstoinvoice.php | 2 +- htdocs/compta/clients.php | 2 +- htdocs/compta/facture/fiche-rec.php | 6 +++--- htdocs/compta/facture/impayees.php | 2 +- htdocs/compta/facture/list.php | 2 +- htdocs/compta/facture/prelevement.php | 2 +- htdocs/compta/index.php | 4 ++-- htdocs/compta/paiement.php | 4 ++-- htdocs/compta/paiement_charge.php | 2 +- 16 files changed, 24 insertions(+), 24 deletions(-) diff --git a/htdocs/accountancy/admin/account.php b/htdocs/accountancy/admin/account.php index 0c929ef5de5..3b20885b897 100644 --- a/htdocs/accountancy/admin/account.php +++ b/htdocs/accountancy/admin/account.php @@ -160,7 +160,7 @@ if ($result) { print '</td>'; print '</tr>'; - $var = True; + $var = true; while ( $i < min($num, $limit) ) { $obj = $db->fetch_object($resql); diff --git a/htdocs/accountancy/admin/export.php b/htdocs/accountancy/admin/export.php index ca7e5f84e07..dc8f50241a1 100644 --- a/htdocs/accountancy/admin/export.php +++ b/htdocs/accountancy/admin/export.php @@ -99,7 +99,7 @@ print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">' print '<input type="hidden" name="action" value="update">'; print '<table class="noborder" width="100%">'; -$var = True; +$var = true; print '<tr class="liste_titre">'; print '<td colspan="2">' . $langs->trans("Modelcsv") . '</td>'; diff --git a/htdocs/accountancy/admin/importaccounts.php b/htdocs/accountancy/admin/importaccounts.php index b350aa8e590..9e5c59f4555 100644 --- a/htdocs/accountancy/admin/importaccounts.php +++ b/htdocs/accountancy/admin/importaccounts.php @@ -135,7 +135,7 @@ if ($result) { print '<form action="' . $_SERVER["PHP_SELF"] . '" method="POST">' . "\n"; print '<input type="hidden" name="action" value="import">'; - $var = True; + $var = true; while ( $i < min($num_lines, $limit) ) { $objp = $db->fetch_object($result); $var = ! $var; diff --git a/htdocs/accountancy/admin/index.php b/htdocs/accountancy/admin/index.php index 8e548f8992e..e72df6a0431 100644 --- a/htdocs/accountancy/admin/index.php +++ b/htdocs/accountancy/admin/index.php @@ -191,7 +191,7 @@ print "<br>\n"; * Define Chart of accounts */ print '<table class="noborder" width="100%">'; -$var = True; +$var = true; print '<tr class="liste_titre">'; print '<td colspan="3">'; @@ -211,7 +211,7 @@ $sql .= " AND fk_pays = " . $mysoc->country_id; dol_syslog('accountancy/admin/index.php:: $sql=' . $sql); $resql = $db->query($sql); -$var = True; +$var = true; if ($resql) { $num = $db->num_rows($resql); diff --git a/htdocs/accountancy/admin/productaccount.php b/htdocs/accountancy/admin/productaccount.php index 5c1cba946ee..402ff72ed84 100644 --- a/htdocs/accountancy/admin/productaccount.php +++ b/htdocs/accountancy/admin/productaccount.php @@ -89,7 +89,7 @@ if ($resql) { print '<td align="left">' . $langs->trans("Accountancy_code_sell") . '</td>'; print '<td align="left">' . $langs->trans("Accountancy_code_sell_suggest") . '</td>'; - $var = True; + $var = true; while ( $i < min($num, 250) ) { $obj = $db->fetch_object($resql); diff --git a/htdocs/commande/customer.php b/htdocs/commande/customer.php index f40277ea34a..333ce5f7908 100644 --- a/htdocs/commande/customer.php +++ b/htdocs/commande/customer.php @@ -146,7 +146,7 @@ if ($resql) print '</td>'; print "</tr>\n"; - $var=True; + $var=true; while ($i < min($num,$conf->liste_limit)) { diff --git a/htdocs/commande/index.php b/htdocs/commande/index.php index b7d9be05529..0d2815a6d67 100644 --- a/htdocs/commande/index.php +++ b/htdocs/commande/index.php @@ -187,7 +187,7 @@ if (! empty($conf->commande->enabled)) if ($num) { $i = 0; - $var = True; + $var = true; while ($i < $num) { $var=!$var; @@ -238,7 +238,7 @@ if ($resql) if ($num) { $i = 0; - $var = True; + $var = true; while ($i < $num) { $var=!$var; @@ -308,7 +308,7 @@ if (! empty($conf->commande->enabled)) if ($num) { $i = 0; - $var = True; + $var = true; while ($i < $num) { $var=!$var; @@ -379,7 +379,7 @@ if (! empty($conf->commande->enabled)) if ($num) { $i = 0; - $var = True; + $var = true; while ($i < $num) { $var=!$var; diff --git a/htdocs/commande/orderstoinvoice.php b/htdocs/commande/orderstoinvoice.php index 49824a7f6cb..1009b030210 100644 --- a/htdocs/commande/orderstoinvoice.php +++ b/htdocs/commande/orderstoinvoice.php @@ -622,7 +622,7 @@ if (($action != 'create' && $action != 'add') || !$error) print '</form>'; print '<form name="orders2invoice" action="orderstoinvoice.php" method="GET">'; - $var=True; + $var=true; $generic_commande = new Commande($db); while ($i < $num) diff --git a/htdocs/compta/clients.php b/htdocs/compta/clients.php index 528ed14e849..14751d308c4 100644 --- a/htdocs/compta/clients.php +++ b/htdocs/compta/clients.php @@ -177,7 +177,7 @@ if ($resql) print '</td>'; print "</tr>\n"; - $var=True; + $var=true; while ($i < min($num,$conf->liste_limit)) { diff --git a/htdocs/compta/facture/fiche-rec.php b/htdocs/compta/facture/fiche-rec.php index 02674b59745..55ef0a5ef80 100644 --- a/htdocs/compta/facture/fiche-rec.php +++ b/htdocs/compta/facture/fiche-rec.php @@ -228,7 +228,7 @@ if ($action == 'create') if (empty($conf->global->PRODUIT_MULTIPRICES)) print '<td align="right">'.$langs->trans("CurrentProductPrice").'</td>'; print "</tr>\n"; } - $var=True; + $var=true; while ($i < $num) { $objp = $db->fetch_object($result); @@ -447,7 +447,7 @@ else $num = count($object->lines); $i = 0; - $var=True; + $var=true; while ($i < $num) { $var=!$var; @@ -572,7 +572,7 @@ else if ($num > 0) { - $var=True; + $var=true; while ($i < min($num,$limit)) { $objp = $db->fetch_object($resql); diff --git a/htdocs/compta/facture/impayees.php b/htdocs/compta/facture/impayees.php index d3987bcbad8..ea0d896f5d1 100644 --- a/htdocs/compta/facture/impayees.php +++ b/htdocs/compta/facture/impayees.php @@ -600,7 +600,7 @@ if ($resql) if ($num > 0) { - $var=True; + $var=true; $total_ht=0; $total_tva=0; $total_ttc=0; diff --git a/htdocs/compta/facture/list.php b/htdocs/compta/facture/list.php index 39dcc6b6427..ba27f5659a9 100644 --- a/htdocs/compta/facture/list.php +++ b/htdocs/compta/facture/list.php @@ -333,7 +333,7 @@ if ($resql) if ($num > 0) { - $var=True; + $var=true; $total_ht=0; $total_tva=0; $total_ttc=0; diff --git a/htdocs/compta/facture/prelevement.php b/htdocs/compta/facture/prelevement.php index 4bfa4d81048..48ca10afd2d 100644 --- a/htdocs/compta/facture/prelevement.php +++ b/htdocs/compta/facture/prelevement.php @@ -491,7 +491,7 @@ if ($object->id > 0) print '<td align="center">'.$langs->trans("WithdrawalReceipt").'</td>'; print '<td align="center">'.$langs->trans("User").'</td><td> </td><td> </td>'; print '</tr>'; - $var=True; + $var=true; if ($result_sql) { diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php index 1908b0670ff..fc2943f05e0 100644 --- a/htdocs/compta/index.php +++ b/htdocs/compta/index.php @@ -494,7 +494,7 @@ if (! empty($conf->don->enabled) && $user->rights->societe->lire) print '</tr>'; if ($num) { - $var = True; + $var = true; $total_ttc = $totalam = $total = 0; $var=true; @@ -908,7 +908,7 @@ if ($resql) print '<table class="noborder" width="100%">'; print '<tr class="liste_titre"><td colspan="2">'.$langs->trans("TasksToDo").'</td>'; print "</tr>\n"; - $var = True; + $var = true; $i = 0; while ($i < $db->num_rows($resql)) { diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php index 21b2eb9e154..56278f15c5d 100644 --- a/htdocs/compta/paiement.php +++ b/htdocs/compta/paiement.php @@ -509,7 +509,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie print '<td align="right"> </td>'; print "</tr>\n"; - $var=True; + $var=true; $total=0; $totalrecu=0; $totalrecucreditnote=0; @@ -687,7 +687,7 @@ if (! GETPOST('action')) { $num = $db->num_rows($resql); $i = 0; - $var=True; + $var=true; print_barre_liste($langs->trans('Payments'), $page, $_SERVER["PHP_SELF"],'',$sortfield,$sortorder,'',$num); print '<table class="noborder" width="100%">'; diff --git a/htdocs/compta/paiement_charge.php b/htdocs/compta/paiement_charge.php index a54a0bcd935..7e26fa5789f 100644 --- a/htdocs/compta/paiement_charge.php +++ b/htdocs/compta/paiement_charge.php @@ -253,7 +253,7 @@ if ($_GET["action"] == 'create') print '<td align="center">'.$langs->trans("Amount").'</td>'; print "</tr>\n"; - $var=True; + $var=true; $total=0; $totalrecu=0; -- GitLab