mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 04:03:26 +00:00
Reformat various code.
This commit is contained in:
@@ -94,7 +94,7 @@ class GenericRequest extends FormRequest
|
||||
$array = $this->get('accounts');
|
||||
if (is_array($array)) {
|
||||
foreach ($array as $accountId) {
|
||||
$accountId = (int)$accountId;
|
||||
$accountId = (int) $accountId;
|
||||
$account = $repository->find($accountId);
|
||||
if (null !== $account) {
|
||||
$this->accounts->push($account);
|
||||
@@ -126,7 +126,7 @@ class GenericRequest extends FormRequest
|
||||
$array = $this->get('bills');
|
||||
if (is_array($array)) {
|
||||
foreach ($array as $billId) {
|
||||
$billId = (int)$billId;
|
||||
$billId = (int) $billId;
|
||||
$bill = $repository->find($billId);
|
||||
if (null !== $billId) {
|
||||
$this->bills->push($bill);
|
||||
@@ -158,7 +158,7 @@ class GenericRequest extends FormRequest
|
||||
$array = $this->get('budgets');
|
||||
if (is_array($array)) {
|
||||
foreach ($array as $budgetId) {
|
||||
$budgetId = (int)$budgetId;
|
||||
$budgetId = (int) $budgetId;
|
||||
$budget = $repository->find($budgetId);
|
||||
if (null !== $budgetId) {
|
||||
$this->budgets->push($budget);
|
||||
@@ -190,7 +190,7 @@ class GenericRequest extends FormRequest
|
||||
$array = $this->get('categories');
|
||||
if (is_array($array)) {
|
||||
foreach ($array as $categoryId) {
|
||||
$categoryId = (int)$categoryId;
|
||||
$categoryId = (int) $categoryId;
|
||||
$category = $repository->find($categoryId);
|
||||
if (null !== $categoryId) {
|
||||
$this->categories->push($category);
|
||||
@@ -280,7 +280,7 @@ class GenericRequest extends FormRequest
|
||||
$array = $this->get('tags');
|
||||
if (is_array($array)) {
|
||||
foreach ($array as $tagId) {
|
||||
$tagId = (int)$tagId;
|
||||
$tagId = (int) $tagId;
|
||||
$tag = $repository->find($tagId);
|
||||
if (null !== $tagId) {
|
||||
$this->tags->push($tag);
|
||||
|
Reference in New Issue
Block a user