@@ -14,12 +14,12 @@ |
||
| 14 | 14 | |
| 15 | 15 | class LotNumber |
| 16 | 16 | { |
| 17 | - /** |
|
| 18 | - * geraNumLote |
|
| 19 | - * Gera numero de lote com base em microtime |
|
| 20 | - * @param integer $numdigits numero de digitos para o lote |
|
| 21 | - * @return string |
|
| 22 | - */ |
|
| 17 | + /** |
|
| 18 | + * geraNumLote |
|
| 19 | + * Gera numero de lote com base em microtime |
|
| 20 | + * @param integer $numdigits numero de digitos para o lote |
|
| 21 | + * @return string |
|
| 22 | + */ |
|
| 23 | 23 | public static function geraNumLote($numdigits = 15) |
| 24 | 24 | { |
| 25 | 25 | return substr(str_replace(',', '', number_format(microtime(true)*1000000, 0)), 0, $numdigits); |
@@ -251,11 +251,11 @@ |
||
| 251 | 251 | if (is_file($pathContingencia)) { |
| 252 | 252 | $contJson = Files\FilesFolders::readFile($pathContingencia); |
| 253 | 253 | if (! empty($contJson)) { |
| 254 | - $aCont = (array) json_decode($contJson); |
|
| 255 | - $this->motivoContingencia = $aCont['motivo']; |
|
| 256 | - $this->tsContingencia = $aCont['ts']; |
|
| 257 | - $this->enableSVCAN = $aCont['SVCAN']; |
|
| 258 | - $this->enableSVCRS = $aCont['SVCRS']; |
|
| 254 | + $aCont = (array) json_decode($contJson); |
|
| 255 | + $this->motivoContingencia = $aCont['motivo']; |
|
| 256 | + $this->tsContingencia = $aCont['ts']; |
|
| 257 | + $this->enableSVCAN = $aCont['SVCAN']; |
|
| 258 | + $this->enableSVCRS = $aCont['SVCRS']; |
|
| 259 | 259 | } |
| 260 | 260 | } |
| 261 | 261 | } |
@@ -296,7 +296,7 @@ |
||
| 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 | |