Code reordering and reformatting. I should really start employing style CI.

This commit is contained in:
James Cole
2021-09-18 10:26:12 +02:00
parent 9b9d52e99f
commit 4003cea759
344 changed files with 2776 additions and 2605 deletions

View File

@@ -36,7 +36,7 @@ class AccountList implements BinderInterface
/**
* @param string $value
* @param Route $route
* @param Route $route
*
* @return Collection
* @throws NotFoundHttpException

View File

@@ -35,7 +35,7 @@ class BudgetList implements BinderInterface
{
/**
* @param string $value
* @param Route $route
* @param Route $route
*
* @return Collection
* @throws NotFoundHttpException

View File

@@ -51,7 +51,7 @@ class CategoryList implements BinderInterface
$list = array_unique(array_map('\intval', explode(',', $value)));
if (empty($list)) {
throw new NotFoundHttpException;
throw new NotFoundHttpException;
}
/** @var Collection $collection */

View File

@@ -32,12 +32,14 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class DynamicConfigKey
{
public static array $accepted = [
'configuration.is_demo_site',
'configuration.permission_update_check',
'configuration.single_user_mode',
'configuration.last_update_check',
];
public static array $accepted
= [
'configuration.is_demo_site',
'configuration.permission_update_check',
'configuration.single_user_mode',
'configuration.last_update_check',
];
/**
* @param string $value
* @param Route $route

View File

@@ -23,6 +23,7 @@
declare(strict_types=1);
namespace FireflyIII\Support\Binder;
use Illuminate\Routing\Route;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
@@ -31,21 +32,23 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
*/
class EitherConfigKey
{
public static array $static = [
'firefly.version',
'firefly.api_version',
'firefly.default_location',
'firefly.account_to_transaction',
'firefly.allowed_opposing_types',
'firefly.accountRoles',
'firefly.valid_liabilities',
'firefly.interest_periods',
'firefly.bill_periods',
'firefly.enable_external_map',
'firefly.expected_source_types',
'firefly.credit_card_types',
'app.timezone',
];
public static array $static
= [
'firefly.version',
'firefly.api_version',
'firefly.default_location',
'firefly.account_to_transaction',
'firefly.allowed_opposing_types',
'firefly.accountRoles',
'firefly.valid_liabilities',
'firefly.interest_periods',
'firefly.bill_periods',
'firefly.enable_external_map',
'firefly.expected_source_types',
'firefly.credit_card_types',
'app.timezone',
];
/**
* @param string $value
* @param Route $route

View File

@@ -63,13 +63,14 @@ class JournalList implements BinderInterface
/**
* @param string $value
*
* @return array
*/
protected static function parseList(string $value): array
{
$list = array_unique(array_map('\intval', explode(',', $value)));
if (empty($list)) {
throw new NotFoundHttpException;
throw new NotFoundHttpException;
}
return $list;