Use new code style

This commit is contained in:
David Stone
2025-02-07 19:02:33 -07:00
parent 0181024ae1
commit 8433379d90
672 changed files with 37107 additions and 45249 deletions

View File

@ -49,13 +49,13 @@ class Price_Variations extends Rule {
$value = maybe_unserialize($value);
} // end if;
}
if (!is_array($value)) {
return false;
} // end if;
}
foreach ($value as $price_variation) {
@ -68,7 +68,7 @@ class Price_Variations extends Rule {
return false;
} // end if;
}
/**
* Validation Unit
@ -86,7 +86,7 @@ class Price_Variations extends Rule {
return false;
} // end if;
}
/**
* Check if it is the same as the main duration
@ -97,7 +97,7 @@ class Price_Variations extends Rule {
return false;
} // end if;
}
/**
* Validation Amount
@ -108,18 +108,18 @@ class Price_Variations extends Rule {
$amount = wu_to_float($amount);
} // end if;
}
if (!is_numeric($amount)) {
return false;
} // end if;
}
} // end foreach;
}
return true;
} // end check;
}
} // end class Price_Variations;
}