Completed
Pull Request — master (#6)
by
unknown
02:13
created
class/class-edu-sveawebpay.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -204,9 +204,9 @@  discard block
 block discarded – undo
204 204
 				}
205 205
 
206 206
 				$zipPreset = WebPayItem::presetValue()
207
-				                       ->setTypeName( \Svea\WebPay\Checkout\Model\PresetValue::POSTAL_CODE )
208
-				                       ->setValue( ! empty( $bookingInfo->Customer->InvoiceZip ) ? $bookingInfo->Customer->InvoiceZip : $bookingInfo->Customer->Zip )
209
-				                       ->setIsReadonly( false );
207
+									   ->setTypeName( \Svea\WebPay\Checkout\Model\PresetValue::POSTAL_CODE )
208
+									   ->setValue( ! empty( $bookingInfo->Customer->InvoiceZip ) ? $bookingInfo->Customer->InvoiceZip : $bookingInfo->Customer->Zip )
209
+									   ->setIsReadonly( false );
210 210
 				$wpOrder->addPresetValue( $zipPreset );
211 211
 
212 212
 				if ( ! empty( $bookingInfo->Customer->InvoiceCity ) ) {
@@ -218,9 +218,9 @@  discard block
 block discarded – undo
218 218
 				if ( ! empty( $bookingInfo->Customer->Phone ) ) {
219 219
 					$customer->setPhoneNumber( $bookingInfo->Customer->Phone );
220 220
 					$phonePreset = WebPayItem::presetValue()
221
-					                         ->setTypeName( \Svea\WebPay\Checkout\Model\PresetValue::PHONE_NUMBER )
222
-					                         ->setValue( $bookingInfo->Customer->Phone )
223
-					                         ->setIsReadonly( false );
221
+											 ->setTypeName( \Svea\WebPay\Checkout\Model\PresetValue::PHONE_NUMBER )
222
+											 ->setValue( $bookingInfo->Customer->Phone )
223
+											 ->setIsReadonly( false );
224 224
 					$wpOrder->addPresetValue( $phonePreset );
225 225
 				}
226 226
 
@@ -231,9 +231,9 @@  discard block
 block discarded – undo
231 231
 				}
232 232
 
233 233
 				$emailPreset = WebPayItem::presetValue()
234
-				                         ->setTypeName( \Svea\WebPay\Checkout\Model\PresetValue::EMAIL_ADDRESS )
235
-				                         ->setValue( ! empty( $bookingInfo->Customer->InvoiceEmail ) ? $bookingInfo->Customer->InvoiceEmail : $bookingInfo->Customer->Email )
236
-				                         ->setIsReadonly( false );
234
+										 ->setTypeName( \Svea\WebPay\Checkout\Model\PresetValue::EMAIL_ADDRESS )
235
+										 ->setValue( ! empty( $bookingInfo->Customer->InvoiceEmail ) ? $bookingInfo->Customer->InvoiceEmail : $bookingInfo->Customer->Email )
236
+										 ->setIsReadonly( false );
237 237
 				$wpOrder->addPresetValue( $emailPreset );
238 238
 
239 239
 				$customer->setIpAddress( EDU()->get_ip_adress() );
Please login to merge, or discard this patch.