Completed
Pull Request — master (#46)
by Antonio Oertel
04:53
created
src/Certificate/Asn.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      *
29 29
      * Obtêm o numero de CNPJ da chave publica do Certificado (A1)
30 30
      *
31
-     * @param string $certpem conteúdo do certificado
31
+     * @param string $certPem conteúdo do certificado
32 32
      * @return string CNPJ
33 33
      */
34 34
     public static function getCNPJCert($certPem)
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -296,7 +296,7 @@
 block discarded – undo
296 296
         $dataI = self::parseCommon($data, $timeData);
297 297
         $result[] = array(
298 298
             'utctime (' . self::$len . ')',
299
-             $timeData);
299
+                $timeData);
300 300
         $data = $dataI;
301 301
     }
302 302
     
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -64,11 +64,11 @@  discard block
 block discarded – undo
64 64
             //identificar o tamanho da sequencia
65 65
             for ($i = 1; $i < $tot; $i++) {
66 66
                 //recupera da primeira parte os 4 últimos digitos na parte sem o OID
67
-                $xcv4 = substr($partes[$i-1], strlen($partes[$i-1])-4, 4);
67
+                $xcv4 = substr($partes[$i - 1], strlen($partes[$i - 1]) - 4, 4);
68 68
                 //recupera da primeira parte os 3 ultimos digitos na parte sem o OID
69
-                $xcv3 = substr($partes[$i-1], strlen($partes[$i-1])-3, 3);
69
+                $xcv3 = substr($partes[$i - 1], strlen($partes[$i - 1]) - 3, 3);
70 70
                 //recupera da primeira parte os 2 ultimos digitos na parte em o OID
71
-                $xcv2 = substr($partes[$i-1], strlen($partes[$i-1])-2, 2);
71
+                $xcv2 = substr($partes[$i - 1], strlen($partes[$i - 1]) - 2, 2);
72 72
                 //verifica se o primeiro digito é Hex 030
73 73
                 if ($xcv4[0] == chr(0x30)) {
74 74
                     //se for, então tamanho é definido por esses 4 bytes
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                 // Obtem o conjunto de bytes pertencentes a oid
94 94
                 $oidData = substr($data, 2 + $bytes, $len);
95 95
                 //parse dos dados da oid
96
-                $ret[] =  self::parseASN((string) $oidData);
96
+                $ret[] = self::parseASN((string) $oidData);
97 97
             }
98 98
         }
99 99
         return $ret;
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
                     break;
189 189
                 default:
190 190
                     // Unknown
191
-                    $result[] = 'UNKNOWN' .  $data;
191
+                    $result[] = 'UNKNOWN' . $data;
192 192
                     $data = '';
193 193
                     break;
194 194
             }
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
         $dataI = self::parseCommon($data, $integerData);
244 244
         if (self::$len == 16) {
245 245
             $result[] = array(
246
-                'integer('.self::$len.')',
246
+                'integer(' . self::$len . ')',
247 247
                 $integerData);
248 248
         } else {
249 249
             $value = 0;
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
         $extensionData = substr($data, 0, 1);
280 280
         $dataI = substr($data, 1);
281 281
         $result[] = array(
282
-            $text .' (' . self::$len . ')',
282
+            $text . ' (' . self::$len . ')',
283 283
             dechex($extensionData));
284 284
         $data = $dataI;
285 285
     }
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
             $values = array($values);
362 362
         }
363 363
         $result[] = array(
364
-            'sequence ('.self::$len.')',
364
+            'sequence (' . self::$len . ')',
365 365
             $values);
366 366
     }
367 367
     
@@ -391,12 +391,12 @@  discard block
 block discarded – undo
391 391
         }
392 392
         $oidResp = Oids::getOid($plain);
393 393
         if ($oidResp) {
394
-            $result[] =  array(
395
-                'oid('.self::$len . '): '.$plain,
394
+            $result[] = array(
395
+                'oid(' . self::$len . '): ' . $plain,
396 396
                 $oidResp);
397 397
         } else {
398 398
             $result[] = array(
399
-                'oid('.self::$len.'): '.$plain,
399
+                'oid(' . self::$len . '): ' . $plain,
400 400
                 $plain);
401 401
         }
402 402
     }
@@ -428,11 +428,11 @@  discard block
 block discarded – undo
428 428
         $data = self::parseCommon($data, $octectstringData);
429 429
         if ($contextEspecific) {
430 430
             $result[] = array(
431
-                'octet string('.self::$len.')',
431
+                'octet string(' . self::$len . ')',
432 432
                 $octectstringData);
433 433
         } else {
434 434
             $result[] = array(
435
-                'octet string ('.self::$len.')',
435
+                'octet string (' . self::$len . ')',
436 436
                 self::parseASN((string) $octectstringData));
437 437
         }
438 438
     }
@@ -450,11 +450,11 @@  discard block
 block discarded – undo
450 450
         $data = self::parseCommon($data, $octectstringData);
451 451
         if ($contextEspecific) {
452 452
             $result[] = array(
453
-                'utf8 string('.self::$len.')',
453
+                'utf8 string(' . self::$len . ')',
454 454
                 $octectstringData);
455 455
         } else {
456 456
             $result[] = array(
457
-                'utf8 string ('.self::$len.')',
457
+                'utf8 string (' . self::$len . ')',
458 458
                 self::parseASN((string) $octectstringData));
459 459
         }
460 460
     }
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
         // Bitstring type
501 501
         $data = self::parseCommon($data, $bitstringData);
502 502
         $result[] = array(
503
-            'bit string ('.self::$len.')',
504
-            'UnsedBits:'.ord($bitstringData[0]).':'.ord($bitstringData[1]));
503
+            'bit string (' . self::$len . ')',
504
+            'UnsedBits:' . ord($bitstringData[0]) . ':' . ord($bitstringData[1]));
505 505
     }
506 506
 }
Please login to merge, or discard this patch.
src/Certificate/Base.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      * pem2Der
21 21
      * Transforma o certificado do formato PEM para o formato DER
22 22
      *
23
-     * @param string $pem_data
23
+     * @param string $pemData
24 24
      * @return string
25 25
      */
26 26
     protected static function pem2Der($pemData)
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      * @param array $abIn
79 79
      * @param integer $qIn
80 80
      * @param boolean $flag
81
-     * @return integer
81
+     * @return integer[]
82 82
      */
83 83
     protected static function xBase128($abIn, $qIn, $flag)
84 84
     {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             if ($num == 0) {
58 58
                 $bun = 40 * $partes[$num];
59 59
             } elseif ($num == 1) {
60
-                $bun +=  $partes[$num];
60
+                $bun += $partes[$num];
61 61
                 $abBinary[] = $bun;
62 62
             } else {
63 63
                 $abBinary = self::xBase128((array) $abBinary, (integer) $partes[$num], true);
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     {
85 85
         $abc = $abIn;
86 86
         if ($qIn > 127) {
87
-            $abc = self::xBase128($abc, floor($qIn/128), false);
87
+            $abc = self::xBase128($abc, floor($qIn / 128), false);
88 88
         }
89 89
         $qIn2 = $qIn % 128;
90 90
         if ($flag) {
@@ -104,14 +104,14 @@  discard block
 block discarded – undo
104 104
      */
105 105
     protected static function printHex($value)
106 106
     {
107
-        $tabVal = array('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F');
107
+        $tabVal = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F');
108 108
         $hex = '';
109
-        for ($i=0; $i<strlen($value); $i++) {
109
+        for ($i = 0; $i < strlen($value); $i++) {
110 110
             $lsig = ord(substr($value, $i, 1)) % 16;
111 111
             $msig = (ord(substr($value, $i, 1)) - $lsig) / 16;
112 112
             $lessSig = $tabVal[$lsig];
113 113
             $moreSig = $tabVal[$msig];
114
-            $hex .=  $moreSig.$lessSig;
114
+            $hex .= $moreSig . $lessSig;
115 115
         }
116 116
         return $hex;
117 117
     }
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
             // Testa se tamanho indefinido (nao deve ocorrer em uma codificação DER)
135 135
             if ($len == chr(0x80)) {
136 136
                 // Tamanho indefinido, limitado por 0x0000h
137
-                $len = strpos($data, chr(0x00).chr(0x00));
137
+                $len = strpos($data, chr(0x00) . chr(0x00));
138 138
                 $bytes = 0;
139 139
             } else {
140 140
                 //é tamanho definido. diz quantos bytes formam o tamanho
Please login to merge, or discard this patch.
src/DateTime/DateTime.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,6 @@
 block discarded – undo
68 68
      * convertSefazTimeToTimestamp
69 69
      * Converte a imformação de data e tempo contida na NFe
70 70
      *
71
-     * @param string $DH Informação de data e tempo extraida da NFe
72 71
      * @return timestamp UNIX Para uso com a funçao date do php
73 72
      */
74 73
     public static function convertSefazTimeToTimestamp($dataHora = '')
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             'SP'=>'America/Sao_Paulo',
57 57
             'TO'=>'America/Araguaina');
58 58
 
59
-        if (! isset($tzUFlist[$siglaUF])) {
59
+        if (!isset($tzUFlist[$siglaUF])) {
60 60
             return '';
61 61
         }
62 62
         //seta a zona de tempo
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $dataHora = str_replace('+', '-', $dataHora);
82 82
         $aDH = explode('T', $dataHora);
83 83
         $adDH = explode('-', $aDH[0]);
84
-        $atDH = array('0','0','0');
84
+        $atDH = array('0', '0', '0');
85 85
         if (count($aDH) == 2) {
86 86
             $inter = explode('-', $aDH[1]);
87 87
             $atDH = explode(':', $inter[0]);
Please login to merge, or discard this patch.
src/Files/FilesFolders.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,6 @@
 block discarded – undo
136 136
     /**
137 137
      * listDir
138 138
      * Obtem todo o conteúdo de um diretorio, e que atendam ao critério indicado.
139
-     * @param string $dir Diretorio a ser pesquisado
140 139
      * @param string $fileMatch Critério de seleção pode ser usados coringas como *-nfe.xml
141 140
      * @param boolean $retpath se true retorna o path completo dos arquivos se false so retorna o nome dos arquivos
142 141
      * @return array com os nome dos arquivos que atendem ao critério estabelecido ou false
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 class FilesFolders
18 18
 {
19 19
     
20
-    protected static $ambientes = array('homologacao','producao');
20
+    protected static $ambientes = array('homologacao', 'producao');
21 21
     protected static $subdirs = array(
22 22
         'entradas',
23 23
         'assinadas',
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             . DIRECTORY_SEPARATOR
69 69
             . $subdir;
70 70
         
71
-        if (! is_dir($path)) {
71
+        if (!is_dir($path)) {
72 72
             $msg = "Não existe o diretorio $path !";
73 73
             throw new Exception\RuntimeException($msg);
74 74
         }
@@ -87,10 +87,10 @@  discard block
 block discarded – undo
87 87
         //monta a arvore de diretórios necessária e estabelece permissões de acesso
88 88
         self::createFolder($dirPath);
89 89
         foreach (self::$ambientes as $ambiente) {
90
-            $folder = $dirPath.DIRECTORY_SEPARATOR.$ambiente;
90
+            $folder = $dirPath . DIRECTORY_SEPARATOR . $ambiente;
91 91
             self::createFolder($folder);
92 92
             foreach (self::$subdirs as $subdir) {
93
-                $folder = $dirPath.DIRECTORY_SEPARATOR.$ambiente.DIRECTORY_SEPARATOR.$subdir;
93
+                $folder = $dirPath . DIRECTORY_SEPARATOR . $ambiente . DIRECTORY_SEPARATOR . $subdir;
94 94
                 self::createFolder($folder);
95 95
             }
96 96
         }
@@ -104,8 +104,8 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public static function createFolder($folder = '')
106 106
     {
107
-        if (! is_dir($folder)) {
108
-            if (! mkdir($folder, 0777, true)) {
107
+        if (!is_dir($folder)) {
108
+            if (!mkdir($folder, 0777, true)) {
109 109
                 throw new Exception\RuntimeException(
110 110
                     "Não foi possivel criar o diretorio $folder. Verifique as permissões"
111 111
                 );
@@ -123,11 +123,11 @@  discard block
 block discarded – undo
123 123
     public static function saveFile($path = '', $filename = '', $content = '')
124 124
     {
125 125
         self::createFolder($path);
126
-        $filePath = $path.DIRECTORY_SEPARATOR.$filename;
127
-        if (! file_put_contents($filePath, $content)) {
126
+        $filePath = $path . DIRECTORY_SEPARATOR . $filename;
127
+        if (!file_put_contents($filePath, $content)) {
128 128
             return false;
129 129
         }
130
-        if (! chmod($filePath, 0777)) {
130
+        if (!chmod($filePath, 0777)) {
131 131
             return false;
132 132
         }
133 133
         return true;
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
                 "É necessário passar os parametros diretório e filtro!!!"
150 150
             );
151 151
         }
152
-        if (! is_dir($folder)) {
152
+        if (!is_dir($folder)) {
153 153
             throw new Exception\InvalidArgumentException(
154 154
                 "O diretório não existe $folder !!!"
155 155
             );
@@ -157,15 +157,15 @@  discard block
 block discarded – undo
157 157
         $aList = array();
158 158
         $search = $folder;
159 159
         if (substr($folder, -1) == DIRECTORY_SEPARATOR) {
160
-            $search = substr($folder, 0, strlen($folder)-1);
160
+            $search = substr($folder, 0, strlen($folder) - 1);
161 161
         }
162
-        $searchmatch = $search.DIRECTORY_SEPARATOR.$fileMatch;
162
+        $searchmatch = $search . DIRECTORY_SEPARATOR . $fileMatch;
163 163
         $aGlob = glob($searchmatch);
164 164
         $aList = $aGlob;
165
-        if (! $retpath && ! empty($aGlob)) {
165
+        if (!$retpath && !empty($aGlob)) {
166 166
             $aList = array();
167 167
             foreach ($aGlob as $pathFile) {
168
-                $aList[] = str_replace($search.DIRECTORY_SEPARATOR, '', $pathFile);
168
+                $aList[] = str_replace($search . DIRECTORY_SEPARATOR, '', $pathFile);
169 169
             }
170 170
         }
171 171
         return $aList;
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
         $comentDir = 'O diret&oacute;rio N&Atilde;O EXISTE';
187 187
         $corDir = $cRed;
188 188
         if (is_dir($path)) {
189
-            $filen = $path.DIRECTORY_SEPARATOR.'teste.txt';
189
+            $filen = $path . DIRECTORY_SEPARATOR . 'teste.txt';
190 190
             $comentDir = ' Sem permiss&atilde;o !!';
191 191
             if (file_put_contents($filen, "teste\r\n")) {
192 192
                 $corDir = $cGreen;
@@ -212,19 +212,19 @@  discard block
 block discarded – undo
212 212
      */
213 213
     public static function removeFolder($dirPath)
214 214
     {
215
-        $files = array_diff(scandir($dirPath), array('.','..'));
215
+        $files = array_diff(scandir($dirPath), array('.', '..'));
216 216
         foreach ($files as $file) {
217 217
             if (is_dir("$dirPath/$file")) {
218 218
                 self::removeFolder("$dirPath/$file");
219 219
             } else {
220
-                if (! unlink("$dirPath/$file")) {
220
+                if (!unlink("$dirPath/$file")) {
221 221
                     throw new Exception\RuntimeException(
222 222
                         "Falha! sem permissão de exclusão do arquivo $dirPath/$file"
223 223
                     );
224 224
                 }
225 225
             }
226 226
         }
227
-        if (! rmdir($dirPath)) {
227
+        if (!rmdir($dirPath)) {
228 228
             $msg = "Falha! sem permissão de exclusão do diretório $dirPath";
229 229
             throw new Exception\RuntimeException($msg);
230 230
         }
@@ -244,11 +244,11 @@  discard block
 block discarded – undo
244 244
             $msg = "Um caminho para o arquivo deve ser passado!!";
245 245
             throw new Exception\InvalidArgumentException($msg);
246 246
         }
247
-        if (! is_file($pathFile)) {
247
+        if (!is_file($pathFile)) {
248 248
             $msg = "O arquivo indicado não foi localizado!! $pathFile";
249 249
             throw new Exception\InvalidArgumentException($msg);
250 250
         }
251
-        if (! is_readable($pathFile)) {
251
+        if (!is_readable($pathFile)) {
252 252
             $msg = "O arquivo indicado não pode ser lido. Permissões!! $pathFile";
253 253
             throw new Exception\RuntimeException($msg);
254 254
         }
Please login to merge, or discard this patch.
src/Files/FilesZip.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
      * unGZip
66 66
      * Descompacta dados compactados GZIP via PHP
67 67
      * @param string $data Dados compactados com gzip em uma string
68
-     * @return mixed
68
+     * @return false|string
69 69
      */
70 70
     public static function unGZip($data = '')
71 71
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
                 "Não está no formato GZIP."
76 76
             );
77 77
         }
78
-        $method = ord(substr($data, 2, 1));  // metodo de compressão
79
-        $flags  = ord(substr($data, 3, 1));  // Flags
78
+        $method = ord(substr($data, 2, 1)); // metodo de compressão
79
+        $flags  = ord(substr($data, 3, 1)); // Flags
80 80
         if ($flags & 31 != $flags) {
81 81
             throw new Exception\RuntimeException(
82 82
                 "Não são permitidos bits reservados."
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         $isize = unpack("V", substr($data, -4));
166 166
         $isize = $isize[1];
167 167
         // decompressão
168
-        $bodylen = $len-$headerlen-8;
168
+        $bodylen = $len - $headerlen - 8;
169 169
         if ($bodylen < 1) {
170 170
             throw new Exception\RuntimeException(
171 171
                 "BUG da implementação."
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
         $crcOK = $crc == $datacrc;
192 192
         $lenOK = $isize == strlen($data);
193 193
         if (!$lenOK || !$crcOK) {
194
-            $msg = ( $lenOK ? '' : 'Verificação do comprimento FALHOU. ').( $crcOK ? '' : 'Checksum FALHOU.');
194
+            $msg = ($lenOK ? '' : 'Verificação do comprimento FALHOU. ') . ($crcOK ? '' : 'Checksum FALHOU.');
195 195
             throw new Exception\RuntimeException(
196 196
                 $msg
197 197
             );
Please login to merge, or discard this patch.
src/Identify/Identify.php 2 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,8 @@
 block discarded – undo
85 85
     
86 86
     /**
87 87
      * zSearchNode
88
-     * @param DOMDocument $dom
88
+     * @param Dom $dom
89
+     * @param string $key
89 90
      * @return string
90 91
      */
91 92
     protected static function zSearchNode($dom, &$key)
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,8 +74,8 @@  discard block
 block discarded – undo
74 74
             $tpAmb = $dom->getNodeValue('tpAmb');
75 75
             $dhEmi = $dom->getNodeValue('dhEmi');
76 76
         }
77
-        $aResp['Id'] =  $schId;
78
-        $aResp['tag'] =  $key;
77
+        $aResp['Id'] = $schId;
78
+        $aResp['tag'] = $key;
79 79
         $aResp['dom'] = $dom;
80 80
         $aResp['chave'] = $chave;
81 81
         $aResp['tpAmb'] = $tpAmb;
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     {
93 93
         foreach (self::$schemesId as $key => $schId) {
94 94
             $node = $dom->getElementsByTagName($key)->item(0);
95
-            if (! empty($node)) {
95
+            if (!empty($node)) {
96 96
                 return $schId;
97 97
             }
98 98
         }
Please login to merge, or discard this patch.
src/Soap/CorrectedSoapClient.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     /**
20 20
      * __construct
21 21
      *
22
-     * @param mixed $wsdl
22
+     * @param string $wsdl
23 23
      * @param array $options
24 24
      */
25 25
     public function __construct($wsdl, $options)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      */
39 39
     public function __doRequest($request, $location, $action, $version, $oneWay = 0)
40 40
     {
41
-        $aFind = array(":ns1","ns1:","\n","\r");
41
+        $aFind = array(":ns1", "ns1:", "\n", "\r");
42 42
         $sReplace = '';
43 43
         $newrequest = str_replace($aFind, $sReplace, $request);
44 44
         return parent::__doRequest($newrequest, $location, $action, $version, $oneWay);
Please login to merge, or discard this patch.
src/Soap/NatSoap.php 2 patches
Doc Comments   +2 added lines, -5 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      * @param string $certificateKey
56 56
      * @param string $pathWsdl
57 57
      * @param integer $timeout
58
-     * @return boolean
58
+     * @return null|false
59 59
      */
60 60
     public function __construct($publicKey = '', $privateKey = '', $certificateKey = '', $pathWsdl = '', $timeout = 10)
61 61
     {
@@ -84,14 +84,11 @@  discard block
 block discarded – undo
84 84
      * usando as chaves publica e privada parametrizadas na contrução da classe.
85 85
      * Conforme Manual de Integração Versão 4.0.1
86 86
      *
87
-     * @param string $urlsefaz
88 87
      * @param string $namespace
89 88
      * @param string $cabecalho
90 89
      * @param string $dados
91 90
      * @param string $metodo
92
-     * @param integer $ambiente  tipo de ambiente 1 - produção e 2 - homologação
93
-     * @param string $UF unidade da federação, necessário para diferenciar AM, MT e PR
94
-     * @return mixed false se houve falha ou o retorno em xml do SEFAZ
91
+     * @return false|string false se houve falha ou o retorno em xml do SEFAZ
95 92
      */
96 93
     public function send(
97 94
         $siglaUF = '',
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
                 $tout = $this->soapTimeout;
145 145
             }
146 146
             //completa a url do serviço para baixar o arquivo WSDL
147
-            $sefazURL = $urlsefaz.'?WSDL';
147
+            $sefazURL = $urlsefaz . '?WSDL';
148 148
             $this->soapDebug = $urlsefaz;
149 149
             $options = array(
150 150
                 'encoding'      => 'UTF-8',
Please login to merge, or discard this patch.
src/Certificate/Oids.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
             
18 18
     /**
19 19
      * getOid
20
-     * @param type $key
20
+     * @param string $key
21 21
      * @return mixed
22 22
      */
23 23
     public static function getOid($key)
Please login to merge, or discard this patch.