Skip to content

Commit

Permalink
Small commenting/formatting fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Konamiman committed Apr 13, 2022
1 parent 0aa0073 commit de5f2e3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Expand Up @@ -119,7 +119,7 @@ protected function read_product_data( &$product ) {
public function read_children( &$product, $force_read = false ) {
$children_transient_name = 'wc_product_children_' . $product->get_id();
$children = get_transient( $children_transient_name );
if(false === $children) {
if( false === $children ) {
$children = array();
}

Expand Down
2 changes: 1 addition & 1 deletion plugins/woocommerce/tests/legacy/bootstrap.php
Expand Up @@ -89,7 +89,7 @@ public function __construct() {
// re-initialize dependency injection, this needs to be the last operation after everything else is in place.
$this->initialize_dependency_injection();

//error_reporting(error_reporting() & ~E_DEPRECATED);
error_reporting(error_reporting() & ~E_DEPRECATED);
}

/**
Expand Down
Expand Up @@ -333,7 +333,7 @@ public static function assertIsInteger( $actual, $message = '' ) {

/**
* Skip the current test on PHP 8.1 and higher.
* TODO: Remove this method and its usages once WordPress is compatible with PHP 8.1.
* TODO: Remove this method and its usages once WordPress is compatible with PHP 8.1. Please note that there are multiple copies of this method.
*/
protected function skip_on_php_8_1() {
if ( version_compare( PHP_VERSION, '8.1', '>=' ) ) {
Expand Down
Expand Up @@ -117,7 +117,7 @@ public function test_create_api_key_long_description_failure() {

/**
* Skip the current test on PHP 8.1 and higher.
* TODO: Remove this method and its usages once WordPress is compatible with PHP 8.1.
* TODO: Remove this method and its usages once WordPress is compatible with PHP 8.1. Please note that there are multiple copies of this method.
*/
protected function skip_on_php_8_1() {
if ( version_compare( PHP_VERSION, '8.1', '>=' ) ) {
Expand Down

0 comments on commit de5f2e3

Please sign in to comment.