mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 12:12:18 +00:00
Replace \get_class with get_class
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user