Conditions | 4 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
44 | function toDetailBS(Carbon $date) |
||
45 | { |
||
46 | $bs_array = (new NepaliDate())->create($date)->toBSArray(); |
||
47 | $to_detail_bs = null; |
||
48 | if (!is_null($bs_array)) { |
||
|
|||
49 | if (is_array($bs_array)) { |
||
50 | if (count($bs_array) > 0) { |
||
51 | $to_detail_bs = json_decode(json_encode($bs_array)); |
||
52 | } |
||
53 | } |
||
54 | } |
||
55 | return $to_detail_bs; |
||
56 | } |
||
58 |