diff --git a/app/Factory/AccountFactory.php b/app/Factory/AccountFactory.php index 0f5abc5859..186ed37f3b 100644 --- a/app/Factory/AccountFactory.php +++ b/app/Factory/AccountFactory.php @@ -55,7 +55,7 @@ class AccountFactory public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Factory/AccountMetaFactory.php b/app/Factory/AccountMetaFactory.php index a6c156e299..186e390bef 100644 --- a/app/Factory/AccountMetaFactory.php +++ b/app/Factory/AccountMetaFactory.php @@ -40,7 +40,7 @@ class AccountMetaFactory public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Factory/AttachmentFactory.php b/app/Factory/AttachmentFactory.php index 4ebefc9f94..f0e09fe3a6 100644 --- a/app/Factory/AttachmentFactory.php +++ b/app/Factory/AttachmentFactory.php @@ -45,7 +45,7 @@ class AttachmentFactory public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Factory/BillFactory.php b/app/Factory/BillFactory.php index 78ae84528f..0786eb2e3d 100644 --- a/app/Factory/BillFactory.php +++ b/app/Factory/BillFactory.php @@ -46,7 +46,7 @@ class BillFactory public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Factory/BudgetFactory.php b/app/Factory/BudgetFactory.php index a4474f5877..f88c446815 100644 --- a/app/Factory/BudgetFactory.php +++ b/app/Factory/BudgetFactory.php @@ -43,7 +43,7 @@ class BudgetFactory public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Factory/CategoryFactory.php b/app/Factory/CategoryFactory.php index 5d9ce23274..a8908568fb 100644 --- a/app/Factory/CategoryFactory.php +++ b/app/Factory/CategoryFactory.php @@ -43,7 +43,7 @@ class CategoryFactory public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Factory/PiggyBankEventFactory.php b/app/Factory/PiggyBankEventFactory.php index 0c6d19e86f..dc93c2c45f 100644 --- a/app/Factory/PiggyBankEventFactory.php +++ b/app/Factory/PiggyBankEventFactory.php @@ -43,7 +43,7 @@ class PiggyBankEventFactory public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Factory/PiggyBankFactory.php b/app/Factory/PiggyBankFactory.php index 424e1e6f6e..40eb3eaa2c 100644 --- a/app/Factory/PiggyBankFactory.php +++ b/app/Factory/PiggyBankFactory.php @@ -42,7 +42,7 @@ class PiggyBankFactory public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Factory/RecurrenceFactory.php b/app/Factory/RecurrenceFactory.php index 1a71192710..ee8efe9c8c 100644 --- a/app/Factory/RecurrenceFactory.php +++ b/app/Factory/RecurrenceFactory.php @@ -50,7 +50,7 @@ class RecurrenceFactory public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Factory/TagFactory.php b/app/Factory/TagFactory.php index e6060bf656..d143e4a838 100644 --- a/app/Factory/TagFactory.php +++ b/app/Factory/TagFactory.php @@ -45,7 +45,7 @@ class TagFactory public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Factory/TransactionCurrencyFactory.php b/app/Factory/TransactionCurrencyFactory.php index c29658311a..3d831791a5 100644 --- a/app/Factory/TransactionCurrencyFactory.php +++ b/app/Factory/TransactionCurrencyFactory.php @@ -44,7 +44,7 @@ class TransactionCurrencyFactory public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Factory/TransactionFactory.php b/app/Factory/TransactionFactory.php index 9f44bfc586..f96ce3978d 100644 --- a/app/Factory/TransactionFactory.php +++ b/app/Factory/TransactionFactory.php @@ -64,7 +64,7 @@ class TransactionFactory public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } $this->accountRepository = app(AccountRepositoryInterface::class); $this->accountValidator = app(AccountValidator::class); diff --git a/app/Factory/TransactionJournalFactory.php b/app/Factory/TransactionJournalFactory.php index 8d64889551..e20acf56d8 100644 --- a/app/Factory/TransactionJournalFactory.php +++ b/app/Factory/TransactionJournalFactory.php @@ -96,7 +96,7 @@ class TransactionJournalFactory if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } $this->currencyRepository = app(CurrencyRepositoryInterface::class); diff --git a/app/Factory/TransactionJournalMetaFactory.php b/app/Factory/TransactionJournalMetaFactory.php index 96d3030a61..42c4a1ae30 100644 --- a/app/Factory/TransactionJournalMetaFactory.php +++ b/app/Factory/TransactionJournalMetaFactory.php @@ -40,7 +40,7 @@ class TransactionJournalMetaFactory public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Factory/TransactionTypeFactory.php b/app/Factory/TransactionTypeFactory.php index 9497cae39b..08f7d8abf4 100644 --- a/app/Factory/TransactionTypeFactory.php +++ b/app/Factory/TransactionTypeFactory.php @@ -39,7 +39,7 @@ class TransactionTypeFactory public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Generator/Chart/Basic/ChartJsGenerator.php b/app/Generator/Chart/Basic/ChartJsGenerator.php index 52f9251661..f46bd9c211 100644 --- a/app/Generator/Chart/Basic/ChartJsGenerator.php +++ b/app/Generator/Chart/Basic/ChartJsGenerator.php @@ -36,7 +36,7 @@ class ChartJsGenerator implements GeneratorInterface public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Helpers/Attachments/AttachmentHelper.php b/app/Helpers/Attachments/AttachmentHelper.php index bf3a66378f..9312b08899 100644 --- a/app/Helpers/Attachments/AttachmentHelper.php +++ b/app/Helpers/Attachments/AttachmentHelper.php @@ -67,7 +67,7 @@ class AttachmentHelper implements AttachmentHelperInterface $this->uploadDisk = Storage::disk('upload'); if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } @@ -193,7 +193,7 @@ class AttachmentHelper implements AttachmentHelperInterface if (!($model instanceof Model)) { return false; // @codeCoverageIgnore } - Log::debug(sprintf('Now in saveAttachmentsForModel for model %s', \get_class($model))); + Log::debug(sprintf('Now in saveAttachmentsForModel for model %s', get_class($model))); if (\is_array($files)) { Log::debug('$files is an array.'); /** @var UploadedFile $entry */ @@ -223,7 +223,7 @@ class AttachmentHelper implements AttachmentHelperInterface { $md5 = md5_file($file->getRealPath()); $name = $file->getClientOriginalName(); - $class = \get_class($model); + $class = get_class($model); /** @noinspection PhpUndefinedFieldInspection */ $count = $model->user->attachments()->where('md5', $md5)->where('attachable_id', $model->id)->where('attachable_type', $class)->count(); $result = false; diff --git a/app/Helpers/Chart/MetaPieChart.php b/app/Helpers/Chart/MetaPieChart.php index 1f1e00e765..cc7bb22168 100644 --- a/app/Helpers/Chart/MetaPieChart.php +++ b/app/Helpers/Chart/MetaPieChart.php @@ -86,7 +86,7 @@ class MetaPieChart implements MetaPieChartInterface $this->tags = new Collection; if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Helpers/FiscalHelper.php b/app/Helpers/FiscalHelper.php index 19bf74e9d9..514988eca7 100644 --- a/app/Helpers/FiscalHelper.php +++ b/app/Helpers/FiscalHelper.php @@ -41,7 +41,7 @@ class FiscalHelper implements FiscalHelperInterface $this->useCustomFiscalYear = app('preferences')->get('customFiscalYear', false)->data; if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Helpers/Help/Help.php b/app/Helpers/Help/Help.php index f93dfc505a..d58a484421 100644 --- a/app/Helpers/Help/Help.php +++ b/app/Helpers/Help/Help.php @@ -45,7 +45,7 @@ class Help implements HelpInterface public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Helpers/Report/BalanceReportHelper.php b/app/Helpers/Report/BalanceReportHelper.php index 181e5532bc..82c87fb459 100644 --- a/app/Helpers/Report/BalanceReportHelper.php +++ b/app/Helpers/Report/BalanceReportHelper.php @@ -53,7 +53,7 @@ class BalanceReportHelper implements BalanceReportHelperInterface $this->budgetRepository = $budgetRepository; if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Helpers/Report/BudgetReportHelper.php b/app/Helpers/Report/BudgetReportHelper.php index 41b56af8fe..238df2b504 100644 --- a/app/Helpers/Report/BudgetReportHelper.php +++ b/app/Helpers/Report/BudgetReportHelper.php @@ -49,7 +49,7 @@ class BudgetReportHelper implements BudgetReportHelperInterface $this->repository = $repository; if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Helpers/Report/NetWorth.php b/app/Helpers/Report/NetWorth.php index 3afec01a1b..1689fc9c7c 100644 --- a/app/Helpers/Report/NetWorth.php +++ b/app/Helpers/Report/NetWorth.php @@ -53,7 +53,7 @@ class NetWorth implements NetWorthInterface public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Helpers/Report/PopupReport.php b/app/Helpers/Report/PopupReport.php index ffb205d47a..e9903565a3 100644 --- a/app/Helpers/Report/PopupReport.php +++ b/app/Helpers/Report/PopupReport.php @@ -45,7 +45,7 @@ class PopupReport implements PopupReportInterface public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Helpers/Report/ReportHelper.php b/app/Helpers/Report/ReportHelper.php index 6a1f9475c4..04dc3789bc 100644 --- a/app/Helpers/Report/ReportHelper.php +++ b/app/Helpers/Report/ReportHelper.php @@ -54,7 +54,7 @@ class ReportHelper implements ReportHelperInterface $this->budgetRepository = $budgetRepository; if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } diff --git a/app/Repositories/Account/AccountRepository.php b/app/Repositories/Account/AccountRepository.php index 5c78e5e7fa..1acc585290 100644 --- a/app/Repositories/Account/AccountRepository.php +++ b/app/Repositories/Account/AccountRepository.php @@ -53,7 +53,7 @@ class AccountRepository implements AccountRepositoryInterface public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Repositories/Account/AccountTasker.php b/app/Repositories/Account/AccountTasker.php index 9432277957..c2d1fa45e2 100644 --- a/app/Repositories/Account/AccountTasker.php +++ b/app/Repositories/Account/AccountTasker.php @@ -45,7 +45,7 @@ class AccountTasker implements AccountTaskerInterface public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Repositories/Attachment/AttachmentRepository.php b/app/Repositories/Attachment/AttachmentRepository.php index a237739281..2c3e1aee3f 100644 --- a/app/Repositories/Attachment/AttachmentRepository.php +++ b/app/Repositories/Attachment/AttachmentRepository.php @@ -51,7 +51,7 @@ class AttachmentRepository implements AttachmentRepositoryInterface public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Repositories/Bill/BillRepository.php b/app/Repositories/Bill/BillRepository.php index d5c723cb82..a97438fc3c 100644 --- a/app/Repositories/Bill/BillRepository.php +++ b/app/Repositories/Bill/BillRepository.php @@ -54,7 +54,7 @@ class BillRepository implements BillRepositoryInterface public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Repositories/Budget/BudgetRepository.php b/app/Repositories/Budget/BudgetRepository.php index e4d66e38ac..a6352a596e 100644 --- a/app/Repositories/Budget/BudgetRepository.php +++ b/app/Repositories/Budget/BudgetRepository.php @@ -61,7 +61,7 @@ class BudgetRepository implements BudgetRepositoryInterface public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Repositories/Category/CategoryRepository.php b/app/Repositories/Category/CategoryRepository.php index acb0a7d45d..d86fa522c3 100644 --- a/app/Repositories/Category/CategoryRepository.php +++ b/app/Repositories/Category/CategoryRepository.php @@ -52,7 +52,7 @@ class CategoryRepository implements CategoryRepositoryInterface public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Repositories/Currency/CurrencyRepository.php b/app/Repositories/Currency/CurrencyRepository.php index 7358838328..f17d874fd2 100644 --- a/app/Repositories/Currency/CurrencyRepository.php +++ b/app/Repositories/Currency/CurrencyRepository.php @@ -51,7 +51,7 @@ class CurrencyRepository implements CurrencyRepositoryInterface public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Repositories/ImportJob/ImportJobRepository.php b/app/Repositories/ImportJob/ImportJobRepository.php index 5f11c87010..e2e9430caa 100644 --- a/app/Repositories/ImportJob/ImportJobRepository.php +++ b/app/Repositories/ImportJob/ImportJobRepository.php @@ -55,7 +55,7 @@ class ImportJobRepository implements ImportJobRepositoryInterface $this->uploadDisk = Storage::disk('upload'); if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Repositories/Journal/JournalRepository.php b/app/Repositories/Journal/JournalRepository.php index a91ef3a505..774c54438d 100644 --- a/app/Repositories/Journal/JournalRepository.php +++ b/app/Repositories/Journal/JournalRepository.php @@ -62,7 +62,7 @@ class JournalRepository implements JournalRepositoryInterface public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Repositories/LinkType/LinkTypeRepository.php b/app/Repositories/LinkType/LinkTypeRepository.php index d4aab759af..cba90c91bb 100644 --- a/app/Repositories/LinkType/LinkTypeRepository.php +++ b/app/Repositories/LinkType/LinkTypeRepository.php @@ -47,7 +47,7 @@ class LinkTypeRepository implements LinkTypeRepositoryInterface public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Repositories/PiggyBank/PiggyBankRepository.php b/app/Repositories/PiggyBank/PiggyBankRepository.php index f6a6e56df1..90a756d471 100644 --- a/app/Repositories/PiggyBank/PiggyBankRepository.php +++ b/app/Repositories/PiggyBank/PiggyBankRepository.php @@ -51,7 +51,7 @@ class PiggyBankRepository implements PiggyBankRepositoryInterface public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Repositories/Recurring/RecurringRepository.php b/app/Repositories/Recurring/RecurringRepository.php index dcefc99d87..3a1f65d303 100644 --- a/app/Repositories/Recurring/RecurringRepository.php +++ b/app/Repositories/Recurring/RecurringRepository.php @@ -61,7 +61,7 @@ class RecurringRepository implements RecurringRepositoryInterface public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Repositories/Rule/RuleRepository.php b/app/Repositories/Rule/RuleRepository.php index 718d95eb17..71b1e5e47e 100644 --- a/app/Repositories/Rule/RuleRepository.php +++ b/app/Repositories/Rule/RuleRepository.php @@ -47,7 +47,7 @@ class RuleRepository implements RuleRepositoryInterface public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Repositories/RuleGroup/RuleGroupRepository.php b/app/Repositories/RuleGroup/RuleGroupRepository.php index a29fea2de7..b1a6cc6556 100644 --- a/app/Repositories/RuleGroup/RuleGroupRepository.php +++ b/app/Repositories/RuleGroup/RuleGroupRepository.php @@ -43,7 +43,7 @@ class RuleGroupRepository implements RuleGroupRepositoryInterface public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Repositories/Tag/TagRepository.php b/app/Repositories/Tag/TagRepository.php index c6ae561452..90e311d3b2 100644 --- a/app/Repositories/Tag/TagRepository.php +++ b/app/Repositories/Tag/TagRepository.php @@ -49,7 +49,7 @@ class TagRepository implements TagRepositoryInterface public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Repositories/TransactionGroup/TransactionGroupRepository.php b/app/Repositories/TransactionGroup/TransactionGroupRepository.php index e4361b48f7..c745c803b1 100644 --- a/app/Repositories/TransactionGroup/TransactionGroupRepository.php +++ b/app/Repositories/TransactionGroup/TransactionGroupRepository.php @@ -56,7 +56,7 @@ class TransactionGroupRepository implements TransactionGroupRepositoryInterface public function __construct() { if ('testing' === config('app.env')) { - app('log')->warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + app('log')->warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Repositories/User/UserRepository.php b/app/Repositories/User/UserRepository.php index b6e9aa873d..16567096f6 100644 --- a/app/Repositories/User/UserRepository.php +++ b/app/Repositories/User/UserRepository.php @@ -42,7 +42,7 @@ class UserRepository implements UserRepositoryInterface public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } @@ -268,8 +268,6 @@ class UserRepository implements UserRepositoryInterface ->where('amount', '>', 0) ->whereNull('budgets.deleted_at') ->where('budgets.user_id', $user->id)->get(['budget_limits.budget_id'])->count(); - $return['export_jobs'] = $user->exportJobs()->count(); - $return['export_jobs_success'] = $user->exportJobs()->where('status', 'export_downloaded')->count(); $return['import_jobs'] = $user->importJobs()->count(); $return['import_jobs_success'] = $user->importJobs()->where('status', 'finished')->count(); $return['rule_groups'] = $user->ruleGroups()->count(); diff --git a/app/Services/Currency/FixerIOv2.php b/app/Services/Currency/FixerIOv2.php index 47bfa4c71a..6c6245db9f 100644 --- a/app/Services/Currency/FixerIOv2.php +++ b/app/Services/Currency/FixerIOv2.php @@ -45,7 +45,7 @@ class FixerIOv2 implements ExchangeRateInterface public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Services/Currency/RatesApiIOv1.php b/app/Services/Currency/RatesApiIOv1.php index 2c606ddfec..4c7de5f4d3 100644 --- a/app/Services/Currency/RatesApiIOv1.php +++ b/app/Services/Currency/RatesApiIOv1.php @@ -45,7 +45,7 @@ class RatesApiIOv1 implements ExchangeRateInterface public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Services/IP/IpifyOrg.php b/app/Services/IP/IpifyOrg.php index c1adfc490d..9394de8202 100644 --- a/app/Services/IP/IpifyOrg.php +++ b/app/Services/IP/IpifyOrg.php @@ -40,7 +40,7 @@ class IpifyOrg implements IPRetrievalInterface public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Services/Internal/Destroy/AccountDestroyService.php b/app/Services/Internal/Destroy/AccountDestroyService.php index d0aba6f8f7..6714e22d63 100644 --- a/app/Services/Internal/Destroy/AccountDestroyService.php +++ b/app/Services/Internal/Destroy/AccountDestroyService.php @@ -44,7 +44,7 @@ class AccountDestroyService public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Services/Internal/Destroy/BillDestroyService.php b/app/Services/Internal/Destroy/BillDestroyService.php index 13d170421f..4b256c8f89 100644 --- a/app/Services/Internal/Destroy/BillDestroyService.php +++ b/app/Services/Internal/Destroy/BillDestroyService.php @@ -39,7 +39,7 @@ class BillDestroyService public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Services/Internal/Destroy/BudgetDestroyService.php b/app/Services/Internal/Destroy/BudgetDestroyService.php index 4f1f1b06cf..e6cbe1d263 100644 --- a/app/Services/Internal/Destroy/BudgetDestroyService.php +++ b/app/Services/Internal/Destroy/BudgetDestroyService.php @@ -39,7 +39,7 @@ class BudgetDestroyService public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Services/Internal/Destroy/CategoryDestroyService.php b/app/Services/Internal/Destroy/CategoryDestroyService.php index d8d34ab00b..3d23360730 100644 --- a/app/Services/Internal/Destroy/CategoryDestroyService.php +++ b/app/Services/Internal/Destroy/CategoryDestroyService.php @@ -39,7 +39,7 @@ class CategoryDestroyService public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Services/Internal/Destroy/CurrencyDestroyService.php b/app/Services/Internal/Destroy/CurrencyDestroyService.php index 3940fcb548..f67cf9d3d8 100644 --- a/app/Services/Internal/Destroy/CurrencyDestroyService.php +++ b/app/Services/Internal/Destroy/CurrencyDestroyService.php @@ -38,7 +38,7 @@ class CurrencyDestroyService public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Services/Internal/Destroy/JournalDestroyService.php b/app/Services/Internal/Destroy/JournalDestroyService.php index ee67a9665e..28ebfe5fcf 100644 --- a/app/Services/Internal/Destroy/JournalDestroyService.php +++ b/app/Services/Internal/Destroy/JournalDestroyService.php @@ -41,7 +41,7 @@ class JournalDestroyService public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Services/Internal/Destroy/RecurrenceDestroyService.php b/app/Services/Internal/Destroy/RecurrenceDestroyService.php index 68da18cc6f..ebd7fd0a6c 100644 --- a/app/Services/Internal/Destroy/RecurrenceDestroyService.php +++ b/app/Services/Internal/Destroy/RecurrenceDestroyService.php @@ -40,7 +40,7 @@ class RecurrenceDestroyService public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Services/Internal/File/EncryptService.php b/app/Services/Internal/File/EncryptService.php index b72398571e..7bc8481560 100644 --- a/app/Services/Internal/File/EncryptService.php +++ b/app/Services/Internal/File/EncryptService.php @@ -40,7 +40,7 @@ class EncryptService public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Services/Internal/Update/AccountUpdateService.php b/app/Services/Internal/Update/AccountUpdateService.php index a7c0a26548..2b18a1269b 100644 --- a/app/Services/Internal/Update/AccountUpdateService.php +++ b/app/Services/Internal/Update/AccountUpdateService.php @@ -42,7 +42,7 @@ class AccountUpdateService public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Services/Internal/Update/BillUpdateService.php b/app/Services/Internal/Update/BillUpdateService.php index c1d4f8a621..3f9fa1c9d8 100644 --- a/app/Services/Internal/Update/BillUpdateService.php +++ b/app/Services/Internal/Update/BillUpdateService.php @@ -43,7 +43,7 @@ class BillUpdateService public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Services/Internal/Update/CategoryUpdateService.php b/app/Services/Internal/Update/CategoryUpdateService.php index fdd10cbd60..b183434de9 100644 --- a/app/Services/Internal/Update/CategoryUpdateService.php +++ b/app/Services/Internal/Update/CategoryUpdateService.php @@ -37,7 +37,7 @@ class CategoryUpdateService public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Services/Internal/Update/CurrencyUpdateService.php b/app/Services/Internal/Update/CurrencyUpdateService.php index 38149b77fe..e76409e66d 100644 --- a/app/Services/Internal/Update/CurrencyUpdateService.php +++ b/app/Services/Internal/Update/CurrencyUpdateService.php @@ -37,7 +37,7 @@ class CurrencyUpdateService public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Services/Internal/Update/TransactionUpdateService.php b/app/Services/Internal/Update/TransactionUpdateService.php index 78ef4cbabd..f0cc03f295 100644 --- a/app/Services/Internal/Update/TransactionUpdateService.php +++ b/app/Services/Internal/Update/TransactionUpdateService.php @@ -44,7 +44,7 @@ class TransactionUpdateService public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Services/Password/PwndVerifierV2.php b/app/Services/Password/PwndVerifierV2.php index e46498f75f..541274ca76 100644 --- a/app/Services/Password/PwndVerifierV2.php +++ b/app/Services/Password/PwndVerifierV2.php @@ -39,7 +39,7 @@ class PwndVerifierV2 implements Verifier public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Support/Import/Routine/Bunq/PaymentConverter.php b/app/Support/Import/Routine/Bunq/PaymentConverter.php index 8345f8561c..070fb0d68f 100644 --- a/app/Support/Import/Routine/Bunq/PaymentConverter.php +++ b/app/Support/Import/Routine/Bunq/PaymentConverter.php @@ -58,7 +58,7 @@ class PaymentConverter $this->importJobRepos = app(ImportJobRepositoryInterface::class); $this->accountFactory = app(AccountFactory::class); if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Support/Import/Routine/Bunq/StageNewHandler.php b/app/Support/Import/Routine/Bunq/StageNewHandler.php index 0b7b3dd8a9..e37fcd71c6 100644 --- a/app/Support/Import/Routine/Bunq/StageNewHandler.php +++ b/app/Support/Import/Routine/Bunq/StageNewHandler.php @@ -111,7 +111,7 @@ class StageNewHandler // @codeCoverageIgnoreEnd if (null !== $object) { $array = null; - switch (\get_class($object)) { + switch (get_class($object)) { case MonetaryAccountBank::class: Log::debug('Going to convert a MonetaryAccountBank'); /** @var MonetaryAccountBank $object */ @@ -135,7 +135,7 @@ class StageNewHandler break; default: // @codeCoverageIgnoreStart - throw new FireflyException(sprintf('Bunq import routine cannot handle account of type "%s".', \get_class($object))); + throw new FireflyException(sprintf('Bunq import routine cannot handle account of type "%s".', get_class($object))); // @codeCoverageIgnoreEnd } if (null !== $array) { diff --git a/app/Support/Search/Search.php b/app/Support/Search/Search.php index 03eb3233ca..61d4ddc72c 100644 --- a/app/Support/Search/Search.php +++ b/app/Support/Search/Search.php @@ -76,7 +76,7 @@ class Search implements SearchInterface $this->billRepository = app(BillRepositoryInterface::class); if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/TransactionRules/Factory/TriggerFactory.php b/app/TransactionRules/Factory/TriggerFactory.php index cb6c7b0887..4d5c10e69e 100644 --- a/app/TransactionRules/Factory/TriggerFactory.php +++ b/app/TransactionRules/Factory/TriggerFactory.php @@ -62,7 +62,7 @@ class TriggerFactory $obj->stopProcessing = $trigger->stop_processing; Log::debug(sprintf('self::getTriggerClass("%s") = "%s"', $triggerType, $class)); - Log::debug(sprintf('%s::makeFromTriggerValue(%s) = object of class "%s"', $class, $trigger->trigger_value, \get_class($obj))); + Log::debug(sprintf('%s::makeFromTriggerValue(%s) = object of class "%s"', $class, $trigger->trigger_value, get_class($obj))); return $obj; } diff --git a/app/TransactionRules/Processor.php b/app/TransactionRules/Processor.php index c78aac93ac..e57a655801 100644 --- a/app/TransactionRules/Processor.php +++ b/app/TransactionRules/Processor.php @@ -122,18 +122,18 @@ class Processor /** @var AbstractTrigger $trigger */ foreach ($this->triggers as $trigger) { ++$foundTriggers; - Log::debug(sprintf('Now checking trigger %s with value %s', \get_class($trigger), $trigger->getTriggerValue())); + Log::debug(sprintf('Now checking trigger %s with value %s', get_class($trigger), $trigger->getTriggerValue())); /** @var AbstractTrigger $trigger */ if ($trigger->triggered($this->journal)) { Log::debug('Is a match!'); ++$hitTriggers; // is non-strict? then return true! - if (!$this->strict && UserAction::class !== \get_class($trigger)) { + if (!$this->strict && UserAction::class !== get_class($trigger)) { Log::debug('Rule is set as non-strict, return true!'); return true; } - if (!$this->strict && UserAction::class === \get_class($trigger)) { + if (!$this->strict && UserAction::class === get_class($trigger)) { Log::debug('Rule is set as non-strict, but action was "user-action". Will not return true.'); } } @@ -183,7 +183,7 @@ class Processor foreach ($this->actions as $action) { /** @var ActionInterface $actionClass */ $actionClass = ActionFactory::getAction($action); - Log::debug(sprintf('Fire action %s on journal #%d', \get_class($actionClass), $this->journal->id)); + Log::debug(sprintf('Fire action %s on journal #%d', get_class($actionClass), $this->journal->id)); $actionClass->act($this->journal); if ($action->stop_processing) { Log::debug('Stop processing now and break.'); diff --git a/app/Transformers/AccountTransformer.php b/app/Transformers/AccountTransformer.php index 53f45f5344..89f6634589 100644 --- a/app/Transformers/AccountTransformer.php +++ b/app/Transformers/AccountTransformer.php @@ -46,7 +46,7 @@ class AccountTransformer extends AbstractTransformer public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } $this->repository = app(AccountRepositoryInterface::class); diff --git a/app/Transformers/AttachmentTransformer.php b/app/Transformers/AttachmentTransformer.php index aedb1598ea..f7c16b80e2 100644 --- a/app/Transformers/AttachmentTransformer.php +++ b/app/Transformers/AttachmentTransformer.php @@ -45,7 +45,7 @@ class AttachmentTransformer extends AbstractTransformer { $this->repository = app(AttachmentRepositoryInterface::class); if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Transformers/AvailableBudgetTransformer.php b/app/Transformers/AvailableBudgetTransformer.php index 8043a07513..0f02659580 100644 --- a/app/Transformers/AvailableBudgetTransformer.php +++ b/app/Transformers/AvailableBudgetTransformer.php @@ -46,7 +46,7 @@ class AvailableBudgetTransformer extends AbstractTransformer { $this->repository = app(BudgetRepositoryInterface::class); if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Transformers/BillTransformer.php b/app/Transformers/BillTransformer.php index b9428efed8..84a4a8fe67 100644 --- a/app/Transformers/BillTransformer.php +++ b/app/Transformers/BillTransformer.php @@ -46,7 +46,7 @@ class BillTransformer extends AbstractTransformer { $this->repository = app(BillRepositoryInterface::class); if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Transformers/BudgetLimitTransformer.php b/app/Transformers/BudgetLimitTransformer.php index 414f201a48..65b8772b10 100644 --- a/app/Transformers/BudgetLimitTransformer.php +++ b/app/Transformers/BudgetLimitTransformer.php @@ -39,7 +39,7 @@ class BudgetLimitTransformer extends AbstractTransformer public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Transformers/BudgetTransformer.php b/app/Transformers/BudgetTransformer.php index c6273ef5ca..7243ac9e7a 100644 --- a/app/Transformers/BudgetTransformer.php +++ b/app/Transformers/BudgetTransformer.php @@ -45,7 +45,7 @@ class BudgetTransformer extends AbstractTransformer { $this->repository = app(BudgetRepositoryInterface::class); if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Transformers/CategoryTransformer.php b/app/Transformers/CategoryTransformer.php index 1b33b44414..fec2cb6141 100644 --- a/app/Transformers/CategoryTransformer.php +++ b/app/Transformers/CategoryTransformer.php @@ -49,7 +49,7 @@ class CategoryTransformer extends AbstractTransformer { $this->repository = app(CategoryRepositoryInterface::class); if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Transformers/CurrencyExchangeRateTransformer.php b/app/Transformers/CurrencyExchangeRateTransformer.php index 20f52caaa2..45e6585dd1 100644 --- a/app/Transformers/CurrencyExchangeRateTransformer.php +++ b/app/Transformers/CurrencyExchangeRateTransformer.php @@ -41,7 +41,7 @@ class CurrencyExchangeRateTransformer extends AbstractTransformer public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Transformers/CurrencyTransformer.php b/app/Transformers/CurrencyTransformer.php index 0525106d0f..fb7a26c151 100644 --- a/app/Transformers/CurrencyTransformer.php +++ b/app/Transformers/CurrencyTransformer.php @@ -39,7 +39,7 @@ class CurrencyTransformer extends AbstractTransformer public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Transformers/ImportJobTransformer.php b/app/Transformers/ImportJobTransformer.php index a9356c7e38..addfd0b180 100644 --- a/app/Transformers/ImportJobTransformer.php +++ b/app/Transformers/ImportJobTransformer.php @@ -40,7 +40,7 @@ class ImportJobTransformer extends AbstractTransformer public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Transformers/LinkTypeTransformer.php b/app/Transformers/LinkTypeTransformer.php index 6471d7b07f..7bb00626d0 100644 --- a/app/Transformers/LinkTypeTransformer.php +++ b/app/Transformers/LinkTypeTransformer.php @@ -41,7 +41,7 @@ class LinkTypeTransformer extends AbstractTransformer public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Transformers/PiggyBankEventTransformer.php b/app/Transformers/PiggyBankEventTransformer.php index 264bf68770..87241602f0 100644 --- a/app/Transformers/PiggyBankEventTransformer.php +++ b/app/Transformers/PiggyBankEventTransformer.php @@ -53,7 +53,7 @@ class PiggyBankEventTransformer extends AbstractTransformer $this->currencyRepos = app(CurrencyRepositoryInterface::class); $this->piggyRepos = app(PiggyBankRepositoryInterface::class); if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Transformers/PiggyBankTransformer.php b/app/Transformers/PiggyBankTransformer.php index f922c3ff03..268994ba22 100644 --- a/app/Transformers/PiggyBankTransformer.php +++ b/app/Transformers/PiggyBankTransformer.php @@ -54,7 +54,7 @@ class PiggyBankTransformer extends AbstractTransformer $this->currencyRepos = app(CurrencyRepositoryInterface::class); $this->piggyRepos = app(PiggyBankRepositoryInterface::class); if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Transformers/PreferenceTransformer.php b/app/Transformers/PreferenceTransformer.php index 3087487da6..d817891987 100644 --- a/app/Transformers/PreferenceTransformer.php +++ b/app/Transformers/PreferenceTransformer.php @@ -41,7 +41,7 @@ class PreferenceTransformer extends AbstractTransformer public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Transformers/RecurrenceTransformer.php b/app/Transformers/RecurrenceTransformer.php index ee11a0a81f..2955941e21 100644 --- a/app/Transformers/RecurrenceTransformer.php +++ b/app/Transformers/RecurrenceTransformer.php @@ -69,7 +69,7 @@ class RecurrenceTransformer extends AbstractTransformer $this->budgetRepos = app(BudgetRepositoryInterface::class); if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Transformers/RuleGroupTransformer.php b/app/Transformers/RuleGroupTransformer.php index c8a0a87f5f..0aea33dcfb 100644 --- a/app/Transformers/RuleGroupTransformer.php +++ b/app/Transformers/RuleGroupTransformer.php @@ -39,7 +39,7 @@ class RuleGroupTransformer extends AbstractTransformer public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Transformers/RuleTransformer.php b/app/Transformers/RuleTransformer.php index f8f825ae31..7eeeeede04 100644 --- a/app/Transformers/RuleTransformer.php +++ b/app/Transformers/RuleTransformer.php @@ -47,7 +47,7 @@ class RuleTransformer extends AbstractTransformer { $this->ruleRepository = app(RuleRepositoryInterface::class); if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Transformers/TagTransformer.php b/app/Transformers/TagTransformer.php index 54c9063f03..964f7c3b7d 100644 --- a/app/Transformers/TagTransformer.php +++ b/app/Transformers/TagTransformer.php @@ -40,7 +40,7 @@ class TagTransformer extends AbstractTransformer public function __construct() { if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Transformers/TransactionGroupTransformer.php b/app/Transformers/TransactionGroupTransformer.php index 4ac0447a1e..2da9fc6955 100644 --- a/app/Transformers/TransactionGroupTransformer.php +++ b/app/Transformers/TransactionGroupTransformer.php @@ -61,7 +61,7 @@ class TransactionGroupTransformer extends AbstractTransformer $this->metaDateFields = ['interest_date', 'book_date', 'process_date', 'due_date', 'payment_date', 'invoice_date']; if ('testing' === config('app.env')) { - app('log')->warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + app('log')->warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Transformers/TransactionLinkTransformer.php b/app/Transformers/TransactionLinkTransformer.php index 656083ea76..9b104f894e 100644 --- a/app/Transformers/TransactionLinkTransformer.php +++ b/app/Transformers/TransactionLinkTransformer.php @@ -47,7 +47,7 @@ class TransactionLinkTransformer extends AbstractTransformer $this->repository = app(JournalRepositoryInterface::class); if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Transformers/TransactionTransformer.php b/app/Transformers/TransactionTransformer.php index 4750ec3a44..4f9ab3f8c5 100644 --- a/app/Transformers/TransactionTransformer.php +++ b/app/Transformers/TransactionTransformer.php @@ -48,7 +48,7 @@ class TransactionTransformer extends AbstractTransformer { $this->repository = app(JournalRepositoryInterface::class); if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/app/Transformers/UserTransformer.php b/app/Transformers/UserTransformer.php index 78487e2265..bd6b797ef6 100644 --- a/app/Transformers/UserTransformer.php +++ b/app/Transformers/UserTransformer.php @@ -45,7 +45,7 @@ class UserTransformer extends AbstractTransformer { $this->repository = app(UserRepositoryInterface::class); if ('testing' === config('app.env')) { - Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this))); + Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); } } diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.php index b74d2b0c26..8099dfa70d 100644 --- a/resources/lang/en_US/firefly.php +++ b/resources/lang/en_US/firefly.php @@ -258,33 +258,6 @@ return [ 'half-year' => 'every half year', 'yearly' => 'yearly', - // export data: - 'import_and_export' => 'Import and export', - 'export_data' => 'Export data', - 'export_and_backup_data' => 'Export data', - 'export_data_intro' => 'Use the exported data to move to a new financial application. Please note that these files are not meant as a backup. They do not contain enough meta-data to fully restore a new Firefly III installation. If you want to make a backup of your data, please backup the database directly.', - 'export_format' => 'Export format', - 'export_format_csv' => 'Comma separated values (CSV file)', - 'export_format_mt940' => 'MT940 compatible format', - 'include_old_uploads_help' => 'Firefly III does not throw away the original CSV files you have imported in the past. You can include them in your export.', - 'do_export' => 'Export', - 'export_status_never_started' => 'The export has not started yet', - 'export_status_make_exporter' => 'Creating exporter thing...', - 'export_status_collecting_journals' => 'Collecting your transactions...', - 'export_status_collected_journals' => 'Collected your transactions!', - 'export_status_converting_to_export_format' => 'Converting your transactions...', - 'export_status_converted_to_export_format' => 'Converted your transactions!', - 'export_status_creating_journal_file' => 'Creating the export file...', - 'export_status_created_journal_file' => 'Created the export file!', - 'export_status_collecting_attachments' => 'Collecting all your attachments...', - 'export_status_collected_attachments' => 'Collected all your attachments!', - 'export_status_collecting_old_uploads' => 'Collecting all your previous uploads...', - 'export_status_collected_old_uploads' => 'Collected all your previous uploads!', - 'export_status_creating_zip_file' => 'Creating a zip file...', - 'export_status_created_zip_file' => 'Created a zip file!', - 'export_status_finished' => 'Export has succesfully finished! Yay!', - 'export_data_please_wait' => 'Please wait...', - // rules 'rules' => 'Rules', 'rule_name' => 'Name of rule', diff --git a/resources/lang/en_US/form.php b/resources/lang/en_US/form.php index dc4284a0be..db625af86f 100644 --- a/resources/lang/en_US/form.php +++ b/resources/lang/en_US/form.php @@ -140,12 +140,8 @@ return [ 'stop_processing' => 'Stop processing', 'start_date' => 'Start of range', 'end_date' => 'End of range', - 'export_start_range' => 'Start of export range', - 'export_end_range' => 'End of export range', - 'export_format' => 'File format', 'include_attachments' => 'Include uploaded attachments', 'include_old_uploads' => 'Include imported data', - 'accounts' => 'Export transactions from these accounts', 'delete_account' => 'Delete account ":name"', 'delete_bill' => 'Delete bill ":name"', 'delete_budget' => 'Delete budget ":name"', diff --git a/resources/lang/en_US/list.php b/resources/lang/en_US/list.php index 9224f259ad..bc0e0dcebb 100644 --- a/resources/lang/en_US/list.php +++ b/resources/lang/en_US/list.php @@ -87,7 +87,6 @@ return [ 'attachments_count' => 'Number of attachments', 'bills_count' => 'Number of bills', 'categories_count' => 'Number of categories', - 'export_jobs_count' => 'Number of export jobs', 'import_jobs_count' => 'Number of import jobs', 'budget_count' => 'Number of budgets', 'rule_and_groups_count' => 'Number of rules and rule groups', diff --git a/resources/views/v1/admin/users/show.twig b/resources/views/v1/admin/users/show.twig index 0479a8cc0e..16da72c998 100644 --- a/resources/views/v1/admin/users/show.twig +++ b/resources/views/v1/admin/users/show.twig @@ -97,10 +97,6 @@ {{ trans('list.categories_count') }} {{ information.categories }} - - {{ trans('list.export_jobs_count') }} - {{ information.export_jobs }}, {{ trans('firefly.successful_count', {count: information.export_jobs_success}) }} - {{ trans('list.import_jobs_count') }} {{ information.import_jobs }}, {{ trans('firefly.successful_count', {count: information.import_jobs_success}) }} diff --git a/resources/views/v2/partials/top_menu.twig b/resources/views/v2/partials/top_menu.twig index bf718b09a3..89868f0598 100644 --- a/resources/views/v2/partials/top_menu.twig +++ b/resources/views/v2/partials/top_menu.twig @@ -42,7 +42,6 @@ {{ 'recurrences'|_ }} {{ 'currencies'|_ }} {{ 'import_data'|_ }} - {{ 'export_data'|_ }}