Commit 97e3e515da3b00daecfd8be4848963d1158c5095
1 parent
885b739c
Exists in
master
and in
21 other branches
Merge no ProcessoEletronicoINT
Showing
1 changed file
with
16 additions
and
13 deletions
Show diff stats
int/ProcessoEletronicoINT.php
... | ... | @@ -24,23 +24,26 @@ class ProcessoEletronicoINT extends InfraINT { |
24 | 24 | */ |
25 | 25 | private static function gerarHierarquiaEstruturas($estruturas = array()){ |
26 | 26 | |
27 | - if(empty($estruturas)) { | |
27 | + if(empty($estruturas)) { | |
28 | 28 | return $estruturas; |
29 | 29 | } |
30 | 30 | |
31 | - foreach($estruturas as &$estrutura) { | |
31 | + foreach($estruturas as &$estrutura) { | |
32 | + | |
32 | 33 | if($estrutura->isSetArrHierarquia()) { |
33 | - $siglas = $estrutura->getArrHierarquia(); | |
34 | - $nome = $estrutura->getStrNome(); | |
35 | - $nome .= ' - '; | |
36 | - $array = array($estrutura->getStrSigla()); | |
37 | - foreach($estrutura->getArrHierarquia() as $sigla) { | |
38 | - if(trim($sigla) !== '' && !in_array($sigla, array('PR', 'UNIAO'))) { | |
39 | - $array[] = $sigla; | |
40 | - } | |
41 | - } | |
42 | - $nome .= implode(' / ', $array); | |
43 | - $estrutura->setStrNome($nome); | |
34 | + $siglas = $estrutura->getArrHierarquia(); | |
35 | + $nome = $estrutura->getStrNome(); | |
36 | + $nome .= ' - '; | |
37 | + | |
38 | + $array = array($estrutura->getStrSigla()); | |
39 | + foreach($estrutura->getArrHierarquia() as $sigla) { | |
40 | + if(trim($sigla) !== '' && !in_array($sigla, array('PR', 'PE', 'UNIAO'))) { | |
41 | + $array[] = $sigla; | |
42 | + } | |
43 | + } | |
44 | + | |
45 | + $nome .= implode(' / ', $array); | |
46 | + $estrutura->setStrNome($nome); | |
44 | 47 | } |
45 | 48 | } |
46 | 49 | ... | ... |