Passed
Push — main ( 388607...d45280 )
by PRATIK
03:39
created
src/Providers/NepalidateServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Services/NepaliDate.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -190,24 +190,24 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.