Failed Conditions
Push — develop ( c64194...2e2bde )
by Reüel
04:54
created
src/OrderStandard/Gateway.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -235,13 +235,13 @@  discard block
 block discarded – undo
235 235
 		$data = $this->client->verify_request( $data );
236 236
 
237 237
 		if ( false !== $data ) {
238
-			$status = Statuses::transform( $data[ Parameters::STATUS ] );
238
+			$status = Statuses::transform( $data[Parameters::STATUS] );
239 239
 
240 240
 			$payment->set_status( $status );
241 241
 
242 242
 			// Update transaction ID.
243 243
 			if ( \array_key_exists( Parameters::PAY_ID, $data ) ) {
244
-				$payment->set_transaction_id( $data[ Parameters::PAY_ID ] );
244
+				$payment->set_transaction_id( $data[Parameters::PAY_ID] );
245 245
 			}
246 246
 
247 247
 			// Add payment note.
@@ -300,9 +300,9 @@  discard block
 block discarded – undo
300 300
 		$note .= '<dl>';
301 301
 
302 302
 		foreach ( $labels as $key => $label ) {
303
-			if ( isset( $data[ $key ] ) && '' !== $data[ $key ] ) {
303
+			if ( isset( $data[$key] ) && '' !== $data[$key] ) {
304 304
 				$note .= sprintf( '<dt>%s</dt>', esc_html( $label ) );
305
-				$note .= sprintf( '<dd>%s</dd>', esc_html( $data[ $key ] ) );
305
+				$note .= sprintf( '<dd>%s</dd>', esc_html( $data[$key] ) );
306 306
 			}
307 307
 		}
308 308
 
Please login to merge, or discard this patch.