mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-15 22:28:14 +00:00
fix phpstan warnings
This commit is contained in:
@@ -1,11 +1,22 @@
|
|||||||
parameters:
|
parameters:
|
||||||
|
scanFiles:
|
||||||
|
- ../_ide_helper_models.php
|
||||||
|
- ../_ide_helper.php
|
||||||
|
paths:
|
||||||
|
- ../app
|
||||||
|
- ../database
|
||||||
|
- ../routes
|
||||||
|
- ../config
|
||||||
|
- ../bootstrap/app.php
|
||||||
universalObjectCratesClasses:
|
universalObjectCratesClasses:
|
||||||
- Illuminate\Database\Eloquent\Model
|
- Illuminate\Database\Eloquent\Model
|
||||||
# TODO: slowly remove these parameters and fix the issues found.
|
# TODO: slowly remove these parameters and fix the issues found.
|
||||||
reportUnmatchedIgnoredErrors: false
|
reportUnmatchedIgnoredErrors: false
|
||||||
ignoreErrors:
|
ignoreErrors:
|
||||||
# TODO: slowly remove these exceptions and fix the issues found.
|
# TODO: slowly remove these exceptions and fix the issues found.
|
||||||
# - '#Dynamic call to static method#' # all the Laravel ORM things depend on this.
|
- '#Dynamic call to static method#' # all the Laravel ORM things depend on this.
|
||||||
|
- identifier: varTag.nativeType
|
||||||
|
- identifier: varTag.type
|
||||||
# - '#Control structures using switch should not be used.#' # switch is fine in some cases.
|
# - '#Control structures using switch should not be used.#' # switch is fine in some cases.
|
||||||
# - '#with no value type specified in iterable type array#' # remove this rule when all other issues are solved.
|
# - '#with no value type specified in iterable type array#' # remove this rule when all other issues are solved.
|
||||||
# - '#has no value type specified in iterable type array#' # remove this rule when all other issues are solved.
|
# - '#has no value type specified in iterable type array#' # remove this rule when all other issues are solved.
|
||||||
@@ -48,14 +59,9 @@ parameters:
|
|||||||
# message: '#Either catch a more specific exception#'
|
# message: '#Either catch a more specific exception#'
|
||||||
# paths:
|
# paths:
|
||||||
# - ../app/Support/Form/FormSupport.php
|
# - ../app/Support/Form/FormSupport.php
|
||||||
paths:
|
|
||||||
- ../app
|
|
||||||
- ../database
|
|
||||||
- ../routes
|
|
||||||
- ../config
|
|
||||||
- ../bootstrap/app.php
|
|
||||||
|
|
||||||
# The level 8 is the highest level. original was 5
|
# The level 8 is the highest level. original was 5
|
||||||
# 7 is more than enough, higher just leaves NULL things.
|
# 7 is more than enough, higher just leaves NULL things.
|
||||||
level: 1
|
level: 2
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ class ExportController extends Controller
|
|||||||
*
|
*
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function accounts(ExportRequest $request): LaravelResponse
|
public function accounts(ExportRequest $request): LaravelResponse
|
||||||
{
|
{
|
||||||
@@ -100,7 +100,7 @@ class ExportController extends Controller
|
|||||||
*
|
*
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function bills(ExportRequest $request): LaravelResponse
|
public function bills(ExportRequest $request): LaravelResponse
|
||||||
{
|
{
|
||||||
@@ -115,7 +115,7 @@ class ExportController extends Controller
|
|||||||
*
|
*
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function budgets(ExportRequest $request): LaravelResponse
|
public function budgets(ExportRequest $request): LaravelResponse
|
||||||
{
|
{
|
||||||
@@ -130,7 +130,7 @@ class ExportController extends Controller
|
|||||||
*
|
*
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function categories(ExportRequest $request): LaravelResponse
|
public function categories(ExportRequest $request): LaravelResponse
|
||||||
{
|
{
|
||||||
@@ -145,7 +145,7 @@ class ExportController extends Controller
|
|||||||
*
|
*
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function piggyBanks(ExportRequest $request): LaravelResponse
|
public function piggyBanks(ExportRequest $request): LaravelResponse
|
||||||
{
|
{
|
||||||
@@ -160,7 +160,7 @@ class ExportController extends Controller
|
|||||||
*
|
*
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function recurring(ExportRequest $request): LaravelResponse
|
public function recurring(ExportRequest $request): LaravelResponse
|
||||||
{
|
{
|
||||||
@@ -175,7 +175,7 @@ class ExportController extends Controller
|
|||||||
*
|
*
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function rules(ExportRequest $request): LaravelResponse
|
public function rules(ExportRequest $request): LaravelResponse
|
||||||
{
|
{
|
||||||
@@ -190,7 +190,7 @@ class ExportController extends Controller
|
|||||||
*
|
*
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function tags(ExportRequest $request): LaravelResponse
|
public function tags(ExportRequest $request): LaravelResponse
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ class ShowController extends Controller
|
|||||||
*
|
*
|
||||||
* Display a listing of the budget limits for this budget.
|
* Display a listing of the budget limits for this budget.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function indexAll(SameDateRequest $request): JsonResponse
|
public function indexAll(SameDateRequest $request): JsonResponse
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ class ExpressionController extends Controller
|
|||||||
* This endpoint is documented at:
|
* This endpoint is documented at:
|
||||||
* https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/rules/validateExpression
|
* https://api-docs.firefly-iii.org/?urls.primaryName=2.0.0%20(v1)#/rules/validateExpression
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validateExpression(ValidateExpressionRequest $request): JsonResponse
|
public function validateExpression(ValidateExpressionRequest $request): JsonResponse
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ class CategoryController extends Controller
|
|||||||
*
|
*
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function dashboard(DateRequest $request): JsonResponse
|
public function dashboard(DateRequest $request): JsonResponse
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ class Controller extends BaseController
|
|||||||
* TODO duplicate from V1 controller
|
* TODO duplicate from V1 controller
|
||||||
* Method to grab all parameters from the URL.
|
* Method to grab all parameters from the URL.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.NPathComplexity)
|
* @SuppressWarnings("PHPMD.NPathComplexity")
|
||||||
*/
|
*/
|
||||||
private function getParameters(): ParameterBag
|
private function getParameters(): ParameterBag
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ class SumController extends Controller
|
|||||||
*
|
*
|
||||||
* TODO see autocomplete/accountcontroller for list.
|
* TODO see autocomplete/accountcontroller for list.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function paid(DateRequest $request): JsonResponse
|
public function paid(DateRequest $request): JsonResponse
|
||||||
{
|
{
|
||||||
@@ -74,7 +74,7 @@ class SumController extends Controller
|
|||||||
*
|
*
|
||||||
* TODO see autocomplete/accountcontroller for list.
|
* TODO see autocomplete/accountcontroller for list.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function unpaid(DateRequest $request): JsonResponse
|
public function unpaid(DateRequest $request): JsonResponse
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ class BasicController extends Controller
|
|||||||
*
|
*
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function basic(DateRequest $request): JsonResponse
|
public function basic(DateRequest $request): JsonResponse
|
||||||
{
|
{
|
||||||
@@ -223,7 +223,7 @@ class BasicController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
|
||||||
*/
|
*/
|
||||||
private function getLeftToSpendInfo(Carbon $start, Carbon $end): array
|
private function getLeftToSpendInfo(Carbon $start, Carbon $end): array
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ class UpgradesToGroups extends Command
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
|
||||||
*/
|
*/
|
||||||
private function generateTransaction(TransactionJournal $journal, Transaction $transaction): array
|
private function generateTransaction(TransactionJournal $journal, Transaction $transaction): array
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ class TriggeredAuditLog extends Event
|
|||||||
/**
|
/**
|
||||||
* Create a new event instance.
|
* Create a new event instance.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
|
* @SuppressWarnings("PHPMD.ExcessiveParameterList")
|
||||||
*/
|
*/
|
||||||
public function __construct(Model $changer, Model $auditable, string $field, mixed $before, mixed $after)
|
public function __construct(Model $changer, Model $auditable, string $field, mixed $before, mixed $after)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class GracefulNotFoundHandler extends ExceptionHandler
|
|||||||
*
|
*
|
||||||
* @throws \Throwable
|
* @throws \Throwable
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
|
* @SuppressWarnings("PHPMD.CyclomaticComplexity")
|
||||||
*/
|
*/
|
||||||
public function render($request, \Throwable $e): Response
|
public function render($request, \Throwable $e): Response
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -78,8 +78,8 @@ class Handler extends ExceptionHandler
|
|||||||
*
|
*
|
||||||
* @throws \Throwable
|
* @throws \Throwable
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.NPathComplexity)
|
* @SuppressWarnings("PHPMD.NPathComplexity")
|
||||||
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
|
* @SuppressWarnings("PHPMD.CyclomaticComplexity")
|
||||||
*/
|
*/
|
||||||
public function render($request, \Throwable $e): Response
|
public function render($request, \Throwable $e): Response
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ class RecurrenceFactory
|
|||||||
/**
|
/**
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.NPathComplexity)
|
* @SuppressWarnings("PHPMD.NPathComplexity")
|
||||||
*/
|
*/
|
||||||
public function create(array $data): Recurrence
|
public function create(array $data): Recurrence
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ class TransactionFactory
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function setUser(User $user): void
|
public function setUser(User $user): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ class TransactionJournalFactory
|
|||||||
* @throws DuplicateTransactionException
|
* @throws DuplicateTransactionException
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
|
||||||
*/
|
*/
|
||||||
private function createJournal(NullArrayObject $row): ?TransactionJournal
|
private function createJournal(NullArrayObject $row): ?TransactionJournal
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ class UserEventHandler
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function createExchangeRates(RegisteredUser $event): void
|
public function createExchangeRates(RegisteredUser $event): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ trait AttachmentCollection
|
|||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
$filter = static function (array $object) use ($name): bool {
|
$filter = static function (array $object) use ($name): bool {
|
||||||
/** @var array $transaction */
|
/** @var array $transaction */
|
||||||
@@ -159,7 +159,7 @@ trait AttachmentCollection
|
|||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
$filter = static function (array $object) use ($name): bool {
|
$filter = static function (array $object) use ($name): bool {
|
||||||
/** @var array $transaction */
|
/** @var array $transaction */
|
||||||
@@ -194,7 +194,7 @@ trait AttachmentCollection
|
|||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
$filter = static function (array $object) use ($name): bool {
|
$filter = static function (array $object) use ($name): bool {
|
||||||
/** @var array $transaction */
|
/** @var array $transaction */
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ class EditController extends Controller
|
|||||||
/**
|
/**
|
||||||
* Edit account overview. It's complex, but it just has a lot of if/then/else.
|
* Edit account overview. It's complex, but it just has a lot of if/then/else.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.NPathComplexity)
|
* @SuppressWarnings("PHPMD.NPathComplexity")
|
||||||
*
|
*
|
||||||
* @return Factory|Redirector|RedirectResponse|View
|
* @return Factory|Redirector|RedirectResponse|View
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ class LoginController extends Controller
|
|||||||
/**
|
/**
|
||||||
* Get the failed login response instance.
|
* Get the failed login response instance.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*
|
*
|
||||||
* @throws ValidationException
|
* @throws ValidationException
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -483,7 +483,7 @@ class BudgetController extends Controller
|
|||||||
*
|
*
|
||||||
* Suppress warning because this method will be replaced by API calls.
|
* Suppress warning because this method will be replaced by API calls.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
|
* @SuppressWarnings("PHPMD.ExcessiveParameterList")
|
||||||
*/
|
*/
|
||||||
public function period(Budget $budget, TransactionCurrency $currency, Collection $accounts, Carbon $start, Carbon $end): JsonResponse
|
public function period(Budget $budget, TransactionCurrency $currency, Collection $accounts, Carbon $start, Carbon $end): JsonResponse
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ class ExpenseReportController extends Controller
|
|||||||
*
|
*
|
||||||
* TODO this chart is not multi currency aware.
|
* TODO this chart is not multi currency aware.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
|
||||||
*/
|
*/
|
||||||
public function mainChart(Collection $accounts, Collection $expense, Carbon $start, Carbon $end): JsonResponse
|
public function mainChart(Collection $accounts, Collection $expense, Carbon $start, Carbon $end): JsonResponse
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ class ReportController extends Controller
|
|||||||
/**
|
/**
|
||||||
* Shows income and expense, debit/credit: operations.
|
* Shows income and expense, debit/credit: operations.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
|
||||||
*/
|
*/
|
||||||
public function operations(Collection $accounts, Carbon $start, Carbon $end): JsonResponse
|
public function operations(Collection $accounts, Carbon $start, Carbon $end): JsonResponse
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -60,8 +60,8 @@ class RecurrenceController extends Controller
|
|||||||
/**
|
/**
|
||||||
* Shows all events for a repetition. Used in calendar.
|
* Shows all events for a repetition. Used in calendar.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.NPathComplexity)
|
* @SuppressWarnings("PHPMD.NPathComplexity")
|
||||||
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
|
* @SuppressWarnings("PHPMD.CyclomaticComplexity")
|
||||||
*
|
*
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -211,8 +211,8 @@ class PreferencesController extends Controller
|
|||||||
*
|
*
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
|
||||||
* @SuppressWarnings(PHPMD.NPathComplexity)
|
* @SuppressWarnings("PHPMD.NPathComplexity")
|
||||||
*/
|
*/
|
||||||
public function postIndex(PreferencesRequest $request)
|
public function postIndex(PreferencesRequest $request)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ class CreateController extends Controller
|
|||||||
/**
|
/**
|
||||||
* @return Factory|\Illuminate\Contracts\View\View
|
* @return Factory|\Illuminate\Contracts\View\View
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
|
||||||
*/
|
*/
|
||||||
public function createFromJournal(Request $request, TransactionJournal $journal)
|
public function createFromJournal(Request $request, TransactionJournal $journal)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ class CategoryController extends Controller
|
|||||||
/**
|
/**
|
||||||
* @return Factory|View
|
* @return Factory|View
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
|
||||||
*/
|
*/
|
||||||
public function accounts(Collection $accounts, Collection $categories, Carbon $start, Carbon $end)
|
public function accounts(Collection $accounts, Collection $categories, Carbon $start, Carbon $end)
|
||||||
{
|
{
|
||||||
@@ -358,7 +358,7 @@ class CategoryController extends Controller
|
|||||||
/**
|
/**
|
||||||
* @return Factory|View
|
* @return Factory|View
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
|
||||||
*/
|
*/
|
||||||
public function categories(Collection $accounts, Collection $categories, Carbon $start, Carbon $end)
|
public function categories(Collection $accounts, Collection $categories, Carbon $start, Carbon $end)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ class DoubleController extends Controller
|
|||||||
/**
|
/**
|
||||||
* @return Factory|View
|
* @return Factory|View
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
|
||||||
*/
|
*/
|
||||||
public function operations(Collection $accounts, Collection $double, Carbon $start, Carbon $end)
|
public function operations(Collection $accounts, Collection $double, Carbon $start, Carbon $end)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ class TagController extends Controller
|
|||||||
/**
|
/**
|
||||||
* @return Factory|View
|
* @return Factory|View
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
|
||||||
*/
|
*/
|
||||||
public function accountPerTag(Collection $accounts, Collection $tags, Carbon $start, Carbon $end)
|
public function accountPerTag(Collection $accounts, Collection $tags, Carbon $start, Carbon $end)
|
||||||
{
|
{
|
||||||
@@ -153,7 +153,7 @@ class TagController extends Controller
|
|||||||
/**
|
/**
|
||||||
* @return Factory|View
|
* @return Factory|View
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
|
||||||
*/
|
*/
|
||||||
public function accounts(Collection $accounts, Collection $tags, Carbon $start, Carbon $end)
|
public function accounts(Collection $accounts, Collection $tags, Carbon $start, Carbon $end)
|
||||||
{
|
{
|
||||||
@@ -355,7 +355,7 @@ class TagController extends Controller
|
|||||||
/**
|
/**
|
||||||
* @return Factory|View
|
* @return Factory|View
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
|
||||||
*/
|
*/
|
||||||
public function tags(Collection $accounts, Collection $tags, Carbon $start, Carbon $end)
|
public function tags(Collection $accounts, Collection $tags, Carbon $start, Carbon $end)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ class Authenticate
|
|||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
* @throws AuthenticationException
|
* @throws AuthenticationException
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
protected function authenticate($request, array $guards)
|
protected function authenticate($request, array $guards)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ class RecurrenceFormRequest extends FormRequest
|
|||||||
*
|
*
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
|
||||||
*/
|
*/
|
||||||
public function getAll(): array
|
public function getAll(): array
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ namespace FireflyIII\Models;
|
|||||||
|
|
||||||
use FireflyIII\Enums\UserRoleEnum;
|
use FireflyIII\Enums\UserRoleEnum;
|
||||||
use FireflyIII\Exceptions\FireflyException;
|
use FireflyIII\Exceptions\FireflyException;
|
||||||
|
use FireflyIII\Repositories\PiggyBank\PiggyBankRepositoryInterface;
|
||||||
use FireflyIII\Support\Models\ReturnsIntegerIdTrait;
|
use FireflyIII\Support\Models\ReturnsIntegerIdTrait;
|
||||||
use FireflyIII\User;
|
use FireflyIII\User;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
@@ -151,7 +152,7 @@ class UserGroup extends Model
|
|||||||
*/
|
*/
|
||||||
public function piggyBanks(): HasManyThrough
|
public function piggyBanks(): HasManyThrough
|
||||||
{
|
{
|
||||||
throw new FireflyException('This user group method is EOL.');
|
return $this->hasManyThrough( PiggyBank::class, Account::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function recurrences(): HasMany
|
public function recurrences(): HasMany
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class UnknownUserLoginAttempt extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toArray(OwnerNotifiable $notifiable)
|
public function toArray(OwnerNotifiable $notifiable)
|
||||||
{
|
{
|
||||||
@@ -57,7 +57,7 @@ class UnknownUserLoginAttempt extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toMail(OwnerNotifiable $notifiable): MailMessage
|
public function toMail(OwnerNotifiable $notifiable): MailMessage
|
||||||
{
|
{
|
||||||
@@ -73,7 +73,7 @@ class UnknownUserLoginAttempt extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toNtfy(OwnerNotifiable $notifiable): Message
|
public function toNtfy(OwnerNotifiable $notifiable): Message
|
||||||
{
|
{
|
||||||
@@ -87,7 +87,7 @@ class UnknownUserLoginAttempt extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toPushover(OwnerNotifiable $notifiable): PushoverMessage
|
public function toPushover(OwnerNotifiable $notifiable): PushoverMessage
|
||||||
{
|
{
|
||||||
@@ -97,7 +97,7 @@ class UnknownUserLoginAttempt extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toSlack(OwnerNotifiable $notifiable): SlackMessage
|
public function toSlack(OwnerNotifiable $notifiable): SlackMessage
|
||||||
{
|
{
|
||||||
@@ -107,7 +107,7 @@ class UnknownUserLoginAttempt extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(OwnerNotifiable $notifiable)
|
public function via(OwnerNotifiable $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ class UserInvitation extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toArray(OwnerNotifiable $notifiable)
|
public function toArray(OwnerNotifiable $notifiable)
|
||||||
{
|
{
|
||||||
@@ -64,7 +64,7 @@ class UserInvitation extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toMail(OwnerNotifiable $notifiable)
|
public function toMail(OwnerNotifiable $notifiable)
|
||||||
{
|
{
|
||||||
@@ -81,7 +81,7 @@ class UserInvitation extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toNtfy(OwnerNotifiable $notifiable): Message
|
public function toNtfy(OwnerNotifiable $notifiable): Message
|
||||||
{
|
{
|
||||||
@@ -96,7 +96,7 @@ class UserInvitation extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toPushover(OwnerNotifiable $notifiable): PushoverMessage
|
public function toPushover(OwnerNotifiable $notifiable): PushoverMessage
|
||||||
{
|
{
|
||||||
@@ -108,7 +108,7 @@ class UserInvitation extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toSlack(OwnerNotifiable $notifiable)
|
public function toSlack(OwnerNotifiable $notifiable)
|
||||||
{
|
{
|
||||||
@@ -118,7 +118,7 @@ class UserInvitation extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(OwnerNotifiable $notifiable)
|
public function via(OwnerNotifiable $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ class UserRegistration extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toArray(OwnerNotifiable $notifiable)
|
public function toArray(OwnerNotifiable $notifiable)
|
||||||
{
|
{
|
||||||
@@ -64,7 +64,7 @@ class UserRegistration extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toMail(OwnerNotifiable $notifiable)
|
public function toMail(OwnerNotifiable $notifiable)
|
||||||
{
|
{
|
||||||
@@ -80,7 +80,7 @@ class UserRegistration extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toNtfy(OwnerNotifiable $notifiable): Message
|
public function toNtfy(OwnerNotifiable $notifiable): Message
|
||||||
{
|
{
|
||||||
@@ -95,7 +95,7 @@ class UserRegistration extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toPushover(OwnerNotifiable $notifiable): PushoverMessage
|
public function toPushover(OwnerNotifiable $notifiable): PushoverMessage
|
||||||
{
|
{
|
||||||
@@ -107,7 +107,7 @@ class UserRegistration extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toSlack(OwnerNotifiable $notifiable)
|
public function toSlack(OwnerNotifiable $notifiable)
|
||||||
{
|
{
|
||||||
@@ -115,7 +115,7 @@ class UserRegistration extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(OwnerNotifiable $notifiable)
|
public function via(OwnerNotifiable $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class VersionCheckResult extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toArray(OwnerNotifiable $notifiable)
|
public function toArray(OwnerNotifiable $notifiable)
|
||||||
{
|
{
|
||||||
@@ -59,7 +59,7 @@ class VersionCheckResult extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toMail(OwnerNotifiable $notifiable)
|
public function toMail(OwnerNotifiable $notifiable)
|
||||||
{
|
{
|
||||||
@@ -70,7 +70,7 @@ class VersionCheckResult extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toNtfy(OwnerNotifiable $notifiable): Message
|
public function toNtfy(OwnerNotifiable $notifiable): Message
|
||||||
{
|
{
|
||||||
@@ -85,7 +85,7 @@ class VersionCheckResult extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toPushover(OwnerNotifiable $notifiable): PushoverMessage
|
public function toPushover(OwnerNotifiable $notifiable): PushoverMessage
|
||||||
{
|
{
|
||||||
@@ -97,7 +97,7 @@ class VersionCheckResult extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toSlack(OwnerNotifiable $notifiable)
|
public function toSlack(OwnerNotifiable $notifiable)
|
||||||
{
|
{
|
||||||
@@ -109,7 +109,7 @@ class VersionCheckResult extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(OwnerNotifiable $notifiable)
|
public function via(OwnerNotifiable $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class DisabledMFANotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toArray(User $notifiable)
|
public function toArray(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -57,7 +57,7 @@ class DisabledMFANotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toMail(User $notifiable)
|
public function toMail(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -82,7 +82,7 @@ class DisabledMFANotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toPushover(User $notifiable): PushoverMessage
|
public function toPushover(User $notifiable): PushoverMessage
|
||||||
{
|
{
|
||||||
@@ -92,7 +92,7 @@ class DisabledMFANotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toSlack(User $notifiable)
|
public function toSlack(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -102,7 +102,7 @@ class DisabledMFANotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(User $notifiable)
|
public function via(User $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class EnabledMFANotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toArray(User $notifiable)
|
public function toArray(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -57,7 +57,7 @@ class EnabledMFANotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toMail(User $notifiable)
|
public function toMail(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -82,7 +82,7 @@ class EnabledMFANotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toPushover(User $notifiable): PushoverMessage
|
public function toPushover(User $notifiable): PushoverMessage
|
||||||
{
|
{
|
||||||
@@ -92,7 +92,7 @@ class EnabledMFANotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toSlack(User $notifiable)
|
public function toSlack(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -102,7 +102,7 @@ class EnabledMFANotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(User $notifiable)
|
public function via(User $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class MFABackupFewLeftNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toArray(User $notifiable)
|
public function toArray(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -59,7 +59,7 @@ class MFABackupFewLeftNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toMail(User $notifiable)
|
public function toMail(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -84,7 +84,7 @@ class MFABackupFewLeftNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toPushover(User $notifiable): PushoverMessage
|
public function toPushover(User $notifiable): PushoverMessage
|
||||||
{
|
{
|
||||||
@@ -94,7 +94,7 @@ class MFABackupFewLeftNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toSlack(User $notifiable)
|
public function toSlack(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -104,7 +104,7 @@ class MFABackupFewLeftNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(User $notifiable)
|
public function via(User $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class MFABackupNoLeftNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toArray(User $notifiable)
|
public function toArray(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -57,7 +57,7 @@ class MFABackupNoLeftNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toMail(User $notifiable)
|
public function toMail(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -82,7 +82,7 @@ class MFABackupNoLeftNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toPushover(User $notifiable): PushoverMessage
|
public function toPushover(User $notifiable): PushoverMessage
|
||||||
{
|
{
|
||||||
@@ -92,7 +92,7 @@ class MFABackupNoLeftNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toSlack(User $notifiable)
|
public function toSlack(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -102,7 +102,7 @@ class MFABackupNoLeftNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(User $notifiable)
|
public function via(User $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ class MFAManyFailedAttemptsNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toMail(User $notifiable)
|
public function toMail(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -81,7 +81,7 @@ class MFAManyFailedAttemptsNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toPushover(User $notifiable): PushoverMessage
|
public function toPushover(User $notifiable): PushoverMessage
|
||||||
{
|
{
|
||||||
@@ -91,7 +91,7 @@ class MFAManyFailedAttemptsNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toSlack(User $notifiable)
|
public function toSlack(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -101,7 +101,7 @@ class MFAManyFailedAttemptsNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(User $notifiable)
|
public function via(User $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class MFAUsedBackupCodeNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toArray(User $notifiable)
|
public function toArray(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -57,7 +57,7 @@ class MFAUsedBackupCodeNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toMail(User $notifiable)
|
public function toMail(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -82,7 +82,7 @@ class MFAUsedBackupCodeNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toPushover(User $notifiable): PushoverMessage
|
public function toPushover(User $notifiable): PushoverMessage
|
||||||
{
|
{
|
||||||
@@ -92,7 +92,7 @@ class MFAUsedBackupCodeNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toSlack(User $notifiable)
|
public function toSlack(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -102,7 +102,7 @@ class MFAUsedBackupCodeNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(User $notifiable)
|
public function via(User $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class NewBackupCodesNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toArray(User $notifiable)
|
public function toArray(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -57,7 +57,7 @@ class NewBackupCodesNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toMail(User $notifiable)
|
public function toMail(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -82,7 +82,7 @@ class NewBackupCodesNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toPushover(User $notifiable): PushoverMessage
|
public function toPushover(User $notifiable): PushoverMessage
|
||||||
{
|
{
|
||||||
@@ -92,7 +92,7 @@ class NewBackupCodesNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toSlack(User $notifiable)
|
public function toSlack(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -102,7 +102,7 @@ class NewBackupCodesNotification extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(User $notifiable)
|
public function via(User $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ class UserFailedLoginAttempt extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toMail(User $notifiable)
|
public function toMail(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -79,7 +79,7 @@ class UserFailedLoginAttempt extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toPushover(User $notifiable): PushoverMessage
|
public function toPushover(User $notifiable): PushoverMessage
|
||||||
{
|
{
|
||||||
@@ -89,7 +89,7 @@ class UserFailedLoginAttempt extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toSlack(User $notifiable)
|
public function toSlack(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -99,7 +99,7 @@ class UserFailedLoginAttempt extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(User $notifiable)
|
public function via(User $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class OwnerTestNotificationEmail extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toArray(OwnerNotifiable $notifiable)
|
public function toArray(OwnerNotifiable $notifiable)
|
||||||
{
|
{
|
||||||
@@ -53,7 +53,7 @@ class OwnerTestNotificationEmail extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toMail(OwnerNotifiable $notifiable)
|
public function toMail(OwnerNotifiable $notifiable)
|
||||||
{
|
{
|
||||||
@@ -66,7 +66,7 @@ class OwnerTestNotificationEmail extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(OwnerNotifiable $notifiable)
|
public function via(OwnerNotifiable $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class OwnerTestNotificationNtfy extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*
|
*
|
||||||
* @param mixed $notifiable
|
* @param mixed $notifiable
|
||||||
*/
|
*/
|
||||||
@@ -59,7 +59,7 @@ class OwnerTestNotificationNtfy extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toNtfy(OwnerNotifiable $notifiable): Message
|
public function toNtfy(OwnerNotifiable $notifiable): Message
|
||||||
{
|
{
|
||||||
@@ -74,7 +74,7 @@ class OwnerTestNotificationNtfy extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(OwnerNotifiable $notifiable)
|
public function via(OwnerNotifiable $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class OwnerTestNotificationPushover extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toArray(OwnerNotifiable $notifiable)
|
public function toArray(OwnerNotifiable $notifiable)
|
||||||
{
|
{
|
||||||
@@ -57,7 +57,7 @@ class OwnerTestNotificationPushover extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toPushover(OwnerNotifiable $notifiable): PushoverMessage
|
public function toPushover(OwnerNotifiable $notifiable): PushoverMessage
|
||||||
{
|
{
|
||||||
@@ -69,7 +69,7 @@ class OwnerTestNotificationPushover extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(OwnerNotifiable $notifiable)
|
public function via(OwnerNotifiable $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class OwnerTestNotificationSlack extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toArray(OwnerNotifiable $notifiable)
|
public function toArray(OwnerNotifiable $notifiable)
|
||||||
{
|
{
|
||||||
@@ -55,7 +55,7 @@ class OwnerTestNotificationSlack extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toSlack(OwnerNotifiable $notifiable)
|
public function toSlack(OwnerNotifiable $notifiable)
|
||||||
{
|
{
|
||||||
@@ -64,7 +64,7 @@ class OwnerTestNotificationSlack extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(OwnerNotifiable $notifiable)
|
public function via(OwnerNotifiable $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class UserTestNotificationEmail extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toArray(User $notifiable)
|
public function toArray(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -63,7 +63,7 @@ class UserTestNotificationEmail extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(User $notifiable)
|
public function via(User $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class UserTestNotificationNtfy extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toArray(User $notifiable)
|
public function toArray(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -57,7 +57,7 @@ class UserTestNotificationNtfy extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toNtfy(User $user): Message
|
public function toNtfy(User $user): Message
|
||||||
{
|
{
|
||||||
@@ -72,7 +72,7 @@ class UserTestNotificationNtfy extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(User $user)
|
public function via(User $user)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class UserTestNotificationPushover extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toArray(User $notifiable)
|
public function toArray(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -57,7 +57,7 @@ class UserTestNotificationPushover extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toPushover(User $notifiable): PushoverMessage
|
public function toPushover(User $notifiable): PushoverMessage
|
||||||
{
|
{
|
||||||
@@ -69,7 +69,7 @@ class UserTestNotificationPushover extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(User $notifiable)
|
public function via(User $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class UserTestNotificationSlack extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toArray(User $user)
|
public function toArray(User $user)
|
||||||
{
|
{
|
||||||
@@ -55,7 +55,7 @@ class UserTestNotificationSlack extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toSlack(User $user)
|
public function toSlack(User $user)
|
||||||
{
|
{
|
||||||
@@ -64,7 +64,7 @@ class UserTestNotificationSlack extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(User $user)
|
public function via(User $user)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ class BillReminder extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toArray(User $notifiable)
|
public function toArray(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -63,7 +63,7 @@ class BillReminder extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toMail(User $notifiable)
|
public function toMail(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -95,7 +95,7 @@ class BillReminder extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toPushover(User $notifiable): PushoverMessage
|
public function toPushover(User $notifiable): PushoverMessage
|
||||||
{
|
{
|
||||||
@@ -105,7 +105,7 @@ class BillReminder extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toSlack(User $notifiable)
|
public function toSlack(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -122,7 +122,7 @@ class BillReminder extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(User $notifiable)
|
public function via(User $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ class NewAccessToken extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toMail(User $notifiable)
|
public function toMail(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -79,7 +79,7 @@ class NewAccessToken extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toPushover(User $notifiable): PushoverMessage
|
public function toPushover(User $notifiable): PushoverMessage
|
||||||
{
|
{
|
||||||
@@ -89,7 +89,7 @@ class NewAccessToken extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toSlack(User $notifiable)
|
public function toSlack(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -97,7 +97,7 @@ class NewAccessToken extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(User $notifiable)
|
public function via(User $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ class RuleActionFailed extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toArray(User $notifiable)
|
public function toArray(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -76,7 +76,7 @@ class RuleActionFailed extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toPushover(User $notifiable): PushoverMessage
|
public function toPushover(User $notifiable): PushoverMessage
|
||||||
{
|
{
|
||||||
@@ -84,7 +84,7 @@ class RuleActionFailed extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toSlack(User $notifiable)
|
public function toSlack(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -101,7 +101,7 @@ class RuleActionFailed extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(User $notifiable)
|
public function via(User $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class TransactionCreation extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toArray(User $notifiable)
|
public function toArray(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -53,7 +53,7 @@ class TransactionCreation extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toMail(User $notifiable)
|
public function toMail(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -64,7 +64,7 @@ class TransactionCreation extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(User $notifiable)
|
public function via(User $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class UserLogin extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toMail(User $notifiable)
|
public function toMail(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -79,7 +79,7 @@ class UserLogin extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toPushover(User $notifiable): PushoverMessage
|
public function toPushover(User $notifiable): PushoverMessage
|
||||||
{
|
{
|
||||||
@@ -92,7 +92,7 @@ class UserLogin extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toSlack(User $notifiable)
|
public function toSlack(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -103,7 +103,7 @@ class UserLogin extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(User $notifiable)
|
public function via(User $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ class UserNewPassword extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toArray(User $notifiable)
|
public function toArray(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -60,7 +60,7 @@ class UserNewPassword extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toMail(User $notifiable)
|
public function toMail(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -86,7 +86,7 @@ class UserNewPassword extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toPushover(User $notifiable): PushoverMessage
|
public function toPushover(User $notifiable): PushoverMessage
|
||||||
{
|
{
|
||||||
@@ -94,7 +94,7 @@ class UserNewPassword extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toSlack(User $notifiable)
|
public function toSlack(User $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ class UserRegistration extends Notification
|
|||||||
public function __construct() {}
|
public function __construct() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toArray(User $notifiable)
|
public function toArray(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -48,7 +48,7 @@ class UserRegistration extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function toMail(User $notifiable)
|
public function toMail(User $notifiable)
|
||||||
{
|
{
|
||||||
@@ -59,7 +59,7 @@ class UserRegistration extends Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function via(User $notifiable)
|
public function via(User $notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class AuthServiceProvider extends ServiceProvider
|
|||||||
/**
|
/**
|
||||||
* Register any authentication / authorization services.
|
* Register any authentication / authorization services.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function boot(): void
|
public function boot(): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ class BudgetServiceProvider extends ServiceProvider
|
|||||||
/**
|
/**
|
||||||
* Register the application services.
|
* Register the application services.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
|
||||||
*/
|
*/
|
||||||
public function register(): void
|
public function register(): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ class FireflyServiceProvider extends ServiceProvider
|
|||||||
/**
|
/**
|
||||||
* Register stuff.
|
* Register stuff.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
|
||||||
*/
|
*/
|
||||||
public function register(): void
|
public function register(): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ class OperationsRepository implements OperationsRepositoryInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
|
* @SuppressWarnings("PHPMD.ExcessiveParameterList")
|
||||||
*/
|
*/
|
||||||
public function sumExpenses(
|
public function sumExpenses(
|
||||||
Carbon $start,
|
Carbon $start,
|
||||||
@@ -137,8 +137,8 @@ class OperationsRepository implements OperationsRepositoryInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
|
* @SuppressWarnings("PHPMD.ExcessiveParameterList")
|
||||||
* @SuppressWarnings(PHPMD.NPathComplexity)
|
* @SuppressWarnings("PHPMD.NPathComplexity")
|
||||||
*/
|
*/
|
||||||
private function getTransactionsForSum(
|
private function getTransactionsForSum(
|
||||||
string $type,
|
string $type,
|
||||||
@@ -223,7 +223,7 @@ class OperationsRepository implements OperationsRepositoryInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
|
* @SuppressWarnings("PHPMD.ExcessiveParameterList")
|
||||||
*/
|
*/
|
||||||
public function sumExpensesByDestination(
|
public function sumExpensesByDestination(
|
||||||
Carbon $start,
|
Carbon $start,
|
||||||
@@ -245,7 +245,7 @@ class OperationsRepository implements OperationsRepositoryInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
|
* @SuppressWarnings("PHPMD.ExcessiveParameterList")
|
||||||
*/
|
*/
|
||||||
public function sumExpensesBySource(
|
public function sumExpensesBySource(
|
||||||
Carbon $start,
|
Carbon $start,
|
||||||
@@ -260,7 +260,7 @@ class OperationsRepository implements OperationsRepositoryInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
|
* @SuppressWarnings("PHPMD.ExcessiveParameterList")
|
||||||
*/
|
*/
|
||||||
public function sumIncome(
|
public function sumIncome(
|
||||||
Carbon $start,
|
Carbon $start,
|
||||||
@@ -275,7 +275,7 @@ class OperationsRepository implements OperationsRepositoryInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
|
* @SuppressWarnings("PHPMD.ExcessiveParameterList")
|
||||||
*/
|
*/
|
||||||
public function sumIncomeByDestination(
|
public function sumIncomeByDestination(
|
||||||
Carbon $start,
|
Carbon $start,
|
||||||
@@ -290,7 +290,7 @@ class OperationsRepository implements OperationsRepositoryInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
|
* @SuppressWarnings("PHPMD.ExcessiveParameterList")
|
||||||
*/
|
*/
|
||||||
public function sumIncomeBySource(
|
public function sumIncomeBySource(
|
||||||
Carbon $start,
|
Carbon $start,
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ interface OperationsRepositoryInterface
|
|||||||
/**
|
/**
|
||||||
* Sum of withdrawal journals in period for a set of accounts, grouped per currency. Amounts are always negative.
|
* Sum of withdrawal journals in period for a set of accounts, grouped per currency. Amounts are always negative.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
|
* @SuppressWarnings("PHPMD.ExcessiveParameterList")
|
||||||
*/
|
*/
|
||||||
public function sumExpenses(
|
public function sumExpenses(
|
||||||
Carbon $start,
|
Carbon $start,
|
||||||
@@ -68,7 +68,7 @@ interface OperationsRepositoryInterface
|
|||||||
* Sum of withdrawal journals in period for a set of accounts, grouped per destination / currency. Amounts are
|
* Sum of withdrawal journals in period for a set of accounts, grouped per destination / currency. Amounts are
|
||||||
* always negative.
|
* always negative.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
|
* @SuppressWarnings("PHPMD.ExcessiveParameterList")
|
||||||
*/
|
*/
|
||||||
public function sumExpensesByDestination(
|
public function sumExpensesByDestination(
|
||||||
Carbon $start,
|
Carbon $start,
|
||||||
@@ -82,7 +82,7 @@ interface OperationsRepositoryInterface
|
|||||||
* Sum of withdrawal journals in period for a set of accounts, grouped per source / currency. Amounts are always
|
* Sum of withdrawal journals in period for a set of accounts, grouped per source / currency. Amounts are always
|
||||||
* negative.
|
* negative.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
|
* @SuppressWarnings("PHPMD.ExcessiveParameterList")
|
||||||
*/
|
*/
|
||||||
public function sumExpensesBySource(
|
public function sumExpensesBySource(
|
||||||
Carbon $start,
|
Carbon $start,
|
||||||
@@ -95,7 +95,7 @@ interface OperationsRepositoryInterface
|
|||||||
/**
|
/**
|
||||||
* Sum of income journals in period for a set of accounts, grouped per currency. Amounts are always positive.
|
* Sum of income journals in period for a set of accounts, grouped per currency. Amounts are always positive.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
|
* @SuppressWarnings("PHPMD.ExcessiveParameterList")
|
||||||
*/
|
*/
|
||||||
public function sumIncome(
|
public function sumIncome(
|
||||||
Carbon $start,
|
Carbon $start,
|
||||||
@@ -109,7 +109,7 @@ interface OperationsRepositoryInterface
|
|||||||
* Sum of income journals in period for a set of accounts, grouped per destination + currency. Amounts are always
|
* Sum of income journals in period for a set of accounts, grouped per destination + currency. Amounts are always
|
||||||
* positive.
|
* positive.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
|
* @SuppressWarnings("PHPMD.ExcessiveParameterList")
|
||||||
*/
|
*/
|
||||||
public function sumIncomeByDestination(
|
public function sumIncomeByDestination(
|
||||||
Carbon $start,
|
Carbon $start,
|
||||||
@@ -123,7 +123,7 @@ interface OperationsRepositoryInterface
|
|||||||
* Sum of income journals in period for a set of accounts, grouped per source + currency. Amounts are always
|
* Sum of income journals in period for a set of accounts, grouped per source + currency. Amounts are always
|
||||||
* positive.
|
* positive.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
|
* @SuppressWarnings("PHPMD.ExcessiveParameterList")
|
||||||
*/
|
*/
|
||||||
public function sumIncomeBySource(
|
public function sumIncomeBySource(
|
||||||
Carbon $start,
|
Carbon $start,
|
||||||
|
|||||||
@@ -721,7 +721,7 @@ class BudgetRepository implements BudgetRepositoryInterface
|
|||||||
/**
|
/**
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.NPathComplexity)
|
* @SuppressWarnings("PHPMD.NPathComplexity")
|
||||||
*/
|
*/
|
||||||
public function store(array $data): Budget
|
public function store(array $data): Budget
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ class OperationsRepository implements OperationsRepositoryInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
|
* @SuppressWarnings("PHPMD.ExcessiveParameterList")
|
||||||
*/
|
*/
|
||||||
public function sumExpenses(
|
public function sumExpenses(
|
||||||
Carbon $start,
|
Carbon $start,
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ interface OperationsRepositoryInterface
|
|||||||
public function setUser(null|Authenticatable|User $user): void;
|
public function setUser(null|Authenticatable|User $user): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
|
* @SuppressWarnings("PHPMD.ExcessiveParameterList")
|
||||||
*/
|
*/
|
||||||
public function sumExpenses(
|
public function sumExpenses(
|
||||||
Carbon $start,
|
Carbon $start,
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ class UserGroupRepository implements UserGroupRepositoryInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.NPathComplexity)
|
* @SuppressWarnings("PHPMD.NPathComplexity")
|
||||||
*
|
*
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class IsValidDiscordUrl implements ValidationRule
|
|||||||
use ValidatesAmountsTrait;
|
use ValidatesAmountsTrait;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class IsValidSlackOrDiscordUrl implements ValidationRule
|
|||||||
use ValidatesAmountsTrait;
|
use ValidatesAmountsTrait;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class IsValidSlackUrl implements ValidationRule
|
|||||||
use ValidatesAmountsTrait;
|
use ValidatesAmountsTrait;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ use Illuminate\Contracts\Validation\ValidationRule;
|
|||||||
class IsAssetAccountId implements ValidationRule
|
class IsAssetAccountId implements ValidationRule
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ use Illuminate\Contracts\Validation\ValidationRule;
|
|||||||
class IsBoolean implements ValidationRule
|
class IsBoolean implements ValidationRule
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ use Illuminate\Contracts\Validation\ValidationRule;
|
|||||||
class IsDateOrTime implements ValidationRule
|
class IsDateOrTime implements ValidationRule
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class IsDefaultUserGroupName implements ValidationRule
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ class IsDuplicateTransaction implements ValidationRule
|
|||||||
private string $value;
|
private string $value;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ class IsFilterValueIn implements ValidationRule
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ use Illuminate\Contracts\Validation\ValidationRule;
|
|||||||
class IsTransferAccount implements ValidationRule
|
class IsTransferAccount implements ValidationRule
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ class IsValidActionExpression implements ValidationRule
|
|||||||
*
|
*
|
||||||
* @param \Closure(string): PotentiallyTranslatedString $fail
|
* @param \Closure(string): PotentiallyTranslatedString $fail
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class IsValidAmount implements ValidationRule
|
|||||||
use ValidatesAmountsTrait;
|
use ValidatesAmountsTrait;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ class IsValidAttachmentModel implements ValidationRule
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ class IsValidBulkClause implements ValidationRule
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ use Illuminate\Contracts\Validation\ValidationRule;
|
|||||||
class IsValidDateRange implements ValidationRule
|
class IsValidDateRange implements ValidationRule
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class IsValidPositiveAmount implements ValidationRule
|
|||||||
use ValidatesAmountsTrait;
|
use ValidatesAmountsTrait;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class IsValidZeroOrMoreAmount implements ValidationRule
|
|||||||
use ValidatesAmountsTrait;
|
use ValidatesAmountsTrait;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ class LessThanPiggyTarget implements ValidationRule
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ class UniqueAccountNumber implements ValidationRule
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ class UniqueIban implements ValidationRule
|
|||||||
* @param string $attribute
|
* @param string $attribute
|
||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function passes($attribute, $value): bool
|
public function passes($attribute, $value): bool
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ use Illuminate\Contracts\Validation\ValidationRule;
|
|||||||
class ValidJournals implements ValidationRule
|
class ValidJournals implements ValidationRule
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class ValidRecurrenceRepetitionType implements ValidationRule
|
|||||||
/**
|
/**
|
||||||
* Determine if the validation rule passes.
|
* Determine if the validation rule passes.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ use Illuminate\Contracts\Validation\ValidationRule;
|
|||||||
class ValidRecurrenceRepetitionValue implements ValidationRule
|
class ValidRecurrenceRepetitionValue implements ValidationRule
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
public function validate(string $attribute, mixed $value, \Closure $fail): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ trait AccountServiceTrait
|
|||||||
/**
|
/**
|
||||||
* Update metadata for account. Depends on type which fields are valid.
|
* Update metadata for account. Depends on type which fields are valid.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.NPathComplexity)
|
* @SuppressWarnings("PHPMD.NPathComplexity")
|
||||||
*
|
*
|
||||||
* TODO this method treats expense accounts and liabilities the same way (tries to save interest)
|
* TODO this method treats expense accounts and liabilities the same way (tries to save interest)
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -236,9 +236,9 @@ class CreditRecalculateService
|
|||||||
/**
|
/**
|
||||||
* A complex and long method, but rarely used luckily.
|
* A complex and long method, but rarely used luckily.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
|
||||||
* @SuppressWarnings(PHPMD.NPathComplexity)
|
* @SuppressWarnings("PHPMD.NPathComplexity")
|
||||||
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
|
* @SuppressWarnings("PHPMD.CyclomaticComplexity")
|
||||||
*/
|
*/
|
||||||
private function processTransaction(Account $account, string $direction, Transaction $transaction, string $leftOfDebt): string
|
private function processTransaction(Account $account, string $direction, Transaction $transaction, string $leftOfDebt): string
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ trait RecurringTransactionTrait
|
|||||||
*
|
*
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.NPathComplexity)
|
* @SuppressWarnings("PHPMD.NPathComplexity")
|
||||||
*/
|
*/
|
||||||
protected function createTransactions(Recurrence $recurrence, array $transactions): void
|
protected function createTransactions(Recurrence $recurrence, array $transactions): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ class BillUpdateService
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.NPathComplexity)
|
* @SuppressWarnings("PHPMD.NPathComplexity")
|
||||||
*/
|
*/
|
||||||
private function updateBillProperties(Bill $bill, array $data): Bill
|
private function updateBillProperties(Bill $bill, array $data): Bill
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -250,8 +250,8 @@ class RecurrenceUpdateService
|
|||||||
/**
|
/**
|
||||||
* It's a complex method but nothing surprising.
|
* It's a complex method but nothing surprising.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.NPathComplexity)
|
* @SuppressWarnings("PHPMD.NPathComplexity")
|
||||||
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
|
* @SuppressWarnings("PHPMD.CyclomaticComplexity")
|
||||||
*/
|
*/
|
||||||
private function updateCombination(Recurrence $recurrence, array $combination): void
|
private function updateCombination(Recurrence $recurrence, array $combination): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ class StandardWebhookSender implements WebhookSenderInterface
|
|||||||
/**
|
/**
|
||||||
* @throws GuzzleException
|
* @throws GuzzleException
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
|
||||||
*/
|
*/
|
||||||
public function send(): void
|
public function send(): void
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ class RemoteUserGuard implements Guard
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.ShortMethodName)
|
* @SuppressWarnings("PHPMD.ShortMethodName")
|
||||||
*/
|
*/
|
||||||
public function id(): null|int|string
|
public function id(): null|int|string
|
||||||
{
|
{
|
||||||
@@ -160,7 +160,7 @@ class RemoteUserGuard implements Guard
|
|||||||
/**
|
/**
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validate(array $credentials = []): bool
|
public function validate(array $credentials = []): bool
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ class RemoteUserProvider implements UserProvider
|
|||||||
/**
|
/**
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function retrieveByCredentials(array $credentials): ?Authenticatable
|
public function retrieveByCredentials(array $credentials): ?Authenticatable
|
||||||
{
|
{
|
||||||
@@ -95,7 +95,7 @@ class RemoteUserProvider implements UserProvider
|
|||||||
*
|
*
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function retrieveByToken($identifier, $token): ?Authenticatable
|
public function retrieveByToken($identifier, $token): ?Authenticatable
|
||||||
{
|
{
|
||||||
@@ -105,7 +105,7 @@ class RemoteUserProvider implements UserProvider
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*
|
*
|
||||||
* @param mixed $token
|
* @param mixed $token
|
||||||
*
|
*
|
||||||
@@ -121,7 +121,7 @@ class RemoteUserProvider implements UserProvider
|
|||||||
/**
|
/**
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public function validateCredentials(Authenticatable $user, array $credentials): bool
|
public function validateCredentials(Authenticatable $user, array $credentials): bool
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ class DynamicConfigKey
|
|||||||
/**
|
/**
|
||||||
* @throws NotFoundHttpException
|
* @throws NotFoundHttpException
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public static function routeBinder(string $value, Route $route): string
|
public static function routeBinder(string $value, Route $route): string
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ class EitherConfigKey
|
|||||||
/**
|
/**
|
||||||
* @throws NotFoundHttpException
|
* @throws NotFoundHttpException
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
|
||||||
*/
|
*/
|
||||||
public static function routeBinder(string $value, Route $route): string
|
public static function routeBinder(string $value, Route $route): string
|
||||||
{
|
{
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user