From 069e4cccf9778909bdb736a607c87fa7398bf2b3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Jun 2022 10:39:52 +0000 Subject: [PATCH 1/2] Bump eventsource from 1.0.7 to 1.1.1 Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.0.7 to 1.1.1. - [Release notes](https://github.com/EventSource/eventsource/releases) - [Changelog](https://github.com/EventSource/eventsource/blob/master/HISTORY.md) - [Commits](https://github.com/EventSource/eventsource/compare/v1.0.7...v1.1.1) --- updated-dependencies: - dependency-name: eventsource dependency-type: indirect ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 41a8607..b09cacb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3254,9 +3254,9 @@ "dev": true }, "eventsource": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-1.0.7.tgz", - "integrity": "sha512-4Ln17+vVT0k8aWq+t/bF5arcS3EpT9gYtW66EPacdj/mAFevznsnyoHLPy2BA8gbIQeIHoPsvwmfBftfcG//BQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-1.1.1.tgz", + "integrity": "sha512-qV5ZC0h7jYIAOhArFJgSfdyz6rALJyb270714o7ZtNnw2WSJ+eexhKtE0O8LYPRsHZHf2osHKZBxGPvm3kPkCA==", "dev": true, "requires": { "original": "^1.0.0" From ee832b0f7cca6e4846924ad72bb80716a1349684 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Wed, 1 Jun 2022 10:40:00 +0000 Subject: [PATCH 2/2] Apply fixes from StyleCI --- app/Console/Kernel.php | 2 +- app/Events/GoalAchieved.php | 2 +- app/Events/LoanRecorded.php | 2 +- app/Exceptions/Handler.php | 6 ++--- app/Http/Controllers/CategoryController.php | 2 +- app/Http/Controllers/ExpenseController.php | 2 +- app/Http/Controllers/GoalController.php | 2 +- .../Controllers/GoalTransactionController.php | 4 ++-- app/Http/Controllers/LoanController.php | 2 +- app/Http/Controllers/PlanController.php | 2 +- app/Http/Controllers/TransferController.php | 5 ++-- .../Controllers/WalletExpenseController.php | 4 ++-- .../Controllers/WalletIncomeController.php | 4 ++-- app/Http/Middleware/Authenticate.php | 2 +- .../Middleware/RedirectIfAuthenticated.php | 6 ++--- app/Jobs/GenerateMonthlyTransactions.php | 2 +- app/Listeners/DepositLoanToWallet.php | 2 +- app/Listeners/PayoffTheLoanGoal.php | 2 +- app/PendingTransaction.php | 2 +- app/Policies/WalletPolicy.php | 24 +++++++++---------- app/ScheduledTransaction.php | 1 + tests/Feature/CategoryTest.php | 5 ++-- 22 files changed, 44 insertions(+), 41 deletions(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index e5ecfbb..228fccd 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -19,7 +19,7 @@ class Kernel extends ConsoleKernel /** * Define the application's command schedule. * - * @param Schedule $schedule + * @param Schedule $schedule * @return void */ protected function schedule(Schedule $schedule) diff --git a/app/Events/GoalAchieved.php b/app/Events/GoalAchieved.php index 60629d5..a10a70e 100644 --- a/app/Events/GoalAchieved.php +++ b/app/Events/GoalAchieved.php @@ -20,7 +20,7 @@ class GoalAchieved /** * Create a new event instance. * - * @param Goal $goal + * @param Goal $goal */ public function __construct(Goal $goal) { diff --git a/app/Events/LoanRecorded.php b/app/Events/LoanRecorded.php index 8db0ae2..56a0c09 100644 --- a/app/Events/LoanRecorded.php +++ b/app/Events/LoanRecorded.php @@ -20,7 +20,7 @@ class LoanRecorded /** * Create a new event instance. * - * @param Loan $loan + * @param Loan $loan */ public function __construct(Loan $loan) { diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 05dffaf..3dcc158 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -31,7 +31,7 @@ class Handler extends ExceptionHandler /** * Report or log an exception. * - * @param Exception $exception + * @param Exception $exception * @return void * * @throws Exception @@ -44,8 +44,8 @@ public function report(Exception $exception) /** * Render an exception into an HTTP response. * - * @param Request $request - * @param Exception $exception + * @param Request $request + * @param Exception $exception * @return Response * * @throws Exception diff --git a/app/Http/Controllers/CategoryController.php b/app/Http/Controllers/CategoryController.php index 7215257..ec0fcb0 100644 --- a/app/Http/Controllers/CategoryController.php +++ b/app/Http/Controllers/CategoryController.php @@ -11,7 +11,7 @@ class CategoryController extends Controller /** * Display a listing of the resource. * - * @param Request $request + * @param Request $request * @return Response */ public function index(Request $request) diff --git a/app/Http/Controllers/ExpenseController.php b/app/Http/Controllers/ExpenseController.php index 498b41f..5cfcdf3 100644 --- a/app/Http/Controllers/ExpenseController.php +++ b/app/Http/Controllers/ExpenseController.php @@ -10,7 +10,7 @@ class ExpenseController extends Controller { /** - * @param Request $request + * @param Request $request * @return Collection */ public function store(Request $request) diff --git a/app/Http/Controllers/GoalController.php b/app/Http/Controllers/GoalController.php index 9ecd070..ae8d29a 100644 --- a/app/Http/Controllers/GoalController.php +++ b/app/Http/Controllers/GoalController.php @@ -13,7 +13,7 @@ class GoalController extends Controller /** * Store a newly created resource in storage. * - * @param GoalRequest $request + * @param GoalRequest $request * @return Response */ public function store(GoalRequest $request) diff --git a/app/Http/Controllers/GoalTransactionController.php b/app/Http/Controllers/GoalTransactionController.php index e74d826..9e1bd1e 100644 --- a/app/Http/Controllers/GoalTransactionController.php +++ b/app/Http/Controllers/GoalTransactionController.php @@ -12,8 +12,8 @@ class GoalTransactionController extends Controller /** * Store a newly created resource in storage. * - * @param Request $request - * @param Goal $goal + * @param Request $request + * @param Goal $goal * @return Response */ public function store(Request $request, Goal $goal) diff --git a/app/Http/Controllers/LoanController.php b/app/Http/Controllers/LoanController.php index de11d62..2d31964 100644 --- a/app/Http/Controllers/LoanController.php +++ b/app/Http/Controllers/LoanController.php @@ -11,7 +11,7 @@ class LoanController extends Controller /** * Store a newly created resource in storage. * - * @param Request $request + * @param Request $request * @return void */ public function store(Request $request) diff --git a/app/Http/Controllers/PlanController.php b/app/Http/Controllers/PlanController.php index 2531402..06b4e49 100644 --- a/app/Http/Controllers/PlanController.php +++ b/app/Http/Controllers/PlanController.php @@ -12,7 +12,7 @@ class PlanController extends Controller /** * Store a newly created resource in storage. * - * @param Request $request + * @param Request $request * @return Response */ public function store(Request $request) diff --git a/app/Http/Controllers/TransferController.php b/app/Http/Controllers/TransferController.php index 5477b2f..039833b 100644 --- a/app/Http/Controllers/TransferController.php +++ b/app/Http/Controllers/TransferController.php @@ -13,7 +13,7 @@ class TransferController extends Controller /** * Store a newly created resource in storage. * - * @param Request $request + * @param Request $request * @return JsonResponse */ public function store(Request $request) @@ -41,8 +41,9 @@ public function store(Request $request) } /** - * @param Request $request + * @param Request $request * @return array + * * @deprecated */ private function singleToManyCurrency(Request $request): array diff --git a/app/Http/Controllers/WalletExpenseController.php b/app/Http/Controllers/WalletExpenseController.php index 8d1345a..32687ed 100644 --- a/app/Http/Controllers/WalletExpenseController.php +++ b/app/Http/Controllers/WalletExpenseController.php @@ -12,8 +12,8 @@ class WalletExpenseController extends Controller /** * Store a newly created resource in storage. * - * @param Request $request - * @param Wallet $wallet + * @param Request $request + * @param Wallet $wallet * @return Response */ public function store(Request $request, Wallet $wallet) diff --git a/app/Http/Controllers/WalletIncomeController.php b/app/Http/Controllers/WalletIncomeController.php index c3c0ff2..ee7cc0c 100644 --- a/app/Http/Controllers/WalletIncomeController.php +++ b/app/Http/Controllers/WalletIncomeController.php @@ -12,8 +12,8 @@ class WalletIncomeController extends Controller /** * Store a newly created resource in storage. * - * @param Request $request - * @param Wallet $wallet + * @param Request $request + * @param Wallet $wallet * @return Response */ public function store(Request $request, Wallet $wallet) diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.php index adff969..4e8922a 100644 --- a/app/Http/Middleware/Authenticate.php +++ b/app/Http/Middleware/Authenticate.php @@ -10,7 +10,7 @@ class Authenticate extends Middleware /** * Get the path the user should be redirected to when they are not authenticated. * - * @param Request $request + * @param Request $request * @return string|null */ protected function redirectTo($request) diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php index fec22fe..b8a8409 100644 --- a/app/Http/Middleware/RedirectIfAuthenticated.php +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -12,9 +12,9 @@ class RedirectIfAuthenticated /** * Handle an incoming request. * - * @param Request $request - * @param Closure $next - * @param string|null $guard + * @param Request $request + * @param Closure $next + * @param string|null $guard * @return mixed */ public function handle($request, Closure $next, $guard = null) diff --git a/app/Jobs/GenerateMonthlyTransactions.php b/app/Jobs/GenerateMonthlyTransactions.php index f74f714..a9c6bff 100644 --- a/app/Jobs/GenerateMonthlyTransactions.php +++ b/app/Jobs/GenerateMonthlyTransactions.php @@ -20,7 +20,7 @@ class GenerateMonthlyTransactions implements ShouldQueue /** * Create a new job instance. * - * @param User $user + * @param User $user */ public function __construct(User $user) { diff --git a/app/Listeners/DepositLoanToWallet.php b/app/Listeners/DepositLoanToWallet.php index 92e3b4e..6008084 100644 --- a/app/Listeners/DepositLoanToWallet.php +++ b/app/Listeners/DepositLoanToWallet.php @@ -19,7 +19,7 @@ public function __construct() /** * Handle the event. * - * @param LoanRecorded $event + * @param LoanRecorded $event * @return void */ public function handle(LoanRecorded $event) diff --git a/app/Listeners/PayoffTheLoanGoal.php b/app/Listeners/PayoffTheLoanGoal.php index 063a87d..7b97a97 100644 --- a/app/Listeners/PayoffTheLoanGoal.php +++ b/app/Listeners/PayoffTheLoanGoal.php @@ -19,7 +19,7 @@ public function __construct() /** * Handle the event. * - * @param LoanRecorded $event + * @param LoanRecorded $event * @return void */ public function handle(LoanRecorded $event) diff --git a/app/PendingTransaction.php b/app/PendingTransaction.php index fed2d68..aab4841 100644 --- a/app/PendingTransaction.php +++ b/app/PendingTransaction.php @@ -16,7 +16,7 @@ class PendingTransaction extends Transaction ]; /** - * @param ScheduledTransaction $scheduledTransaction + * @param ScheduledTransaction $scheduledTransaction */ public static function generateMonthlyTransactions($scheduledTransaction) { diff --git a/app/Policies/WalletPolicy.php b/app/Policies/WalletPolicy.php index 60c31f9..e48aafa 100644 --- a/app/Policies/WalletPolicy.php +++ b/app/Policies/WalletPolicy.php @@ -13,7 +13,7 @@ class WalletPolicy /** * Determine whether the user can view any wallets. * - * @param User $user + * @param User $user * @return mixed */ public function viewAny(User $user) @@ -24,8 +24,8 @@ public function viewAny(User $user) /** * Determine whether the user can view the wallet. * - * @param User $user - * @param Wallet $wallet + * @param User $user + * @param Wallet $wallet * @return mixed */ public function view(User $user, Wallet $wallet) @@ -36,7 +36,7 @@ public function view(User $user, Wallet $wallet) /** * Determine whether the user can create wallets. * - * @param User $user + * @param User $user * @return mixed */ public function create(User $user) @@ -54,8 +54,8 @@ public function adjustment(User $user, Wallet $wallet) /** * Determine whether the user can update the wallet. * - * @param User $user - * @param Wallet $wallet + * @param User $user + * @param Wallet $wallet * @return mixed */ public function update(User $user, Wallet $wallet) @@ -66,8 +66,8 @@ public function update(User $user, Wallet $wallet) /** * Determine whether the user can delete the wallet. * - * @param User $user - * @param Wallet $wallet + * @param User $user + * @param Wallet $wallet * @return mixed */ public function delete(User $user, Wallet $wallet) @@ -78,8 +78,8 @@ public function delete(User $user, Wallet $wallet) /** * Determine whether the user can restore the wallet. * - * @param User $user - * @param Wallet $wallet + * @param User $user + * @param Wallet $wallet * @return mixed */ public function restore(User $user, Wallet $wallet) @@ -90,8 +90,8 @@ public function restore(User $user, Wallet $wallet) /** * Determine whether the user can permanently delete the wallet. * - * @param User $user - * @param Wallet $wallet + * @param User $user + * @param Wallet $wallet * @return mixed */ public function forceDelete(User $user, Wallet $wallet) diff --git a/app/ScheduledTransaction.php b/app/ScheduledTransaction.php index 7c4649b..621c4c1 100644 --- a/app/ScheduledTransaction.php +++ b/app/ScheduledTransaction.php @@ -20,6 +20,7 @@ class ScheduledTransaction extends Transaction /** * @return Rule + * * @throws InvalidRRule */ public static function rule() diff --git a/tests/Feature/CategoryTest.php b/tests/Feature/CategoryTest.php index 3b3a798..b158498 100644 --- a/tests/Feature/CategoryTest.php +++ b/tests/Feature/CategoryTest.php @@ -44,8 +44,9 @@ public function test_can_get_categories_list() /** * @dataProvider typesCountProvider - * @param int $type - * @param int $count + * + * @param int $type + * @param int $count */ public function test_can_filter_categories_per_type($type, $count) {