Skip to content

Commit 76173ae

Browse files
Update awards.md (#24)
* Update awards.md Landing rate is negative value * Update awards.md
1 parent a6464cc commit 76173ae

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/developers/awards.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,9 @@ public function check($landing_rate = null): bool
9090
{
9191
// Have the default landing rate if it hasn't been set in the admin
9292
// It's best to make sure you set a default value if you're using it
93-
if(!$landing_rate) {
94-
$landing_rate = 200;
95-
}
93+
$landing_rate ??= -200;
9694

97-
if($this->user->last_pirep->landing_rate <= (int) $landing_rate) {
95+
if($this->user->last_pirep->landing_rate >= (int) $landing_rate) {
9896
return true;
9997
}
10098

0 commit comments

Comments
 (0)