diff --git a/src/Services/NepaliDate.php b/src/Services/NepaliDate.php index 8e68e5e..ddcec58 100644 --- a/src/Services/NepaliDate.php +++ b/src/Services/NepaliDate.php @@ -190,24 +190,24 @@ public function create(Carbon $date) public function toBS() { - return $this->nepaliYear . '-' . sprintf('%02d', $this->nepaliMonth) . '-' . $this->nepaliDay; + return $this->nepaliYear.'-'.sprintf('%02d', $this->nepaliMonth).'-'.$this->nepaliDay; } public function toFormattedBSDate() { - return $this->nepaliDay . ' ' . - $this->formattedBSMonth($this->nepaliMonth) . ' ' . - $this->nepaliYear . ',' . - ' ' . + return $this->nepaliDay.' '. + $this->formattedBSMonth($this->nepaliMonth).' '. + $this->nepaliYear.','. + ' '. $this->formattedBSDateOfWeek($this->dayOfWeek); } public function toFormattedNepaliDate() { - return $this->formattedNepaliNumber($this->nepaliDay) . ' ' . - $this->formattedNepaliMonth($this->nepaliMonth) . ' ' . - $this->formattedNepaliNumber($this->nepaliYear) . ',' . - ' ' . + return $this->formattedNepaliNumber($this->nepaliDay).' '. + $this->formattedNepaliMonth($this->nepaliMonth).' '. + $this->formattedNepaliNumber($this->nepaliYear).','. + ' '. $this->formattedNepaliDateOfWeek($this->dayOfWeek); } @@ -225,7 +225,7 @@ public function toDetailBS() { $bs_array = $this->toBSArray(); $to_detail_bs = null; - if (!is_null($bs_array)) { + if (! is_null($bs_array)) { if (is_array($bs_array)) { if (count($bs_array) > 0) { $to_detail_bs = json_decode(json_encode($bs_array));