reformatted code due to guidelines

main
jwacalex 6 years ago committed by msquare
parent 60a9c15454
commit 8c5b52aa11

@ -217,11 +217,11 @@ function admin_shifts()
$change_index = 0; $change_index = 0;
// Ersten/nächsten passenden Schichtwechsel suchen // Ersten/nächsten passenden Schichtwechsel suchen
foreach ($change_hours as $i => $change_time) { foreach ($change_hours as $i => $change_time) {
if(!preg_match('/\d{2}:\d{2}/',$change_time)) { if (!preg_match('/\d{2}:\d{2}/', $change_time)) {
$change_time = $change_time.":00"; $change_time = $change_time . ":00";
} }
$change_time = explode(':',$change_time); $change_time = explode(':', $change_time);
$change_hour = $change_time[0]; $change_hour = $change_time[0];
$change_minute = $change_time[1]; $change_minute = $change_time[1];
@ -240,12 +240,12 @@ function admin_shifts()
do { do {
$day = parse_date('Y-m-d H:i', date('Y-m-d', $shift_start) . ' 00:00'); $day = parse_date('Y-m-d H:i', date('Y-m-d', $shift_start) . ' 00:00');
$change_time=$change_hours[$change_index]; $change_time = $change_hours[$change_index];
if(!preg_match('/\d{2}:\d{2}/',$change_time)) { if (!preg_match('/\d{2}:\d{2}/', $change_time)) {
$change_time = $change_time.":00"; $change_time = $change_time . ":00";
} }
$change_time = explode(':',$change_time); $change_time = explode(':', $change_time);
$change_hour = $change_time[0]; $change_hour = $change_time[0];
$change_minute = $change_time[1]; $change_minute = $change_time[1];

Loading…
Cancel
Save