@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | * |
128 | 128 | * @param string $uf sigla da unidade da Federação |
129 | 129 | * @param string $tpAmb tipo de ambiente 1-produção e 2-homologação |
130 | - * @return mixed string XML do retorno do webservice, ou false se ocorreu algum erro |
|
130 | + * @return string string XML do retorno do webservice, ou false se ocorreu algum erro |
|
131 | 131 | */ |
132 | 132 | public function sefazStatus($uf = '', $tpAmb = null) |
133 | 133 | { |
@@ -286,9 +286,8 @@ discard block |
||
286 | 286 | * |
287 | 287 | * @param string $uf |
288 | 288 | * @param string $chave |
289 | - * @param string $cOrgao |
|
290 | 289 | * @param string $tpEvento |
291 | - * @param string $nSeqEvento |
|
290 | + * @param integer $nSeqEvento |
|
292 | 291 | * @param string $tagAdic |
293 | 292 | * @return string |
294 | 293 | */ |
@@ -2206,7 +2206,7 @@ |
||
2206 | 2206 | * Replace all unsuported chars |
2207 | 2207 | * |
2208 | 2208 | * @param stdClass $std |
2209 | - * @param array $possible |
|
2209 | + * @param string[] $possible |
|
2210 | 2210 | * @return stdClass |
2211 | 2211 | */ |
2212 | 2212 | protected function equilizeParameters(stdClass $std, $possible) |
@@ -22,11 +22,8 @@ |
||
22 | 22 | use NFePHP\Common\DOMImproved as Dom; |
23 | 23 | use NFePHP\Common\Strings; |
24 | 24 | use stdClass; |
25 | -use RuntimeException; |
|
26 | -use InvalidArgumentException; |
|
27 | 25 | use DOMElement; |
28 | 26 | use DateTime; |
29 | -use Exception; |
|
30 | 27 | |
31 | 28 | class Make |
32 | 29 | { |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | $this->dom->appChild($this->infMDFe, $this->ide, 'Falta tag "infMDFe"'); |
243 | 243 | $this->dom->appChild($this->emit, $this->enderEmit, 'Falta tag "emit"'); |
244 | 244 | $this->dom->appChild($this->infMDFe, $this->emit, 'Falta tag "infMDFe"'); |
245 | - if (! empty($this->rodo)) { |
|
245 | + if (!empty($this->rodo)) { |
|
246 | 246 | $this->dom->appChild($this->infModal, $this->rodo, 'Falta tag "infModal"'); |
247 | 247 | } |
248 | 248 | if (!empty($this->aquav)) { |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | } |
266 | 266 | $this->dom->appChild($this->infMDFe, $this->infModal, 'Falta tag "infMDFe"'); |
267 | 267 | $this->dom->appChild($this->infMDFe, $this->infDoc, 'Falta tag "infMDFe"'); |
268 | - if (! empty($this->seg)) { |
|
268 | + if (!empty($this->seg)) { |
|
269 | 269 | $this->dom->appChild($this->infMDFe, $this->seg, 'Falta tag "infMDFe"'); |
270 | 270 | } |
271 | 271 | $this->dom->appChild($this->infMDFe, $this->tot, 'Falta tag "infMDFe"'); |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | foreach ($this->autXML as $autXML) { |
276 | 276 | $this->dom->appChild($this->infMDFe, $autXML, 'Falta tag "infMDFe"'); |
277 | 277 | } |
278 | - if (! empty($this->infAdic)) { |
|
278 | + if (!empty($this->infAdic)) { |
|
279 | 279 | $this->dom->appChild($this->infMDFe, $this->infAdic, 'Falta tag "infMDFe"'); |
280 | 280 | } |
281 | 281 | $this->dom->appChild($this->MDFe, $this->infMDFe, 'Falta tag "MDFe"'); |
@@ -1199,7 +1199,7 @@ discard block |
||
1199 | 1199 | "Quantidade rateada (Peso,Volume) " |
1200 | 1200 | ); |
1201 | 1201 | |
1202 | - return $infUnidCarga ; |
|
1202 | + return $infUnidCarga; |
|
1203 | 1203 | } |
1204 | 1204 | |
1205 | 1205 | /** |
@@ -2322,10 +2322,10 @@ discard block |
||
2322 | 2322 | |
2323 | 2323 | protected function buildTagIde() |
2324 | 2324 | { |
2325 | - if (! empty($this->aInfMunCarrega)) { |
|
2325 | + if (!empty($this->aInfMunCarrega)) { |
|
2326 | 2326 | $this->dom->addArrayChild($this->ide, $this->aInfMunCarrega); |
2327 | 2327 | } |
2328 | - if (! empty($this->aInfPercurso)) { |
|
2328 | + if (!empty($this->aInfPercurso)) { |
|
2329 | 2329 | $this->dom->addArrayChild($this->ide, $this->aInfPercurso); |
2330 | 2330 | } |
2331 | 2331 | } |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | */ |
85 | 85 | public function __toString() |
86 | 86 | { |
87 | - return (string)$this->json; |
|
87 | + return (string) $this->json; |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | $resp = simplexml_load_string($xml, null, LIBXML_NOCDATA); |
97 | 97 | $aWS = []; |
98 | 98 | foreach ($resp->children() as $element) { |
99 | - $sigla = (string)$element->sigla; |
|
99 | + $sigla = (string) $element->sigla; |
|
100 | 100 | $aWS[$sigla] = []; |
101 | 101 | if (isset($element->homologacao)) { |
102 | 102 | $aWS[$sigla] += $this->extract($element->homologacao, 'homologacao'); |
@@ -119,11 +119,11 @@ discard block |
||
119 | 119 | { |
120 | 120 | $amb[$environment] = []; |
121 | 121 | foreach ($node->children() as $children) { |
122 | - $name = (string)$children->getName(); |
|
123 | - $method = (string)$children['method']; |
|
124 | - $operation = (string)$children['operation']; |
|
125 | - $version = (string)$children['version']; |
|
126 | - $url = (string)$children[0]; |
|
122 | + $name = (string) $children->getName(); |
|
123 | + $method = (string) $children['method']; |
|
124 | + $operation = (string) $children['operation']; |
|
125 | + $version = (string) $children['version']; |
|
126 | + $url = (string) $children[0]; |
|
127 | 127 | $operations = [ |
128 | 128 | 'method' => $method, |
129 | 129 | 'operation' => $operation, |
@@ -439,7 +439,7 @@ |
||
439 | 439 | protected function sendRequest($request, array $parameters = []) |
440 | 440 | { |
441 | 441 | $this->checkSoap(); |
442 | - return (string)$this->soap->send( |
|
442 | + return (string) $this->soap->send( |
|
443 | 443 | $this->urlService, |
444 | 444 | $this->urlMethod, |
445 | 445 | $this->urlAction, |