Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
hafijul233 authored and github-actions[bot] committed Dec 29, 2024
1 parent c828eb6 commit 124c902
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/Http/Controllers/MoneyTransferPaymentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __invoke(string $id, MoneyTransferPaymentRequest $request): \Ill

$moneyTransfer = Transaction::order()->find($id);

if (!$moneyTransfer) {
if (! $moneyTransfer) {
throw (new ModelNotFoundException)->setModel(config('fintech.transaction.order_model'), $id);
}

Expand All @@ -41,7 +41,7 @@ public function __invoke(string $id, MoneyTransferPaymentRequest $request): \Ill
'paginate' => false,
]);

if (!$payoutVendor) {
if (! $payoutVendor) {

throw (new ModelNotFoundException)->setModel(config('fintech.business.service_vendor_model'), $inputs['vendor']);
}
Expand All @@ -50,10 +50,10 @@ public function __invoke(string $id, MoneyTransferPaymentRequest $request): \Ill
'status' => OrderStatus::Pending,
'order_data' => $orderData,
'service_vendor_id' => $payoutVendor->getKey(),
'vendor' => $payoutVendor->service_vendor_slug
'vendor' => $payoutVendor->service_vendor_slug,
];

if (!Transaction::order()->update($id, $data)) {
if (! Transaction::order()->update($id, $data)) {

throw (new UpdateOperationException)->setModel(config('fintech.transaction.order_model'), $id);
}
Expand All @@ -62,7 +62,7 @@ public function __invoke(string $id, MoneyTransferPaymentRequest $request): \Ill

event(new MoneyTransferPayoutRequested($moneyTransfer));

return response()->updated(__('core::messages.transaction.request_created', ['service' => ucwords($service->service_name) . ' Payment']));
return response()->updated(__('core::messages.transaction.request_created', ['service' => ucwords($service->service_name).' Payment']));

} catch (ModelNotFoundException $exception) {

Expand Down
3 changes: 1 addition & 2 deletions src/Http/Requests/MoneyTransferPaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Fintech\Remit\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;

class MoneyTransferPaymentRequest extends FormRequest
{
Expand All @@ -24,7 +23,7 @@ public function rules(): array
{
return [
'interac_email' => ['required', 'string', 'min:5', 'max:255', 'email:rfc,dns'],
'vendor' => ['required', 'string']
'vendor' => ['required', 'string'],
];
}
}

0 comments on commit 124c902

Please sign in to comment.