Skip to content

Commit 831747f

Browse files
authored
Merge pull request #9 from pratiksh404/analysis-xg0B43
Apply fixes from StyleCI
2 parents cd0dd37 + e501aa4 commit 831747f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/Services/NepaliDate.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -190,24 +190,24 @@ public function create(Carbon $date)
190190

191191
public function toBS()
192192
{
193-
return $this->nepaliYear . '-' . sprintf('%02d', $this->nepaliMonth) . '-' . sprintf('%02d', $this->nepaliDay);
193+
return $this->nepaliYear.'-'.sprintf('%02d', $this->nepaliMonth).'-'.sprintf('%02d', $this->nepaliDay);
194194
}
195195

196196
public function toFormattedBSDate()
197197
{
198-
return $this->nepaliDay . ' ' .
199-
$this->formattedBSMonth($this->nepaliMonth) . ' ' .
200-
$this->nepaliYear . ',' .
201-
' ' .
198+
return $this->nepaliDay.' '.
199+
$this->formattedBSMonth($this->nepaliMonth).' '.
200+
$this->nepaliYear.','.
201+
' '.
202202
$this->formattedBSDateOfWeek($this->dayOfWeek);
203203
}
204204

205205
public function toFormattedNepaliDate()
206206
{
207-
return $this->formattedNepaliNumber($this->nepaliDay) . ' ' .
208-
$this->formattedNepaliMonth($this->nepaliMonth) . ' ' .
209-
$this->formattedNepaliNumber($this->nepaliYear) . ',' .
210-
' ' .
207+
return $this->formattedNepaliNumber($this->nepaliDay).' '.
208+
$this->formattedNepaliMonth($this->nepaliMonth).' '.
209+
$this->formattedNepaliNumber($this->nepaliYear).','.
210+
' '.
211211
$this->formattedNepaliDateOfWeek($this->dayOfWeek);
212212
}
213213

@@ -225,7 +225,7 @@ public function toDetailBS()
225225
{
226226
$bs_array = $this->toBSArray();
227227
$to_detail_bs = null;
228-
if (!is_null($bs_array)) {
228+
if (! is_null($bs_array)) {
229229
if (is_array($bs_array)) {
230230
if (count($bs_array) > 0) {
231231
$to_detail_bs = json_decode(json_encode($bs_array));

0 commit comments

Comments
 (0)