Skip to content

Commit

Permalink
Update meta
Browse files Browse the repository at this point in the history
  • Loading branch information
meezaan committed Jul 22, 2020
1 parent cce58e4 commit 40e8690
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/PrayerTimes/PrayerTimes.php
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,6 @@ public function getMeta(): array
'timezone' => ($this->date->getTimezone())->getName(),
'method' => $this->methods[$this->method],
'latitudeAdjustmentMethod' => $this->latitudeAdjustmentMethod,
'shafaq' => $this->shafaq,
'midnightMode' => $this->midnightMode,
'school' => $this->school,
'offset' => $this->offset,
Expand All @@ -789,8 +788,7 @@ public function getMeta(): array
}
if ($this->method == Method::METHOD_MOONSIGHTING) {
$result['latitudeAdjustmentMethod'] = self::LATITUDE_ADJUSTMENT_METHOD_NONE;
} else {
unset($result['shafaq']);
$result['method']['params']['shafaq'] = $this->shafaq;
}

return $result;
Expand Down

0 comments on commit 40e8690

Please sign in to comment.