Passed
Push — master ( 29d5f6...586595 )
by Aimeos
04:48
created
lib/mshoplib/src/MShop/Service/Provider/Payment/PayPalExpress.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -665,7 +665,7 @@  discard block
 block discarded – undo
665 665
 				$values['PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE'] = $orderAddressDelivery->getCountryId();
666 666
 				$values['PAYMENTREQUEST_0_SHIPTOZIP'] = $orderAddressDelivery->getPostal();
667 667
 			}
668
-			catch( \Exception $e ) { ; } // If no address is available
668
+			catch( \Exception $e ) {; } // If no address is available
669 669
 		}
670 670
 
671 671
 
@@ -718,7 +718,7 @@  discard block
 block discarded – undo
718 718
 					$values['L_SHIPPINGOPTIONISDEFAULT0'] = 'true';
719 719
 				}
720 720
 			}
721
-			catch( \Exception $e ) { ; } // If no delivery service is available
721
+			catch( \Exception $e ) {; } // If no delivery service is available
722 722
 		}
723 723
 
724 724
 
@@ -813,7 +813,7 @@  discard block
 block discarded – undo
813 813
 	{
814 814
 		$response = '';
815 815
 
816
-		if( ( $curl = curl_init() )=== false ) {
816
+		if( ( $curl = curl_init() ) === false ) {
817 817
 			throw new \Aimeos\MShop\Service\Exception( 'Could not initialize curl' );
818 818
 		}
819 819
 
@@ -824,16 +824,16 @@  discard block
 block discarded – undo
824 824
 			curl_setopt( $curl, CURLOPT_CUSTOMREQUEST, strtoupper( $method ) );
825 825
 			curl_setopt( $curl, CURLOPT_POSTFIELDS, $payload );
826 826
 			curl_setopt( $curl, CURLOPT_CONNECTTIMEOUT, 25 );
827
-			curl_setopt( $curl, CURLOPT_RETURNTRANSFER, true );   // return data as string
827
+			curl_setopt( $curl, CURLOPT_RETURNTRANSFER, true ); // return data as string
828 828
 
829 829
 			curl_setopt( $curl, CURLOPT_SSL_VERIFYPEER, true );
830 830
 
831
-			if ( ( $response = curl_exec( $curl ) ) === false ) {
831
+			if( ( $response = curl_exec( $curl ) ) === false ) {
832 832
 				throw new \Aimeos\MShop\Service\Exception( sprintf( 'Sending order failed: "%1$s"', curl_error( $curl ) ) );
833 833
 			}
834 834
 
835
-			if ( curl_errno($curl) ) {
836
-				throw new \Aimeos\MShop\Service\Exception( sprintf( 'Error with nr."%1$s" - "%2$s"', curl_errno($curl), curl_error($curl) ) );
835
+			if( curl_errno( $curl ) ) {
836
+				throw new \Aimeos\MShop\Service\Exception( sprintf( 'Error with nr."%1$s" - "%2$s"', curl_errno( $curl ), curl_error( $curl ) ) );
837 837
 			}
838 838
 
839 839
 			curl_close( $curl );
Please login to merge, or discard this patch.