Formatting

This commit is contained in:
Nabeel Shahzad
2019-05-12 18:05:36 -05:00
parent dbd7c5e90b
commit 2ca1f33e68
4 changed files with 32 additions and 13 deletions

View File

@@ -113,7 +113,9 @@ class GeoService extends Service
if ($size === 0) {
continue;
} elseif ($size === 1) {
}
if ($size === 1) {
$point = $points[0];
Log::debug('name: '.$point->id.' - '.$point->lat.'x'.$point->lon);
$coords[] = $point;

View File

@@ -276,23 +276,28 @@ class PirepService extends Service
if ($pirep->state === PirepState::PENDING) {
if ($new_state === PirepState::ACCEPTED) {
return $this->accept($pirep);
} elseif ($new_state === PirepState::REJECTED) {
}
if ($new_state === PirepState::REJECTED) {
return $this->reject($pirep);
}
return $pirep;
} /*
}
/*
* Move from a ACCEPTED to REJECTED status
*/
elseif ($pirep->state === PirepState::ACCEPTED) {
if ($pirep->state === PirepState::ACCEPTED) {
$pirep = $this->reject($pirep);
return $pirep;
} /*
}
/*
* Move from REJECTED to ACCEPTED
*/
elseif ($pirep->state === PirepState::REJECTED) {
if ($pirep->state === PirepState::REJECTED) {
$pirep = $this->accept($pirep);
return $pirep;
}