Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion app/Events/GoalAchieved.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class GoalAchieved
/**
* Create a new event instance.
*
* @param Goal $goal
* @param Goal $goal
*/
public function __construct(Goal $goal)
{
Expand Down
2 changes: 1 addition & 1 deletion app/Events/LoanRecorded.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class LoanRecorded
/**
* Create a new event instance.
*
* @param Loan $loan
* @param Loan $loan
*/
public function __construct(Loan $loan)
{
Expand Down
6 changes: 3 additions & 3 deletions app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Handler extends ExceptionHandler
/**
* Report or log an exception.
*
* @param Exception $exception
* @param Exception $exception
* @return void
*
* @throws Exception
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/CategoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/ExpenseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class ExpenseController extends Controller
{
/**
* @param Request $request
* @param Request $request
* @return Collection
*/
public function store(Request $request)
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/GoalController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/GoalTransactionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/LoanController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/PlanController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 3 additions & 2 deletions app/Http/Controllers/TransferController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -41,8 +41,9 @@ public function store(Request $request)
}

/**
* @param Request $request
* @param Request $request
* @return array
*
* @deprecated
*/
private function singleToManyCurrency(Request $request): array
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/WalletExpenseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/WalletIncomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Middleware/Authenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions app/Http/Middleware/RedirectIfAuthenticated.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion app/Jobs/GenerateMonthlyTransactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class GenerateMonthlyTransactions implements ShouldQueue
/**
* Create a new job instance.
*
* @param User $user
* @param User $user
*/
public function __construct(User $user)
{
Expand Down
2 changes: 1 addition & 1 deletion app/Listeners/DepositLoanToWallet.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct()
/**
* Handle the event.
*
* @param LoanRecorded $event
* @param LoanRecorded $event
* @return void
*/
public function handle(LoanRecorded $event)
Expand Down
2 changes: 1 addition & 1 deletion app/Listeners/PayoffTheLoanGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct()
/**
* Handle the event.
*
* @param LoanRecorded $event
* @param LoanRecorded $event
* @return void
*/
public function handle(LoanRecorded $event)
Expand Down
2 changes: 1 addition & 1 deletion app/PendingTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class PendingTransaction extends Transaction
];

/**
* @param ScheduledTransaction $scheduledTransaction
* @param ScheduledTransaction $scheduledTransaction
*/
public static function generateMonthlyTransactions($scheduledTransaction)
{
Expand Down
24 changes: 12 additions & 12 deletions app/Policies/WalletPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down
1 change: 1 addition & 0 deletions app/ScheduledTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class ScheduledTransaction extends Transaction

/**
* @return Rule
*
* @throws InvalidRRule
*/
public static function rule()
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions tests/Feature/CategoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down