@@ -62,20 +62,20 @@ discard block |
||
62 | 62 | curl_setopt($oCurl, CURLOPT_HEADER, 1); |
63 | 63 | curl_setopt($oCurl, CURLOPT_SSL_VERIFYHOST, 0); |
64 | 64 | curl_setopt($oCurl, CURLOPT_SSL_VERIFYPEER, 0); |
65 | - if (! $this->disablesec) { |
|
65 | + if (!$this->disablesec) { |
|
66 | 66 | curl_setopt($oCurl, CURLOPT_SSL_VERIFYHOST, 2); |
67 | 67 | if (is_file($this->casefaz)) { |
68 | 68 | curl_setopt($oCurl, CURLOPT_CAINFO, $this->casefaz); |
69 | 69 | } |
70 | 70 | } |
71 | 71 | curl_setopt($oCurl, CURLOPT_SSLVERSION, $this->soapprotocol); |
72 | - curl_setopt($oCurl, CURLOPT_SSLCERT, $this->tempdir.$this->certfile); |
|
73 | - curl_setopt($oCurl, CURLOPT_SSLKEY, $this->tempdir.$this->prifile); |
|
74 | - if (! empty($this->temppass)) { |
|
72 | + curl_setopt($oCurl, CURLOPT_SSLCERT, $this->tempdir . $this->certfile); |
|
73 | + curl_setopt($oCurl, CURLOPT_SSLKEY, $this->tempdir . $this->prifile); |
|
74 | + if (!empty($this->temppass)) { |
|
75 | 75 | curl_setopt($oCurl, CURLOPT_KEYPASSWD, $this->temppass); |
76 | 76 | } |
77 | 77 | curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, true); |
78 | - if (! empty($envelope)) { |
|
78 | + if (!empty($envelope)) { |
|
79 | 79 | curl_setopt($oCurl, CURLOPT_POST, true); |
80 | 80 | curl_setopt($oCurl, CURLOPT_POSTFIELDS, $envelope); |
81 | 81 | curl_setopt($oCurl, CURLOPT_HTTPHEADER, $parameters); |
@@ -94,8 +94,8 @@ discard block |
||
94 | 94 | $this->responseBody = trim(substr($response, $headsize)); |
95 | 95 | $this->saveDebugFiles( |
96 | 96 | $operation, |
97 | - $this->requestHead."\n".$this->requestBody, |
|
98 | - $this->responseHead."\n".$this->responseBody |
|
97 | + $this->requestHead . "\n" . $this->requestBody, |
|
98 | + $this->responseHead . "\n" . $this->responseBody |
|
99 | 99 | ); |
100 | 100 | } catch (\Exception $e) { |
101 | 101 | throw SoapException::unableToLoadCurl($e->getMessage()); |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | if (intval($this->soaperror_code) == 0) { |
105 | 105 | $this->soaperror_code = 7; |
106 | 106 | } |
107 | - throw SoapException::soapFault($this->soaperror." [$url]", $this->soaperror_code); |
|
107 | + throw SoapException::soapFault($this->soaperror . " [$url]", $this->soaperror_code); |
|
108 | 108 | } |
109 | 109 | if ($httpcode != 200) { |
110 | 110 | if (intval($httpcode) == 0) { |
@@ -123,9 +123,9 @@ discard block |
||
123 | 123 | if ($this->proxyIP != '') { |
124 | 124 | curl_setopt($oCurl, CURLOPT_HTTPPROXYTUNNEL, 1); |
125 | 125 | curl_setopt($oCurl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); |
126 | - curl_setopt($oCurl, CURLOPT_PROXY, $this->proxyIP.':'.$this->proxyPort); |
|
126 | + curl_setopt($oCurl, CURLOPT_PROXY, $this->proxyIP . ':' . $this->proxyPort); |
|
127 | 127 | if ($this->proxyUser != '') { |
128 | - curl_setopt($oCurl, CURLOPT_PROXYUSERPWD, $this->proxyUser.':'.$this->proxyPass); |
|
128 | + curl_setopt($oCurl, CURLOPT_PROXYUSERPWD, $this->proxyUser . ':' . $this->proxyPass); |
|
129 | 129 | curl_setopt($oCurl, CURLOPT_PROXYAUTH, CURLAUTH_BASIC); |
130 | 130 | } |
131 | 131 | } |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | $dom->preserveWhiteSpace = false; |
146 | 146 | $dom->loadXML($body); |
147 | 147 | $faultstring = ''; |
148 | - $nodefault = ! empty($dom->getElementsByTagName('faultstring')->item(0)) |
|
148 | + $nodefault = !empty($dom->getElementsByTagName('faultstring')->item(0)) |
|
149 | 149 | ? $dom->getElementsByTagName('faultstring')->item(0) |
150 | 150 | : ''; |
151 | 151 | if (!empty($nodefault)) { |
@@ -171,9 +171,9 @@ discard block |
||
171 | 171 | curl_setopt($oCurl, CURLOPT_SSL_VERIFYHOST, 0); |
172 | 172 | curl_setopt($oCurl, CURLOPT_SSL_VERIFYPEER, 0); |
173 | 173 | curl_setopt($oCurl, CURLOPT_SSLVERSION, $this->soapprotocol); |
174 | - curl_setopt($oCurl, CURLOPT_SSLCERT, $this->tempdir.$this->certfile); |
|
175 | - curl_setopt($oCurl, CURLOPT_SSLKEY, $this->tempdir.$this->prifile); |
|
176 | - if (! empty($this->temppass)) { |
|
174 | + curl_setopt($oCurl, CURLOPT_SSLCERT, $this->tempdir . $this->certfile); |
|
175 | + curl_setopt($oCurl, CURLOPT_SSLKEY, $this->tempdir . $this->prifile); |
|
176 | + if (!empty($this->temppass)) { |
|
177 | 177 | curl_setopt($oCurl, CURLOPT_KEYPASSWD, $this->temppass); |
178 | 178 | } |
179 | 179 | curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, true); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | if (!is_file($jsonschema) || !is_file($definitions)) { |
19 | 19 | return []; |
20 | 20 | } |
21 | - $jsonSchemaObject = json_decode((string)file_get_contents($jsonschema)); |
|
21 | + $jsonSchemaObject = json_decode((string) file_get_contents($jsonschema)); |
|
22 | 22 | $schemaStorage = new SchemaStorage(); |
23 | 23 | $schemaStorage->addSchema("file:{$definitions}", $jsonSchemaObject); |
24 | 24 | $jsonValidator = new Validator(new Factory($schemaStorage)); |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Class eSocial EvtReintegr Event S-2298 constructor |
7 | - |
|
8 | 7 | * READ for 2.5.0 layout |
9 | 8 | * |
10 | 9 | * @category library |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Class eSocial EvtExclusao Event S-3000 constructor |
7 | - |
|
8 | 7 | * Read for 2.5.0 layout |
9 | 8 | * |
10 | 9 | * @category library |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Class eSocial EvtInsApo Event S-2241 constructor |
7 | - |
|
8 | 7 | * Não existe em 2.5.0 layout |
9 | 8 | * |
10 | 9 | * @category library |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | $this->dom->addChild( |
106 | 106 | $ide, |
107 | 107 | "fimValid", |
108 | - ! empty($this->std->fimvalid) ? $this->std->fimvalid : null, |
|
108 | + !empty($this->std->fimvalid) ? $this->std->fimvalid : null, |
|
109 | 109 | false |
110 | 110 | ); |
111 | 111 | $dados = null; |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | $this->dom->addChild( |
160 | 160 | $nova, |
161 | 161 | "fimValid", |
162 | - ! empty($this->std->novavalidade->fimvalid) |
|
162 | + !empty($this->std->novavalidade->fimvalid) |
|
163 | 163 | ? $this->std->novavalidade->fimvalid |
164 | 164 | : null, |
165 | 165 | false |
@@ -111,6 +111,6 @@ |
||
111 | 111 | */ |
112 | 112 | protected function toNodeS100() |
113 | 113 | { |
114 | - throw new \Exception("TODO !!"); |
|
114 | + throw new \Exception("TODO !!"); |
|
115 | 115 | } |
116 | 116 | } |
@@ -171,7 +171,7 @@ |
||
171 | 171 | $this->dom->addChild( |
172 | 172 | $nova, |
173 | 173 | "fimValid", |
174 | - ! empty($this->std->novavalidade->fimvalid) |
|
174 | + !empty($this->std->novavalidade->fimvalid) |
|
175 | 175 | ? $this->std->novavalidade->fimvalid |
176 | 176 | : null, |
177 | 177 | false |
@@ -211,8 +211,8 @@ discard block |
||
211 | 211 | false |
212 | 212 | ); |
213 | 213 | $infoCadastro->appendChild($info); |
214 | - if (isset($this->std->infoop) && !empty($infoCadastro)) { |
|
215 | - $cad = $this->std->infoop; |
|
214 | + if (isset($this->std->infoop) && !empty($infoCadastro)) { |
|
215 | + $cad = $this->std->infoop; |
|
216 | 216 | $infoOP = $this->dom->createElement("infoOP"); |
217 | 217 | $this->dom->addChild( |
218 | 218 | $infoOP, |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | true |
222 | 222 | ); |
223 | 223 | if (isset($this->std->infoefr)) { |
224 | - $cad = $this->std->infoefr; |
|
224 | + $cad = $this->std->infoefr; |
|
225 | 225 | $infoEFR = $this->dom->createElement("infoEFR"); |
226 | 226 | $this->dom->addChild( |
227 | 227 | $infoEFR, |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | $infoOP->appendChild($infoEFR); |
239 | 239 | } |
240 | 240 | if (isset($this->std->infoente)) { |
241 | - $cad = $this->std->infoente; |
|
241 | + $cad = $this->std->infoente; |
|
242 | 242 | $infoEnte = $this->dom->createElement("infoEnte"); |
243 | 243 | $this->dom->addChild( |
244 | 244 | $infoEnte, |