Total Complexity | 6 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 5 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
5 | class LaravelEventsCalendar |
||
6 | { |
||
7 | /***************************************************************************/ |
||
8 | |||
9 | /** |
||
10 | * Format a date from datepicker (d/m/Y) to a format ready to be stored on DB (Y-m-d). |
||
11 | * If the date picker date is null return today's date. |
||
12 | * the PARAM is a date in the d/m/Y format - the RETURN is a date in the Y-m-d format. |
||
13 | * If $todaysDateIfNull = 1, when the date is null return the date of today. |
||
14 | * |
||
15 | * @param string $DatePickerDate |
||
16 | * @param bool $todaysDateIfNull |
||
17 | * @return string $ret |
||
18 | */ |
||
19 | 1 | public static function formatDatePickerDateForMysql($DatePickerDate, $todaysDateIfNull = 0) |
|
32 | } |
||
33 | |||
34 | /***************************************************************************/ |
||
35 | |||
36 | /** |
||
37 | * It returns a string that is composed by the array values separated by a comma |
||
38 | * |
||
39 | * @param array $array |
||
40 | * @return string $ret |
||
41 | */ |
||
42 | 3 | public static function getStringFromArraySeparatedByComma($array) |
|
60 |