Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Jun 7, 2022
1 parent 59f2056 commit 54014c6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Services/NepaliDate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -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));
Expand Down

0 comments on commit 54014c6

Please sign in to comment.