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 17, 2022
1 parent cd0dd37 commit e501aa4
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) . '-' . 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);
}

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 e501aa4

Please sign in to comment.