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 Jun 30, 2024
1 parent 0eaaca9 commit 2686095
Show file tree
Hide file tree
Showing 14 changed files with 21 additions and 39 deletions.
1 change: 0 additions & 1 deletion src/Contracts/OrderQuotation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Fintech\Remit\Contracts;


interface OrderQuotation
{
/**
Expand Down
1 change: 0 additions & 1 deletion src/Contracts/ProceedOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Fintech\Remit\Contracts;


interface ProceedOrder
{
/**
Expand Down
5 changes: 1 addition & 4 deletions src/Http/Controllers/AssignVendorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
namespace Fintech\Remit\Http\Controllers;

use App\Http\Controllers\Controller;
use ErrorException;
use Exception;
use Fintech\Business\Facades\Business;
use Fintech\Core\Abstracts\BaseModel;
use Fintech\Remit\Contracts\OrderQuotation;
use Fintech\Remit\Facades\Remit;
use Fintech\Remit\Http\Requests\AssignableVendorInfoRequest;
use Fintech\Remit\Http\Resources\AssignableVendorCollection;
Expand All @@ -21,7 +18,7 @@ private function getOrder($id): BaseModel
{
$order = Transaction::order()->find($id);

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

Expand Down
1 change: 0 additions & 1 deletion src/Http/Resources/AssignableVendorCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Fintech\Remit\Http\Resources;

use Fintech\Core\Supports\Constant;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\ResourceCollection;

Expand Down
16 changes: 8 additions & 8 deletions src/Services/AssignVendorService.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function requestQuote(BaseModel $order, string $vendor_slug): mixed
{
$availableVendors = config('fintech.remit.providers', []);

if (!isset($availableVendors[$vendor_slug])) {
if (! isset($availableVendors[$vendor_slug])) {
throw new ErrorException('Service Vendor is not available on the configuration.');
}

Expand All @@ -37,7 +37,7 @@ public function requestQuote(BaseModel $order, string $vendor_slug): mixed

$instance = App::make($driverClass);

if (!$instance instanceof OrderQuotation) {
if (! $instance instanceof OrderQuotation) {
throw new ErrorException('Service Vendor Class is not instance of `Fintech\Remit\Contracts\OrderQuotation` interface.');
}

Expand All @@ -48,7 +48,7 @@ public function processOrder(BaseModel $order, string $vendor_slug): mixed
{
$availableVendors = config('fintech.remit.providers', []);

if (!isset($availableVendors[$vendor_slug])) {
if (! isset($availableVendors[$vendor_slug])) {
throw new ErrorException('Service Vendor is not available on the configuration.');
}

Expand All @@ -58,7 +58,7 @@ public function processOrder(BaseModel $order, string $vendor_slug): mixed

$instance = App::make($driverClass);

if (!$instance instanceof OrderQuotation) {
if (! $instance instanceof OrderQuotation) {
throw new ErrorException('Service Vendor Class is not instance of `Fintech\Remit\Contracts\OrderQuotation` interface.');
}

Expand All @@ -69,7 +69,7 @@ public function orderStatus(BaseModel $order, string $vendor_slug): mixed
{
$availableVendors = config('fintech.remit.providers', []);

if (!isset($availableVendors[$vendor_slug])) {
if (! isset($availableVendors[$vendor_slug])) {
throw new ErrorException('Service Vendor is not available on the configuration.');
}

Expand All @@ -79,7 +79,7 @@ public function orderStatus(BaseModel $order, string $vendor_slug): mixed

$instance = App::make($driverClass);

if (!$instance instanceof OrderQuotation) {
if (! $instance instanceof OrderQuotation) {
throw new ErrorException('Service Vendor Class is not instance of `Fintech\Remit\Contracts\OrderQuotation` interface.');
}

Expand All @@ -90,7 +90,7 @@ public function cancelOrder(BaseModel $order, string $vendor_slug): mixed
{
$availableVendors = config('fintech.remit.providers', []);

if (!isset($availableVendors[$vendor_slug])) {
if (! isset($availableVendors[$vendor_slug])) {
throw new ErrorException('Service Vendor is not available on the configuration.');
}

Expand All @@ -100,7 +100,7 @@ public function cancelOrder(BaseModel $order, string $vendor_slug): mixed

$instance = App::make($driverClass);

if (!$instance instanceof OrderQuotation) {
if (! $instance instanceof OrderQuotation) {
throw new ErrorException('Service Vendor Class is not instance of `Fintech\Remit\Contracts\OrderQuotation` interface.');
}

Expand Down
4 changes: 1 addition & 3 deletions src/Traits/AuthRelations.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,5 @@ public function user(): BelongsTo
}
}
} else {
trait AuthRelations
{
}
trait AuthRelations {}
}
4 changes: 1 addition & 3 deletions src/Traits/BusinessRelations.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,5 @@ public function service(): BelongsTo
}
}
} else {
trait BusinessRelations
{
}
trait BusinessRelations {}
}
4 changes: 1 addition & 3 deletions src/Traits/MetaDataRelations.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,5 @@ public function destinationCountry(): BelongsTo
}
}
} else {
trait MetaDataRelations
{
}
trait MetaDataRelations {}
}
2 changes: 1 addition & 1 deletion src/Vendors/AgraniBankApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ public function getData($url, $params = [])
}

/**
* @param \Illuminate\Database\Eloquent\Model|\Fintech\Core\Abstracts\BaseModel $order
* @param \Illuminate\Database\Eloquent\Model|\Fintech\Core\Abstracts\BaseModel $order
*/
public function requestQuote($order): mixed
{
Expand Down
5 changes: 1 addition & 4 deletions src/Vendors/CityBankApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ public function __construct()
*
* @throws Exception
*/
public function getTnxStatus($inputs_data)
{

}
public function getTnxStatus($inputs_data) {}

/**
* bKash customer validation service will help you to validate the beneficiary bkash number before send the transaction
Expand Down
8 changes: 2 additions & 6 deletions src/Vendors/EmqApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use Fintech\Remit\Contracts\OrderQuotation;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Log;
use MongoDB\Laravel\Eloquent\Model;
use stdClass;

class EmqApi implements BankTransfer, OrderQuotation
Expand Down Expand Up @@ -1350,7 +1349,7 @@ public function vendorBalance(array $accountInfo = []): mixed
}

/**
* @param \Illuminate\Database\Eloquent\Model|\Fintech\Core\Abstracts\BaseModel $order
* @param \Illuminate\Database\Eloquent\Model|\Fintech\Core\Abstracts\BaseModel $order
*/
public function requestQuote($order): mixed
{
Expand All @@ -1359,8 +1358,5 @@ public function requestQuote($order): mixed
];
}

protected function getBalanceFromCurrency(string $currency, $response)
{

}
protected function getBalanceFromCurrency(string $currency, $response) {}
}
5 changes: 3 additions & 2 deletions src/Vendors/IslamiBankApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,8 @@ public function fetchBalance(string $currency): array
}

/**
* @param \Illuminate\Database\Eloquent\Model|\Fintech\Core\Abstracts\BaseModel $order
* @param \Illuminate\Database\Eloquent\Model|\Fintech\Core\Abstracts\BaseModel $order
*
* @throws Exception
*/
public function requestQuote($order): mixed
Expand All @@ -865,7 +866,7 @@ public function requestQuote($order): mixed
}

/**
* @param \Illuminate\Database\Eloquent\Model|\Fintech\Core\Abstracts\BaseModel $order
* @param \Illuminate\Database\Eloquent\Model|\Fintech\Core\Abstracts\BaseModel $order
*/
public function processOrder($order): mixed
{
Expand Down
2 changes: 1 addition & 1 deletion src/Vendors/TransFastApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ public function postCreateTransaction($data)
}

/**
* @param \Illuminate\Database\Eloquent\Model|\Fintech\Core\Abstracts\BaseModel $order
* @param \Illuminate\Database\Eloquent\Model|\Fintech\Core\Abstracts\BaseModel $order
*/
public function requestQuote($order): mixed
{
Expand Down
2 changes: 1 addition & 1 deletion src/Vendors/ValYouApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ public function authorizedConfirmed($input_data)
}

/**
* @param \Illuminate\Database\Eloquent\Model|\Fintech\Core\Abstracts\BaseModel $order
* @param \Illuminate\Database\Eloquent\Model|\Fintech\Core\Abstracts\BaseModel $order
*/
public function requestQuote($order): mixed
{
Expand Down

0 comments on commit 2686095

Please sign in to comment.