Passed
Push — main ( cd0dd3...831747 )
by PRATIK
14:18 queued 11:49
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   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@
 block discarded – undo
225 225
     {
226 226
         $bs_array = $this->toBSArray();
227 227
         $to_detail_bs = null;
228
-        if (! is_null($bs_array)) {
228
+        if (!is_null($bs_array)) {
229 229
             if (is_array($bs_array)) {
230 230
                 if (count($bs_array) > 0) {
231 231
                     $to_detail_bs = json_decode(json_encode($bs_array));
Please login to merge, or discard this patch.
src/Helpers/NepaliDateHelper.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 use Carbon\Carbon;
4 4
 use Pratiksh\Nepalidate\Services\NepaliDate;
5 5
 
6
-if (! function_exists('nepaliDate')) {
6
+if (!function_exists('nepaliDate')) {
7 7
     function nepaliDate(Carbon $date)
8 8
     {
9 9
         $mode = config('nepalidate.mode', 1);
@@ -19,33 +19,33 @@  discard block
 block discarded – undo
19 19
     }
20 20
 }
21 21
 
22
-if (! function_exists('toBS')) {
22
+if (!function_exists('toBS')) {
23 23
     function toBS(Carbon $date)
24 24
     {
25 25
         return (new NepaliDate())->create($date)->toBS();
26 26
     }
27 27
 }
28 28
 
29
-if (! function_exists('toFormattedBSDate')) {
29
+if (!function_exists('toFormattedBSDate')) {
30 30
     function toFormattedBSDate(Carbon $date)
31 31
     {
32 32
         return (new NepaliDate())->create($date)->toFormattedBSDate();
33 33
     }
34 34
 }
35 35
 
36
-if (! function_exists('toFormattedNepaliDate')) {
36
+if (!function_exists('toFormattedNepaliDate')) {
37 37
     function toFormattedNepaliDate(Carbon $date)
38 38
     {
39 39
         return (new NepaliDate())->create($date)->toFormattedNepaliDate();
40 40
     }
41 41
 }
42 42
 
43
-if (! function_exists('toDetailBS')) {
43
+if (!function_exists('toDetailBS')) {
44 44
     function toDetailBS(Carbon $date)
45 45
     {
46 46
         $bs_array = (new NepaliDate())->create($date)->toBSArray();
47 47
         $to_detail_bs = null;
48
-        if (! is_null($bs_array)) {
48
+        if (!is_null($bs_array)) {
49 49
             if (is_array($bs_array)) {
50 50
                 if (count($bs_array) > 0) {
51 51
                     $to_detail_bs = json_decode(json_encode($bs_array));
Please login to merge, or discard this patch.