Clean up references to static Facade.

This commit is contained in:
James Cole
2018-07-15 09:27:38 +02:00
parent 8fde16422e
commit 369839e012
21 changed files with 64 additions and 75 deletions

View File

@@ -30,7 +30,7 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
*
* @property string $type
* @method whereType(string $type)
* @property int $id
* @property int $id
*
*/
class AccountType extends Model

View File

@@ -50,7 +50,7 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
* @property int $skip
* @property bool $automatch
* @property User $user
* @property string $match
* @property string $match
*/
class Bill extends Model
{

View File

@@ -32,10 +32,10 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
/**
* Class Budget.
*
* @property int $id
* @property string $name
* @property bool $active
* @property int $user_id
* @property int $id
* @property string $name
* @property bool $active
* @property int $user_id
* @property-read string $email
*/
class Budget extends Model

View File

@@ -40,7 +40,7 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
* @property string $file_type
* @property int $tag_id
* @property Tag $tag
* @property array $errors
* @property array $errors
*/
class ImportJob extends Model
{

View File

@@ -34,7 +34,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @property Carbon $updated_at
* @property string $text
* @property string $title
* @property int $noteable_id
* @property int $noteable_id
*/
class Note extends Model
{

View File

@@ -73,7 +73,7 @@ class RecurrenceTransaction extends Model
*/
public function destinationAccount(): BelongsTo
{
return $this->belongsTo(Account::class,'destination_id');
return $this->belongsTo(Account::class, 'destination_id');
}
/**
@@ -109,7 +109,7 @@ class RecurrenceTransaction extends Model
*/
public function sourceAccount(): BelongsTo
{
return $this->belongsTo(Account::class,'source_id');
return $this->belongsTo(Account::class, 'source_id');
}
/**

View File

@@ -32,14 +32,14 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
/**
* Class RuleGroup.
*
* @property bool $active
* @property User $user
* @property Carbon $created_at
* @property Carbon $updated_at
* @property string $title
* @property string $text
* @property int $id
* @property int $order
* @property bool $active
* @property User $user
* @property Carbon $created_at
* @property Carbon $updated_at
* @property string $title
* @property string $text
* @property int $id
* @property int $order
* @property Collection $rules
*/
class RuleGroup extends Model

View File

@@ -34,7 +34,6 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Collection;
use Log;
use Preferences;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
/**
@@ -396,7 +395,7 @@ class TransactionJournal extends Model
}
$entry->data = $value;
$entry->save();
Preferences::mark();
app('preferences')->mark();
return $entry;
}

View File

@@ -32,8 +32,8 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @property string $name
* @property int $transaction_journal_id
* @property TransactionJournal $transactionJournal
* @property string $data
* @property int $id
* @property string $data
* @property int $id
*/
class TransactionJournalMeta extends Model
{