mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Code clean up [skip ci]
This commit is contained in:
@@ -34,7 +34,7 @@ class AccountList implements BinderInterface
|
||||
public static function routeBinder($value, $route): Collection
|
||||
{
|
||||
|
||||
if (Auth::check()) {
|
||||
if (auth()->check()) {
|
||||
|
||||
$ids = explode(',', $value);
|
||||
// filter ids:
|
||||
|
@@ -33,7 +33,7 @@ class BudgetList implements BinderInterface
|
||||
*/
|
||||
public static function routeBinder($value, $route): Collection
|
||||
{
|
||||
if (Auth::check()) {
|
||||
if (auth()->check()) {
|
||||
$ids = explode(',', $value);
|
||||
/** @var \Illuminate\Support\Collection $object */
|
||||
$object = Budget::where('active', 1)
|
||||
|
@@ -32,7 +32,7 @@ class CategoryList implements BinderInterface
|
||||
*/
|
||||
public static function routeBinder($value, $route): Collection
|
||||
{
|
||||
if (Auth::check()) {
|
||||
if (auth()->check()) {
|
||||
$ids = explode(',', $value);
|
||||
/** @var \Illuminate\Support\Collection $object */
|
||||
$object = Category::whereIn('id', $ids)
|
||||
|
@@ -32,7 +32,7 @@ class JournalList implements BinderInterface
|
||||
*/
|
||||
public static function routeBinder($value, $route): Collection
|
||||
{
|
||||
if (Auth::check()) {
|
||||
if (auth()->check()) {
|
||||
$ids = explode(',', $value);
|
||||
/** @var \Illuminate\Support\Collection $object */
|
||||
$object = TransactionJournal::whereIn('transaction_journals.id', $ids)
|
||||
|
@@ -32,7 +32,7 @@ class UnfinishedJournal implements BinderInterface
|
||||
*/
|
||||
public static function routeBinder($value, $route): TransactionJournal
|
||||
{
|
||||
if (Auth::check()) {
|
||||
if (auth()->check()) {
|
||||
$object = TransactionJournal::where('transaction_journals.id', $value)
|
||||
->leftJoin('transaction_types', 'transaction_types.id', '=', 'transaction_journals.transaction_type_id')
|
||||
->where('completed', 0)
|
||||
|
@@ -38,7 +38,7 @@ class CacheProperties
|
||||
public function __construct()
|
||||
{
|
||||
$this->properties = new Collection;
|
||||
if (Auth::check()) {
|
||||
if (auth()->check()) {
|
||||
$this->addProperty(Auth::user()->id);
|
||||
$this->addProperty(Prefs::lastActivity());
|
||||
}
|
||||
|
Reference in New Issue
Block a user