Various code cleanup.

This commit is contained in:
James Cole 2020-07-31 12:45:02 +02:00
parent 4b96558433
commit b302775c37
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D
23 changed files with 23 additions and 13 deletions

View File

@ -42,6 +42,7 @@ class AdminRequestedTestMessage extends Event
/** @var User The user */
public $user;
/**
* Create a new event instance.
*

View File

@ -41,6 +41,7 @@ class RegisteredUser extends Event
/** @var User The user */
public $user;
/**
* Create a new event instance. This event is triggered when a new user registers.
*

View File

@ -43,6 +43,7 @@ class RequestedNewPassword extends Event
/** @var User The user */
public $user;
/**
* Create a new event instance. This event is triggered when a users tries to reset his or her password.
*

View File

@ -46,6 +46,7 @@ class RequestedReportOnJournals
/** @var int The ID of the user. */
public $userId;
/**
* Create a new event instance.
*

View File

@ -40,6 +40,7 @@ class RequestedVersionCheckStatus extends Event
/** @var User The user */
public $user;
/**
* Create a new event instance. This event is triggered when Firefly III wants to know
* what the deal is with the version checker.

View File

@ -41,6 +41,7 @@ class StoredTransactionGroup extends Event
/** @var TransactionGroup The group that was stored. */
public $transactionGroup;
/**
* Create a new event instance.
*

View File

@ -31,7 +31,6 @@ use Illuminate\Queue\SerializesModels;
* Class UpdatedTransactionGroup.
*
* @codeCoverageIgnore
*
*/
class UpdatedTransactionGroup extends Event
{
@ -42,6 +41,7 @@ class UpdatedTransactionGroup extends Event
/** @var TransactionGroup The group that was stored. */
public $transactionGroup;
/**
* Create a new event instance.
*

View File

@ -45,6 +45,7 @@ class UserChangedEmail extends Event
/** @var User The user itself */
public $user;
/**
* UserChangedEmail constructor.
*

View File

@ -31,10 +31,10 @@ use Exception;
use FireflyIII\Jobs\MailError;
use Illuminate\Auth\AuthenticationException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Illuminate\Http\Request;
use Illuminate\Validation\ValidationException as LaravelValidationException;
use League\OAuth2\Server\Exception\OAuthServerException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Illuminate\Http\Request;
use Throwable;
/**
* Class Handler

View File

@ -113,7 +113,7 @@ class AccountFactory
}
// fix virtual balance when it's empty
if ('' === (string)$databaseData['virtual_balance']) {
if ('' === (string) $databaseData['virtual_balance']) {
$databaseData['virtual_balance'] = null;
}
@ -152,7 +152,6 @@ class AccountFactory
}
/**
*
* @param string $accountName
* @param string $accountType
*
@ -198,7 +197,6 @@ class AccountFactory
* @param null|string $accountType
*
* @return AccountType|null
*
*/
protected function getAccountType(?int $accountTypeId, ?string $accountType): ?AccountType
{

View File

@ -39,6 +39,7 @@ class AttachmentFactory
/** @var User */
private $user;
/**
* Constructor.
*

View File

@ -43,6 +43,7 @@ class BillFactory
/** @var User */
private $user;
/**
* Constructor.
*

View File

@ -21,7 +21,6 @@
/** @noinspection MultipleReturnStatementsInspection */
declare(strict_types=1);
namespace FireflyIII\Factory;
use FireflyIII\Models\Budget;
@ -36,6 +35,7 @@ class BudgetFactory
/** @var User */
private $user;
/**
* Constructor.
*
@ -53,7 +53,6 @@ class BudgetFactory
* @param null|string $budgetName
*
* @return Budget|null
*
*/
public function find(?int $budgetId, ?string $budgetName): ?Budget
{

View File

@ -38,6 +38,7 @@ class CategoryFactory
/** @var User */
private $user;
/**
* Constructor.
*

View File

@ -54,7 +54,6 @@ class PiggyBankEventFactory
* @param PiggyBank|null $piggyBank
*
* @return PiggyBankEvent|null
*
*/
public function create(TransactionJournal $journal, ?PiggyBank $piggyBank): ?PiggyBankEvent
{

View File

@ -36,6 +36,7 @@ class PiggyBankFactory
/** @var User */
private $user;
/**
* Constructor.
*
@ -53,7 +54,6 @@ class PiggyBankFactory
* @param null|string $piggyBankName
*
* @return PiggyBank|null
*
*/
public function find(?int $piggyBankId, ?string $piggyBankName): ?PiggyBank
{

View File

@ -39,12 +39,13 @@ use Log;
*/
class RecurrenceFactory
{
use TransactionTypeTrait, RecurringTransactionTrait;
/** @var MessageBag */
private $errors;
/** @var User */
private $user;
use TransactionTypeTrait, RecurringTransactionTrait;
/**
* Constructor.

View File

@ -40,6 +40,7 @@ class TagFactory
/** @var User */
private $user;
/**
* Constructor.
*

View File

@ -82,7 +82,6 @@ class TransactionCurrencyFactory
* @param null|string $currencyCode
*
* @return TransactionCurrency|null
*
*/
public function find(?int $currencyId, ?string $currencyCode): ?TransactionCurrency
{

View File

@ -51,6 +51,7 @@ class TransactionFactory
/** @var User */
private $user;
/**
* Constructor.
*

View File

@ -40,6 +40,7 @@ class TransactionGroupFactory
/** @var User The user */
private $user;
/**
* TransactionGroupFactory constructor.
*/

View File

@ -76,6 +76,7 @@ class TransactionJournalFactory
/** @var User The user */
private $user;
/**
* Constructor.
*
@ -101,7 +102,7 @@ class TransactionJournalFactory
'import_hash', 'import_hash_v2', 'external_id', 'original_source',
// recurring transactions
'recurrence_total', 'recurrence_count'
'recurrence_total', 'recurrence_count',
];

View File

@ -19,7 +19,7 @@ class ChangesForV540 extends Migration
{
Schema::table(
'oauth_clients', static function (Blueprint $table) {
$table->dropColumn('order');
$table->dropColumn('provider');
}
);