Skip to content

Commit

Permalink
chore: mudanças pós codereview
Browse files Browse the repository at this point in the history
  • Loading branch information
Glaydson Rodrigues committed Sep 20, 2024
1 parent e6e4332 commit 5ed70ca
Show file tree
Hide file tree
Showing 5 changed files with 135 additions and 188 deletions.
5 changes: 2 additions & 3 deletions src/rn/ExpedirProcedimentoRN.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ private function obterTamanhoTotalDaBarraDeProgresso($parObjProcesso) {
$arrHashIndexados = array();
foreach ($parObjProcesso->documento as $objDoc)
{
$arrComponentesDigitais = is_array($objDoc->componentesDigitais) ? $objDoc->componentesDigitais : array($objDoc->componentesDigitais);
$arrComponentesDigitais = is_array($objDoc->componenteDigital) ? $objDoc->componenteDigital : array($objDoc->componenteDigital);
foreach ($arrComponentesDigitais as $objComponenteDigital) {
$strHashComponente = ProcessoEletronicoRN::getHashFromMetaDados($objComponenteDigital->hash);
if(!in_array($strHashComponente, $arrHashIndexados)){
Expand Down Expand Up @@ -2155,9 +2155,8 @@ private function enviarComponentesDigitais($strNumeroRegistro, $numIdTramite, $s
];

$this->salvarAnexoImutavel($dados);
// $dadosDoComponenteDigital->conteudoDoComponenteDigital = new SoapVar($objDadosArquivo['CONTEUDO'], XSD_BASE64BINARY);

$dadosDoComponenteDigital->conteudoDoComponenteDigital = $objDadosArquivo;
$dadosDoComponenteDigital->conteudoDoComponenteDigital = $objDadosArquivo['CONTEUDO'];

$parametros = new stdClass();
$parametros->dadosDoComponenteDigital = $dadosDoComponenteDigital;
Expand Down
14 changes: 7 additions & 7 deletions src/rn/PENAgendamentoRN.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@ protected function atualizarHipotesesLegaisControlado()
}

//Para cada hipótese vinda do PEN será verificado a existencia.
foreach ($hipotesesPen->hipotesesLegais->hipotese as $hipotese) {
foreach ($hipotesesPen['hipotesesLegais'] as $hipotese) {

$objDTO = new PenHipoteseLegalDTO();
$objDTO->setNumIdentificacao($hipotese->identificacao);
$objDTO->setNumIdentificacao($hipotese['identificacao']);
$objDTO->setNumMaxRegistrosRetorno(1);
$objDTO->retStrNome();
$objDTO->retNumIdHipoteseLegal();
$objConsulta = $objBD->consultar($objDTO);

//Caso não haja um nome para a hipótese legal, ele pula para a próxima.
if (empty($hipotese->nome)) {
continue;
}
if (empty($hipotese['nome'])) {
continue;
}

$objDTO->setStrNome(utf8_decode($hipotese->nome));
$objDTO->setStrNome(utf8_decode($hipotese['nome']));

if ($hipotese->status) {
if ($hipotese['status']) {
$objDTO->setStrAtivo('S');
} else {
$objDTO->setStrAtivo('N');
Expand Down
Loading

0 comments on commit 5ed70ca

Please sign in to comment.