mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 01:42:32 +00:00
Refactor the expandedform methods. First commit to see how Scrutinizer likes this. This commit will break most views.
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use FireflyIII\Providers\ImportServiceProvider;
|
||||
|
||||
|
||||
@@ -145,6 +146,7 @@ return [
|
||||
'Amount' => \FireflyIII\Support\Facades\Amount::class,
|
||||
'Steam' => \FireflyIII\Support\Facades\Steam::class,
|
||||
'ExpandedForm' => \FireflyIII\Support\Facades\ExpandedForm::class,
|
||||
'AccountForm' => \FireflyIII\Support\Facades\AccountForm::class,
|
||||
'Google2FA' => PragmaRX\Google2FALaravel\Facade::class,
|
||||
|
||||
],
|
||||
|
||||
@@ -21,17 +21,17 @@
|
||||
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
use TwigBridge\Extension\Laravel\Url;
|
||||
use TwigBridge\Extension\Laravel\Str;
|
||||
use TwigBridge\Extension\Laravel\Translator;
|
||||
use TwigBridge\Extension\Laravel\Session;
|
||||
use TwigBridge\Extension\Laravel\Auth;
|
||||
use TwigBridge\Extension\Laravel\Config;
|
||||
use TwigBridge\Extension\Laravel\Dump;
|
||||
use TwigBridge\Extension\Laravel\Input;
|
||||
use TwigBridge\Extension\Laravel\Config;
|
||||
use TwigBridge\Extension\Laravel\Auth;
|
||||
use TwigBridge\Extension\Laravel\Session;
|
||||
use TwigBridge\Extension\Laravel\Str;
|
||||
use TwigBridge\Extension\Laravel\Translator;
|
||||
use TwigBridge\Extension\Laravel\Url;
|
||||
use TwigBridge\Extension\Loader\Facades;
|
||||
use TwigBridge\Extension\Loader\Filters;
|
||||
use TwigBridge\Extension\Loader\Functions;
|
||||
use TwigBridge\Extension\Loader\Facades;
|
||||
use TwigBridge\Twig\Template;
|
||||
|
||||
/**
|
||||
@@ -193,16 +193,21 @@ return [
|
||||
'Steam',
|
||||
'Config',
|
||||
'Request',
|
||||
'Form' => ['is_safe' => ['input', 'select', 'checkbox', 'model', 'open', 'radio', 'textarea', 'file',],],
|
||||
'ExpandedForm' => [
|
||||
'is_safe' => ['date', 'text', 'select', 'balance', 'optionsList', 'checkbox', 'amount', 'tags', 'integer', 'textarea', 'location', 'file',
|
||||
'staticText', 'password', 'nonSelectableAmount', 'number', 'assetAccountList', 'amountNoCurrency', 'currencyList',
|
||||
'ruleGroupList', 'assetAccountCheckList', 'ruleGroupListWithEmpty', 'piggyBankList', 'currencyListEmpty',
|
||||
'activeAssetAccountList', 'percentage', 'activeLongAccountList', 'longAccountList','balanceAll',
|
||||
'activeWithdrawalDestinations','activeDepositDestinations'
|
||||
'is_safe' => [
|
||||
'date', 'text', 'select', 'balance', 'optionsList', 'checkbox', 'amount', 'tags', 'integer', 'textarea', 'location', 'file', 'staticText',
|
||||
'password', 'nonSelectableAmount', 'number', 'assetAccountList', 'amountNoCurrency', 'currencyList', 'ruleGroupList',
|
||||
'assetAccountCheckList', 'ruleGroupListWithEmpty', 'piggyBankList', 'currencyListEmpty', 'percentage',
|
||||
'activeLongAccountList', 'longAccountList', 'balanceAll', 'activeWithdrawalDestinations', 'activeDepositDestinations',
|
||||
|
||||
|
||||
],],
|
||||
'Form' => ['is_safe' => ['input', 'select', 'checkbox', 'model', 'open', 'radio', 'textarea', 'file',],
|
||||
],
|
||||
],
|
||||
'AccountForm' => [
|
||||
'is_safe' => [
|
||||
'activeAssetAccountList', 'activeLongAccountList',
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user