Everywhere yoda conditions are
This commit is contained in:
1 parent
d74f6d1a53
commit
be0ab98895
213 files changed
+691
-412
No files matched your search
@@ -100,7 +100,7 @@ function wu_get_gateway_as_options() {
|
||||
foreach (wu_get_gateways() as $gateway_slug => $gateway) {
|
||||
$instance = class_exists($gateway['class_name']) ? new $gateway['class_name']() : false;
|
||||
|
||||
if ($instance === false || $gateway['hidden']) {
|
||||
if (false === $instance || $gateway['hidden']) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -123,7 +123,7 @@ function wu_get_active_gateway_as_options() {
|
||||
foreach (wu_get_active_gateways() as $gateway_slug => $gateway) {
|
||||
$instance = class_exists($gateway['class_name']) ? new $gateway['class_name']() : false;
|
||||
|
||||
if ($instance === false || $gateway['hidden']) {
|
||||
if (false === $instance || $gateway['hidden']) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user