@@ -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,8 +22,6 @@ |
||
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 | 27 |
@@ -222,12 +222,12 @@ discard block |
||
222 | 222 | $this->dom->appChild($this->infMDFe, $this->ide, 'Falta tag "infMDFe"'); |
223 | 223 | $this->dom->appChild($this->emit, $this->enderEmit, 'Falta tag "emit"'); |
224 | 224 | $this->dom->appChild($this->infMDFe, $this->emit, 'Falta tag "infMDFe"'); |
225 | - if (! empty($this->rodo)) { |
|
225 | + if (!empty($this->rodo)) { |
|
226 | 226 | $this->dom->appChild($this->infModal, $this->rodo, 'Falta tag "infModal"'); |
227 | 227 | } |
228 | 228 | $this->dom->appChild($this->infMDFe, $this->infModal, 'Falta tag "infMDFe"'); |
229 | 229 | $this->dom->appChild($this->infMDFe, $this->infDoc, 'Falta tag "infMDFe"'); |
230 | - if (! empty($this->seg)) { |
|
230 | + if (!empty($this->seg)) { |
|
231 | 231 | $this->dom->appChild($this->infMDFe, $this->seg, 'Falta tag "infMDFe"'); |
232 | 232 | } |
233 | 233 | $this->dom->appChild($this->infMDFe, $this->tot, 'Falta tag "infMDFe"'); |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | foreach ($this->autXML as $autXML) { |
238 | 238 | $this->dom->appChild($this->infMDFe, $autXML, 'Falta tag "infMDFe"'); |
239 | 239 | } |
240 | - if (! empty($this->infAdic)) { |
|
240 | + if (!empty($this->infAdic)) { |
|
241 | 241 | $this->dom->appChild($this->infMDFe, $this->infAdic, 'Falta tag "infMDFe"'); |
242 | 242 | } |
243 | 243 | $this->dom->appChild($this->MDFe, $this->infMDFe, 'Falta tag "MDFe"'); |
@@ -1161,7 +1161,7 @@ discard block |
||
1161 | 1161 | "Quantidade rateada (Peso,Volume) " |
1162 | 1162 | ); |
1163 | 1163 | |
1164 | - return $infUnidCarga ; |
|
1164 | + return $infUnidCarga; |
|
1165 | 1165 | } |
1166 | 1166 | |
1167 | 1167 | /** |
@@ -2144,10 +2144,10 @@ discard block |
||
2144 | 2144 | |
2145 | 2145 | protected function buildTagIde() |
2146 | 2146 | { |
2147 | - if (! empty($this->aInfMunCarrega)) { |
|
2147 | + if (!empty($this->aInfMunCarrega)) { |
|
2148 | 2148 | $this->dom->addArrayChild($this->ide, $this->aInfMunCarrega); |
2149 | 2149 | } |
2150 | - if (! empty($this->aInfPercurso)) { |
|
2150 | + if (!empty($this->aInfPercurso)) { |
|
2151 | 2151 | $this->dom->addArrayChild($this->ide, $this->aInfPercurso); |
2152 | 2152 | } |
2153 | 2153 | } |
@@ -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, |