formatting
This commit is contained in:
parent
717e7ec563
commit
777c90e7ce
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Utilities;
|
namespace App\Utilities;
|
||||||
|
|
||||||
|
use App\Events\Module\PaymentMethodShowing;
|
||||||
use Cache;
|
use Cache;
|
||||||
use Date;
|
use Date;
|
||||||
|
|
||||||
@ -16,8 +17,8 @@ class Modules
|
|||||||
|
|
||||||
$contact = true;
|
$contact = true;
|
||||||
|
|
||||||
if (user()) {
|
if ($user = user()) {
|
||||||
$contact = user()->contact;
|
$contact = $user->contact;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($contact && ($type != 'all')) {
|
if ($contact && ($type != 'all')) {
|
||||||
@ -34,9 +35,9 @@ class Modules
|
|||||||
$modules->payment_methods = [];
|
$modules->payment_methods = [];
|
||||||
|
|
||||||
// Fire the event to get the list of payment methods
|
// Fire the event to get the list of payment methods
|
||||||
event(new \App\Events\Module\PaymentMethodShowing($modules));
|
event(new PaymentMethodShowing($modules));
|
||||||
|
|
||||||
foreach ($modules->payment_methods as $method) {
|
foreach ((array) $modules->payment_methods as $method) {
|
||||||
if (!isset($method['name']) || !isset($method['code'])) {
|
if (!isset($method['name']) || !isset($method['code'])) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user