mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-04 19:53:44 +00:00
Refactor code.
This commit is contained in:
@@ -41,10 +41,8 @@ class RecurrenceFactory
|
||||
{
|
||||
|
||||
use TransactionTypeTrait, RecurringTransactionTrait;
|
||||
/** @var MessageBag */
|
||||
private $errors;
|
||||
/** @var User */
|
||||
private $user;
|
||||
private MessageBag $errors;
|
||||
private User $user;
|
||||
|
||||
|
||||
/**
|
||||
@@ -54,9 +52,6 @@ class RecurrenceFactory
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
if ('testing' === config('app.env')) {
|
||||
Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this)));
|
||||
}
|
||||
$this->errors = new MessageBag;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user