Skip to content

Commit

Permalink
fix: resolução de conflito do merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Glaydson Rodrigues committed Sep 20, 2024
1 parent 0451d64 commit 2b4ced2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 538 deletions.
8 changes: 4 additions & 4 deletions src/rn/PENAgendamentoRN.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ protected function atualizarHipotesesLegaisControlado()
$hipotesesPenDesativadas = $processoEletronicoRN->consultarHipotesesLegais(false);

$hipoteses = array();
if (!empty($hipotesesPen) && !empty($hipotesesPen->hipotesesLegais) && !empty($hipotesesPen->hipotesesLegais->hipotese)) {
$hipoteses = $hipotesesPen->hipotesesLegais->hipotese;
if (!empty($hipotesesPen) && !empty($hipotesesPen['hipotesesLegais'])) {
$hipoteses = $hipotesesPen['hipotesesLegais'];
}

if (!empty($hipotesesPenDesativadas) && !empty($hipotesesPenDesativadas->hipotesesLegais) && !empty($hipotesesPenDesativadas->hipotesesLegais->hipotese)) {
$hipoteses = array_merge($hipoteses, $hipotesesPenDesativadas->hipotesesLegais->hipotese);
if (!empty($hipotesesPenDesativadas) && !empty($hipotesesPenDesativadas['hipotesesLegais'])) {
$hipoteses = array_merge($hipoteses, $hipotesesPenDesativadas['hipotesesLegais']);
}

if(empty($hipoteses)){
Expand Down
Loading

0 comments on commit 2b4ced2

Please sign in to comment.