Some refactoring.

This commit is contained in:
James Cole
2018-06-21 18:58:27 +02:00
parent 1d162edb59
commit 50b599b1a9
6 changed files with 9 additions and 17 deletions

View File

@@ -230,7 +230,7 @@ class RuleController extends Controller
}
$hasOldInput = null !== $request->old('_token');
$preFilled = [
$preFilled = [
'active' => $hasOldInput ? (bool)$request->old('active') : $rule->active,
'stop_processing' => $hasOldInput ? (bool)$request->old('stop_processing') : $rule->stop_processing,
'strict' => $hasOldInput ? (bool)$request->old('strict') : $rule->strict,