@@ -665,7 +665,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 ); |