@@ -13,7 +13,7 @@ |
||
| 13 | 13 | public function register() |
| 14 | 14 | { |
| 15 | 15 | // Register the main class to use with the facade |
| 16 | - $this->app->singleton('nepalidate', function () { |
|
| 16 | + $this->app->singleton('nepalidate', function() { |
|
| 17 | 17 | return new NepaliDate; |
| 18 | 18 | }); |
| 19 | 19 | } |
@@ -190,24 +190,24 @@ |
||
| 190 | 190 | |
| 191 | 191 | public function toBS() |
| 192 | 192 | { |
| 193 | - return $this->nepaliYear . '-' . $this->nepaliMonth . '-' . $this->nepaliDay; |
|
| 193 | + return $this->nepaliYear.'-'.$this->nepaliMonth.'-'.$this->nepaliDay; |
|
| 194 | 194 | } |
| 195 | 195 | |
| 196 | 196 | public function toFormattedBSDate() |
| 197 | 197 | { |
| 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 | + ' '. |
|
| 202 | 202 | $this->formattedBSDateOfWeek($this->dayOfWeek); |
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | public function toFormattedNepaliDate() |
| 206 | 206 | { |
| 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 | + ' '. |
|
| 211 | 211 | $this->formattedNepaliDateOfWeek($this->dayOfWeek); |
| 212 | 212 | } |
| 213 | 213 | |