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

@ -43,7 +43,7 @@ class Products extends Rule {
*
* @param mixed $products Value being checked.
*/
public function check($products) : bool { // phpcs:ignore
public function check($products) : bool { // phpcs:ignore
$products = (array) $products;
@ -52,15 +52,11 @@ class Products extends Rule {
list($plan, $additional_products) = wu_segregate_products($product_objects);
if ($plan) {
return true;
} // end if;
}
$this->message = __('A plan is required.', 'wp-ultimo');
return false;
} // end check;
} // end class Products;
}
}