Reformat various code.

This commit is contained in:
James Cole
2022-03-29 15:10:05 +02:00
parent 60786461a9
commit 123693096c
134 changed files with 336 additions and 141 deletions

View File

@@ -96,7 +96,7 @@ class CreateController extends Controller
$operators = $search->getOperators()->toArray();
if ('' !== $words) {
session()->flash('warning', trans('firefly.rule_from_search_words', ['string' => $words]));
array_push($operators, ['type' => 'description_contains', 'value' => $words]);
$operators[] = ['type' => 'description_contains', 'value' => $words];
}
$oldTriggers = $this->parseFromOperators($operators);
}
@@ -236,8 +236,7 @@ class CreateController extends Controller
}
/**
* @param Rule $rule
*
* @param Request $request
* @return JsonResponse
*/
public function duplicate(Request $request): JsonResponse