mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-26 13:36:15 +00:00
Code cleanup [skip ci]
This commit is contained in:
@@ -23,7 +23,6 @@ declare(strict_types=1);
|
||||
namespace FireflyIII\Repositories\Journal;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use DB;
|
||||
use Exception;
|
||||
use FireflyIII\Factory\TransactionJournalFactory;
|
||||
use FireflyIII\Factory\TransactionJournalMetaFactory;
|
||||
|
||||
@@ -38,15 +38,6 @@ use Illuminate\Support\MessageBag;
|
||||
*/
|
||||
interface JournalRepositoryInterface
|
||||
{
|
||||
/**
|
||||
* Find a journal by its hash.
|
||||
*
|
||||
* @param string $hash
|
||||
*
|
||||
* @return TransactionJournalMeta|null
|
||||
*/
|
||||
public function findByHash(string $hash): ?TransactionJournalMeta;
|
||||
|
||||
/**
|
||||
* @param TransactionJournal $journal
|
||||
* @param TransactionType $type
|
||||
@@ -77,12 +68,22 @@ interface JournalRepositoryInterface
|
||||
* Find a specific journal.
|
||||
*
|
||||
* @param int $journalId
|
||||
*
|
||||
* @deprecated
|
||||
*
|
||||
* @return TransactionJournal
|
||||
*/
|
||||
public function find(int $journalId): TransactionJournal;
|
||||
|
||||
/**
|
||||
* Find a journal by its hash.
|
||||
*
|
||||
* @param string $hash
|
||||
*
|
||||
* @return TransactionJournalMeta|null
|
||||
*/
|
||||
public function findByHash(string $hash): ?TransactionJournalMeta;
|
||||
|
||||
/**
|
||||
* Find a specific journal.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user