Code cleanup.

This commit is contained in:
James Cole
2021-03-28 11:46:23 +02:00
parent 2c575f3ca5
commit b5eeacc128
124 changed files with 1568 additions and 1384 deletions

View File

@@ -70,8 +70,8 @@ class EditController extends Controller
*/
public function down(RuleGroup $ruleGroup)
{
$maxOrder =$this->repository->maxOrder();
$order = (int)$ruleGroup->order;
$maxOrder = $this->repository->maxOrder();
$order = (int)$ruleGroup->order;
if ($order < $maxOrder) {
$newOrder = $order + 1;
$this->repository->setOrder($ruleGroup, $newOrder);
@@ -79,6 +79,7 @@ class EditController extends Controller
return redirect(route('rules.index'));
}
/**
* Edit a rule group.
*