Replace \get_class with get_class

This commit is contained in:
James Cole 2019-06-07 18:20:15 +02:00
parent 779650f63d
commit 8b5551fc26
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
91 changed files with 92 additions and 131 deletions

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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);

View File

@ -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);

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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;

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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();

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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) {

View File

@ -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)));
}
}

View File

@ -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;
}

View File

@ -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.');

View File

@ -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);

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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)));
}
}

View File

@ -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',

View File

@ -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"',

View File

@ -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',

View File

@ -97,10 +97,6 @@
<td>{{ trans('list.categories_count') }}</td>
<td>{{ information.categories }}</td>
</tr>
<tr>
<td>{{ trans('list.export_jobs_count') }}</td>
<td>{{ information.export_jobs }}, {{ trans('firefly.successful_count', {count: information.export_jobs_success}) }}</td>
</tr>
<tr>
<td>{{ trans('list.import_jobs_count') }}</td>
<td>{{ information.import_jobs }}, {{ trans('firefly.successful_count', {count: information.import_jobs_success}) }}</td>

View File

@ -42,7 +42,6 @@
<a href="{{ route('recurring.index') }}" class="dropdown-item ">{{ 'recurrences'|_ }}</a>
<a href="{{ route('currencies.index') }}" class="dropdown-item ">{{ 'currencies'|_ }}</a>
<a href="{{ route('import.index') }}" class="dropdown-item ">{{ 'import_data'|_ }}</a>
<a href="{{ route('export.index') }}" class="dropdown-item ">{{ 'export_data'|_ }}</a>
</div>
</li>