@@ -714,7 +714,7 @@ discard block |
||
714 | 714 | $values['L_SHIPPINGOPTIONISDEFAULT0'] = 'true'; |
715 | 715 | } |
716 | 716 | } |
717 | - catch( \Exception $e ) { ; } // If no delivery service is available |
|
717 | + catch( \Exception $e ) {; } // If no delivery service is available |
|
718 | 718 | } |
719 | 719 | |
720 | 720 | |
@@ -807,7 +807,7 @@ discard block |
||
807 | 807 | */ |
808 | 808 | public function send( $target, $method, $payload ) |
809 | 809 | { |
810 | - if( ( $curl = curl_init() )=== false ) { |
|
810 | + if( ( $curl = curl_init() ) === false ) { |
|
811 | 811 | throw new \Aimeos\MShop\Service\Exception( 'Could not initialize curl' ); |
812 | 812 | } |
813 | 813 | |
@@ -818,16 +818,16 @@ discard block |
||
818 | 818 | curl_setopt( $curl, CURLOPT_CUSTOMREQUEST, strtoupper( $method ) ); |
819 | 819 | curl_setopt( $curl, CURLOPT_POSTFIELDS, $payload ); |
820 | 820 | curl_setopt( $curl, CURLOPT_CONNECTTIMEOUT, 25 ); |
821 | - curl_setopt( $curl, CURLOPT_RETURNTRANSFER, true ); // return data as string |
|
821 | + curl_setopt( $curl, CURLOPT_RETURNTRANSFER, true ); // return data as string |
|
822 | 822 | |
823 | 823 | curl_setopt( $curl, CURLOPT_SSL_VERIFYPEER, true ); |
824 | 824 | |
825 | - if ( ( $response = curl_exec( $curl ) ) === false ) { |
|
825 | + if( ( $response = curl_exec( $curl ) ) === false ) { |
|
826 | 826 | throw new \Aimeos\MShop\Service\Exception( sprintf( 'Sending order failed: "%1$s"', curl_error( $curl ) ) ); |
827 | 827 | } |
828 | 828 | |
829 | - if ( curl_errno($curl) ) { |
|
830 | - throw new \Aimeos\MShop\Service\Exception( sprintf( 'Curl error: "%1$s" - "%2$s"', curl_errno($curl), curl_error($curl) ) ); |
|
829 | + if( curl_errno( $curl ) ) { |
|
830 | + throw new \Aimeos\MShop\Service\Exception( sprintf( 'Curl error: "%1$s" - "%2$s"', curl_errno( $curl ), curl_error( $curl ) ) ); |
|
831 | 831 | } |
832 | 832 | |
833 | 833 | curl_close( $curl ); |