reformatted code due to guidelines

This commit is contained in:
jwacalex 2018-12-22 02:13:02 +01:00 committed by msquare
parent 60a9c15454
commit 8c5b52aa11
1 changed files with 25 additions and 25 deletions

View File

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