Tidy codestyle - spaces between parenthesis and curly braces

This commit is contained in:
Marcus Hill
2023-01-21 17:09:39 +00:00
parent 7f3ec8ccda
commit 2c3ebb3bbb
164 changed files with 2156 additions and 2156 deletions

View File

@@ -6,13 +6,13 @@ function roundUpToNearestMultiple($n, $increment = 1000)
return (int) ($increment * ceil($n / $increment));
}
if(isset($_GET['year'])){
if (isset($_GET['year'])) {
$year = intval($_GET['year']);
}else{
$year = date('Y');
}
if(isset($_GET['year'])){
if (isset($_GET['year'])) {
$year = intval($_GET['year']);
}else{
$year = date('Y');
@@ -36,10 +36,10 @@ $sql_categories = mysqli_query($mysqli,"SELECT * FROM categories WHERE category_
<select onchange="this.form.submit()" class="form-control" name="year">
<?php
while($row = mysqli_fetch_array($sql_payment_years)){
while ($row = mysqli_fetch_array($sql_payment_years)) {
$payment_year = $row['payment_year'];
?>
<option <?php if($year == $payment_year){ ?> selected <?php } ?> > <?php echo $payment_year; ?></option>
<option <?php if ($year == $payment_year) { ?> selected <?php } ?> > <?php echo $payment_year; ?></option>
<?php
}
@@ -72,7 +72,7 @@ $sql_categories = mysqli_query($mysqli,"SELECT * FROM categories WHERE category_
</thead>
<tbody>
<?php
while($row = mysqli_fetch_array($sql_categories)){
while ($row = mysqli_fetch_array($sql_categories)) {
$category_id = $row['category_id'];
$category_name = htmlentities($row['category_name']);
@@ -189,7 +189,7 @@ var myLineChart = new Chart(ctx, {
$income_for_month = $payments_for_month + $revenues_for_month;
if($income_for_month > 0 && $income_for_month > $largest_income_month){
if ($income_for_month > 0 && $income_for_month > $largest_income_month) {
$largest_income_month = $income_for_month;
}