| @@ -462,9 +462,9 @@ | ||
| 462 | 462 | */ |
| 463 | 463 | public function date_created() { |
| 464 | 464 | $date_created = $this->product->get_date_created(); |
| 465 | 465 | |
| 466 | - if ( $date_created === null && $this->product->is_type( 'variation' ) ) { | |
| 466 | + if ( null === $date_created && $this->product->is_type( 'variation' ) ) { | |
| 467 | 467 | $date_created = $this->parent->get_date_created(); |
| 468 | 468 | } |
| 469 | 469 | |
| 470 | 470 | if ( ! ( $date_created instanceof \WC_DateTime ) ) { |
| @@ -481,9 +481,9 @@ | ||
| 481 | 481 | */ |
| 482 | 482 | public function date_updated() { |
| 483 | 483 | $date_created = $this->product->get_date_modified(); |
| 484 | 484 | |
| 485 | - if ( $date_created === null && $this->product->is_type( 'variation' ) ) { | |
| 485 | + if ( null === $date_created && $this->product->is_type( 'variation' ) ) { | |
| 486 | 486 | $date_created = $this->parent->get_date_modified(); |
| 487 | 487 | } |
| 488 | 488 | |
| 489 | 489 | if ( ! ( $date_created instanceof \WC_DateTime ) ) { |
| @@ -705,15 +705,15 @@ | ||
| 705 | 705 | public function get_product_meta( $meta = '' ) { |
| 706 | 706 | // Remove the underscore prefix from the meta-key. |
| 707 | 707 | $first = $meta[0]; |
| 708 | 708 | |
| 709 | - if ( $first === '_' ) { | |
| 709 | + if ( '_' === $first ) { | |
| 710 | 710 | $meta = substr( $meta, 1 ); |
| 711 | 711 | } |
| 712 | 712 | |
| 713 | 713 | $value = $this->product->get_meta( $meta, true ); |
| 714 | 714 | |
| 715 | - if ( $value === '' && $this->product->is_type( 'variation' ) ) { | |
| 715 | + if ( '' === $value && $this->product->is_type( 'variation' ) ) { | |
| 716 | 716 | $value = $this->parent->get_meta( $meta, true ); |
| 717 | 717 | } |
| 718 | 718 | |
| 719 | 719 | return $value; |