| @@ -127,9 +127,9 @@ | ||
| 127 | 127 | $key = str_replace( $prefix, '', $method_name ); |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | // If the class is Cart or Customer, we don't need to pass any info. |
| 131 | - if ( $class_name === Cart::class || $class_name === Customer::class ) { | |
| 131 | + if ( Cart::class === $class_name || Customer::class === $class_name ) { | |
| 132 | 132 | return array( |
| 133 | 133 | new $class_name, |
| 134 | 134 | $method, |
| 135 | 135 | $key, |
| @@ -135,14 +135,14 @@ | ||
| 135 | 135 | $key, |
| 136 | 136 | ); |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | - if ( $class_name === CustomerHistory::class || $class_name === ProductHistory::class ) { | |
| 139 | + if ( CustomerHistory::class === $class_name || ProductHistory::class === $class_name ) { | |
| 140 | 140 | // remove prefix from method name. |
| 141 | 141 | $method = str_replace( $prefix . '_', '', $method_name ); |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | - if ( $class_name === ProductHistory::class ) { | |
| 144 | + if ( ProductHistory::class === $class_name ) { | |
| 145 | 145 | $product = $info['product']; |
| 146 | 146 | \assert( $product instanceof \WC_Product ); |
| 147 | 147 | |
| 148 | 148 | return array( |
| @@ -151,9 +151,9 @@ | ||
| 151 | 151 | $key, |
| 152 | 152 | ); |
| 153 | 153 | } |
| 154 | 154 | |
| 155 | - if ( $class_name === Product::class ) { | |
| 155 | + if ( Product::class === $class_name ) { | |
| 156 | 156 | $product = $info['product']; |
| 157 | 157 | \assert( $product instanceof \WC_Product ); |
| 158 | 158 | |
| 159 | 159 | return array( |