mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Various PSR12 code cleanup
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* TransactionJournalLink.php
|
||||
* Copyright (c) 2019 james@firefly-iii.org
|
||||
@@ -34,20 +35,20 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
/**
|
||||
* FireflyIII\Models\TransactionJournalLink
|
||||
*
|
||||
* @property int $id
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property int $link_type_id
|
||||
* @property int $source_id
|
||||
* @property int $destination_id
|
||||
* @property string|null $comment
|
||||
* @property int $id
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property int $link_type_id
|
||||
* @property int $source_id
|
||||
* @property int $destination_id
|
||||
* @property string|null $comment
|
||||
* @property-read TransactionJournal $destination
|
||||
* @property-read LinkType $linkType
|
||||
* @property-read Collection|Note[] $notes
|
||||
* @property-read int|null $notes_count
|
||||
* @property-read LinkType $linkType
|
||||
* @property-read Collection|Note[] $notes
|
||||
* @property-read int|null $notes_count
|
||||
* @property-read TransactionJournal $source
|
||||
* @property-read string $inward
|
||||
* @property-read string $outward
|
||||
* @property-read string $inward
|
||||
* @property-read string $outward
|
||||
* @method static Builder|TransactionJournalLink newModelQuery()
|
||||
* @method static Builder|TransactionJournalLink newQuery()
|
||||
* @method static Builder|TransactionJournalLink query()
|
||||
@@ -78,7 +79,7 @@ class TransactionJournalLink extends Model
|
||||
/**
|
||||
* Route binder. Converts the key in the URL to the specified object (or throw 404).
|
||||
*
|
||||
* @param string $value
|
||||
* @param string $value
|
||||
*
|
||||
* @return TransactionJournalLink
|
||||
*
|
||||
@@ -87,7 +88,7 @@ class TransactionJournalLink extends Model
|
||||
public static function routeBinder(string $value): TransactionJournalLink
|
||||
{
|
||||
if (auth()->check()) {
|
||||
$linkId = (int) $value;
|
||||
$linkId = (int)$value;
|
||||
$link = self::where('journal_links.id', $linkId)
|
||||
->leftJoin('transaction_journals as t_a', 't_a.id', '=', 'source_id')
|
||||
->leftJoin('transaction_journals as t_b', 't_b.id', '=', 'destination_id')
|
||||
|
Reference in New Issue
Block a user