From e501aa44d6b4eb875157575cfa079201721f7b63 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Fri, 17 Jun 2022 04:52:09 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Services/NepaliDate.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Services/NepaliDate.php b/src/Services/NepaliDate.php index d531f32..cba72d4 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) . '-' . sprintf('%02d', $this->nepaliDay); + return $this->nepaliYear.'-'.sprintf('%02d', $this->nepaliMonth).'-'.sprintf('%02d', $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));