This commit is contained in:
David Bomba 2023-10-25 20:44:34 +11:00
parent 1edb890b7f
commit 184adcad8f
2 changed files with 4 additions and 4 deletions

View File

@ -65,12 +65,12 @@ class StoreTaskRequest extends Request
foreach ($values as $k) {
if (!is_int($k[0]) || !is_int($k[1])) {
$fail('The '.$attribute.' - '.print_r($k, 1).' is invalid. Unix timestamps only.');
return $fail('The '.$attribute.' - '.print_r($k, 1).' is invalid. Unix timestamps only.');
}
}
if (!$this->checkTimeLog($values)) {
$fail('Please correct overlapping values');
return $fail('Please correct overlapping values');
}
}];

View File

@ -73,12 +73,12 @@ class UpdateTaskRequest extends Request
foreach ($values as $k) {
if (!is_int($k[0]) || !is_int($k[1])) {
$fail('The '.$attribute.' - '.print_r($k, 1).' is invalid. Unix timestamps only.');
return $fail('The '.$attribute.' - '.print_r($k, 1).' is invalid. Unix timestamps only.');
}
}
if (!$this->checkTimeLog($values)) {
$fail('Please correct overlapping values');
return $fail('Please correct overlapping values');
}
}];