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
91 changed files with 92 additions and 131 deletions

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