@@ -16,7 +16,6 @@ |
||
16 | 16 | */ |
17 | 17 | use NFePHP\Common\Soap\SoapBase; |
18 | 18 | use NFePHP\Common\Soap\SoapInterface; |
19 | -use NFePHP\Common\Exception\SoapException; |
|
20 | 19 | use NFePHP\Common\Certificate; |
21 | 20 | use Psr\Log\LoggerInterface; |
22 | 21 |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | switch ($soapver) { |
54 | 54 | case SOAP_1_1: |
55 | 55 | $parameters[] = "Content-Type: text/xml;charset=UTF-8;"; |
56 | - if(!empty($action)) $parameters[] = "SOAPAction: \"$action\""; |
|
56 | + if (!empty($action)) $parameters[] = "SOAPAction: \"$action\""; |
|
57 | 57 | $parameters[] = "Content-length: $msgSize"; |
58 | 58 | break; |
59 | 59 | case SOAP_1_2: |
@@ -61,14 +61,14 @@ discard block |
||
61 | 61 | "Content-Type: application/soap+xml;charset=utf-8;", |
62 | 62 | "Content-length: $msgSize" |
63 | 63 | ]; |
64 | - if(!empty($action)) $parameter[0] .= "action=$action"; |
|
64 | + if (!empty($action)) $parameter[0] .= "action=$action"; |
|
65 | 65 | break; |
66 | 66 | default: |
67 | 67 | $parameters = [ |
68 | 68 | "Content-Type: application/soap+xml;charset=utf-8;", |
69 | 69 | "Content-length: $msgSize" |
70 | 70 | ]; |
71 | - if(!empty($action)) $parameter[0] .= "action=$action"; |
|
71 | + if (!empty($action)) $parameter[0] .= "action=$action"; |
|
72 | 72 | break; |
73 | 73 | } |
74 | 74 |
@@ -53,7 +53,9 @@ discard block |
||
53 | 53 | switch ($soapver) { |
54 | 54 | case SOAP_1_1: |
55 | 55 | $parameters[] = "Content-Type: text/xml;charset=UTF-8;"; |
56 | - if(!empty($action)) $parameters[] = "SOAPAction: \"$action\""; |
|
56 | + if(!empty($action)) { |
|
57 | + $parameters[] = "SOAPAction: \"$action\""; |
|
58 | + } |
|
57 | 59 | $parameters[] = "Content-length: $msgSize"; |
58 | 60 | break; |
59 | 61 | case SOAP_1_2: |
@@ -61,14 +63,18 @@ discard block |
||
61 | 63 | "Content-Type: application/soap+xml;charset=utf-8;", |
62 | 64 | "Content-length: $msgSize" |
63 | 65 | ]; |
64 | - if(!empty($action)) $parameter[0] .= "action=$action"; |
|
66 | + if(!empty($action)) { |
|
67 | + $parameter[0] .= "action=$action"; |
|
68 | + } |
|
65 | 69 | break; |
66 | 70 | default: |
67 | 71 | $parameters = [ |
68 | 72 | "Content-Type: application/soap+xml;charset=utf-8;", |
69 | 73 | "Content-length: $msgSize" |
70 | 74 | ]; |
71 | - if(!empty($action)) $parameter[0] .= "action=$action"; |
|
75 | + if(!empty($action)) { |
|
76 | + $parameter[0] .= "action=$action"; |
|
77 | + } |
|
72 | 78 | break; |
73 | 79 | } |
74 | 80 |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | switch ($soapver) { |
72 | 72 | case SOAP_1_1: |
73 | 73 | $parameters[] = "Content-Type: text/xml;charset=UTF-8;"; |
74 | - if(!empty($action)) $parameters[] = "SOAPAction: \"$action\""; |
|
74 | + if (!empty($action)) $parameters[] = "SOAPAction: \"$action\""; |
|
75 | 75 | $parameters[] = "Content-length: $msgSize"; |
76 | 76 | break; |
77 | 77 | case SOAP_1_2: |
@@ -79,14 +79,14 @@ discard block |
||
79 | 79 | "Content-Type: application/soap+xml;charset=utf-8;", |
80 | 80 | "Content-length: $msgSize" |
81 | 81 | ]; |
82 | - if(!empty($action)) $parameter[0] .= "action=$action"; |
|
82 | + if (!empty($action)) $parameter[0] .= "action=$action"; |
|
83 | 83 | break; |
84 | 84 | default: |
85 | 85 | $parameters = [ |
86 | 86 | "Content-Type: application/soap+xml;charset=utf-8;", |
87 | 87 | "Content-length: $msgSize" |
88 | 88 | ]; |
89 | - if(!empty($action)) $parameter[0] .= "action=$action"; |
|
89 | + if (!empty($action)) $parameter[0] .= "action=$action"; |
|
90 | 90 | break; |
91 | 91 | } |
92 | 92 |
@@ -71,7 +71,9 @@ discard block |
||
71 | 71 | switch ($soapver) { |
72 | 72 | case SOAP_1_1: |
73 | 73 | $parameters[] = "Content-Type: text/xml;charset=UTF-8;"; |
74 | - if(!empty($action)) $parameters[] = "SOAPAction: \"$action\""; |
|
74 | + if(!empty($action)) { |
|
75 | + $parameters[] = "SOAPAction: \"$action\""; |
|
76 | + } |
|
75 | 77 | $parameters[] = "Content-length: $msgSize"; |
76 | 78 | break; |
77 | 79 | case SOAP_1_2: |
@@ -79,14 +81,18 @@ discard block |
||
79 | 81 | "Content-Type: application/soap+xml;charset=utf-8;", |
80 | 82 | "Content-length: $msgSize" |
81 | 83 | ]; |
82 | - if(!empty($action)) $parameter[0] .= "action=$action"; |
|
84 | + if(!empty($action)) { |
|
85 | + $parameter[0] .= "action=$action"; |
|
86 | + } |
|
83 | 87 | break; |
84 | 88 | default: |
85 | 89 | $parameters = [ |
86 | 90 | "Content-Type: application/soap+xml;charset=utf-8;", |
87 | 91 | "Content-length: $msgSize" |
88 | 92 | ]; |
89 | - if(!empty($action)) $parameter[0] .= "action=$action"; |
|
93 | + if(!empty($action)) { |
|
94 | + $parameter[0] .= "action=$action"; |
|
95 | + } |
|
90 | 96 | break; |
91 | 97 | } |
92 | 98 |