Passed
Push — main ( ab5893...8a1186 )
by PRATIK
05:09 queued 02:21
created
src/Helpers/helper.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -4,55 +4,55 @@
 block discarded – undo
4 4
 use Pratiksh\Nepalidate\Services\EnglishDate;
5 5
 use Pratiksh\Nepalidate\Services\NepaliDate;
6 6
 
7
-if (! function_exists('toFormattedBSDate')) {
7
+if (!function_exists('toFormattedBSDate')) {
8 8
     function toFormattedBSDate(Carbon $date)
9 9
     {
10 10
         return NepaliDate::create($date)->toFormattedEnglishBSDate();
11 11
     }
12 12
 }
13 13
 
14
-if (! function_exists('toFormattedNepaliDate')) {
14
+if (!function_exists('toFormattedNepaliDate')) {
15 15
     function toFormattedNepaliDate(Carbon $date)
16 16
     {
17 17
         return NepaliDate::create($date)->toFormattedNepaliBSDate();
18 18
     }
19 19
 }
20 20
 
21
-if (! function_exists('toAD')) {
21
+if (!function_exists('toAD')) {
22 22
     function toAD(string $date)
23 23
     {
24 24
         return EnglishDate::create($date)->toCarbon();
25 25
     }
26 26
 }
27 27
 
28
-if (! function_exists('toBS')) {
28
+if (!function_exists('toBS')) {
29 29
     function toBS(Carbon $date)
30 30
     {
31 31
         return NepaliDate::create($date)->toBS();
32 32
     }
33 33
 }
34 34
 
35
-if (! function_exists('toFormattedEnglishBSDate')) {
35
+if (!function_exists('toFormattedEnglishBSDate')) {
36 36
     function toFormattedEnglishBSDate(Carbon $date)
37 37
     {
38 38
         return NepaliDate::create($date)->toFormattedEnglishBSDate();
39 39
     }
40 40
 }
41 41
 
42
-if (! function_exists('toFormattedNepaliBSDate')) {
42
+if (!function_exists('toFormattedNepaliBSDate')) {
43 43
     function toFormattedNepaliBSDate(Carbon $date)
44 44
     {
45 45
         return NepaliDate::create($date)->toFormattedNepaliBSDate();
46 46
     }
47 47
 }
48 48
 
49
-if (! function_exists('toDetailBS')) {
49
+if (!function_exists('toDetailBS')) {
50 50
     function toDetailBS(Carbon $date)
51 51
     {
52 52
         $bs_array = NepaliDate::create($date)->toBSArray();
53 53
         $to_detail_bs = null;
54 54
 
55
-        if (! empty($bs_array) && is_array($bs_array)) {
55
+        if (!empty($bs_array) && is_array($bs_array)) {
56 56
             $json = json_encode($bs_array);
57 57
             if ($json !== false) {
58 58
                 $to_detail_bs = json_decode($json);
Please login to merge, or discard this patch.