mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-10-12 16:32:04 -05:00
Code clean up
This commit is contained in:
1 parent
f38984398d
commit
d25d0454fc
52 files changed
+135
-185
No files matched your search
@@ -11,7 +11,6 @@ declare(strict_types = 1);
|
||||
|
||||
namespace FireflyIII\Models;
|
||||
|
||||
use Auth;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
|
||||
@@ -45,7 +44,7 @@ class ExportJob extends Model
|
||||
public static function routeBinder($value)
|
||||
{
|
||||
if (auth()->check()) {
|
||||
$model = self::where('key', $value)->where('user_id', Auth::user()->id)->first();
|
||||
$model = self::where('key', $value)->where('user_id', auth()->user()->id)->first();
|
||||
if (!is_null($model)) {
|
||||
return $model;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user