Skip to content

Commit

Permalink
Merge pull request #49 from MathiasReker/unary-operator-spaces
Browse files Browse the repository at this point in the history
Unary operator spaces
  • Loading branch information
PierreRambaud authored Feb 14, 2019
2 parents ca1e658 + a6b57c5 commit 9d6839d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions controllers/admin/AdminGamificationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public function processLevelAndBadgeValidation($ids_badge)
foreach ($ids_badge as $id) {
$badge = new Badge((int)$id);
if (($badge->scoring + $current_level_percent) >= 100) {
$current_level ++;
$current_level++;
$current_level_percent = $badge->scoring + $current_level_percent - 100;
} else {
$current_level_percent += $badge->scoring;
Expand All @@ -265,7 +265,7 @@ public function processLevelAndBadgeValidation($ids_badge)
$this->processLevelAndBadgeValidation($new_ids_badge);
}

$nbr_notif ++;
$nbr_notif++;
$not_viewed_badge[] = $badge->id;
}

Expand All @@ -287,7 +287,7 @@ public function processInstallCalculation()
$cond->processCalculation();
unset($cond);
}
$group_position ++;
$group_position++;
} while (count($condition_ids));
}

Expand Down

0 comments on commit 9d6839d

Please # to comment.