We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -3,11 +3,11 @@ discard block |
||
3 | 3 | <?php |
4 | 4 | // if the column has been cast to Carbon or Date (using attribute casting) |
5 | 5 | // get the value as a date string |
6 | - if (! function_exists('formatDate')) { |
|
6 | + if (!function_exists('formatDate')) { |
|
7 | 7 | function formatDate($entry, $dateFieldName) |
8 | 8 | { |
9 | 9 | $formattedDate = null; |
10 | - if (isset($entry) && ! empty($entry->{$dateFieldName})) { |
|
10 | + if (isset($entry) && !empty($entry->{$dateFieldName})) { |
|
11 | 11 | $dateField = $entry->{$dateFieldName}; |
12 | 12 | if ($dateField instanceof \Carbon\CarbonInterface) { |
13 | 13 | $formattedDate = $dateField->format('Y-m-d H:i:s'); |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | } |
21 | 21 | } |
22 | 22 | if (isset($field['value'])) { |
23 | - if (isset($entry) && ! is_array($field['value'])) { |
|
23 | + if (isset($entry) && !is_array($field['value'])) { |
|
24 | 24 | $start_value = formatDate($entry, $field['name'][0]); |
25 | 25 | $end_value = formatDate($entry, $field['name'][1]); |
26 | 26 | } elseif (is_array($field['value'])) { |