@@ -65,7 +65,7 @@ |
||
| 65 | 65 | */ |
| 66 | 66 | protected function toNode() |
| 67 | 67 | { |
| 68 | - $evtid = FactoryId::build( |
|
| 68 | + $evtid = FactoryId::build( |
|
| 69 | 69 | $this->tpInsc, |
| 70 | 70 | $this->nrInsc, |
| 71 | 71 | $this->date, |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | */ |
| 66 | 66 | protected function toNode() |
| 67 | 67 | { |
| 68 | - $evtid = FactoryId::build( |
|
| 68 | + $evtid = FactoryId::build( |
|
| 69 | 69 | $this->tpInsc, |
| 70 | 70 | $this->nrInsc, |
| 71 | 71 | $this->date, |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | protected function toNode() |
| 67 | 67 | { |
| 68 | - $evtid = FactoryId::build( |
|
| 68 | + $evtid = FactoryId::build( |
|
| 69 | 69 | $this->tpInsc, |
| 70 | 70 | $this->nrInsc, |
| 71 | 71 | $this->date, |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | $this->std->infoexclusao->nrrecevt, |
| 127 | 127 | true |
| 128 | 128 | ); |
| 129 | - if (! empty($this->std->idetrabalhador)) { |
|
| 129 | + if (!empty($this->std->idetrabalhador)) { |
|
| 130 | 130 | $ideTrabalhador = $this->dom->createElement("ideTrabalhador"); |
| 131 | 131 | $this->dom->addChild( |
| 132 | 132 | $ideTrabalhador, |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | $this->dom->addChild( |
| 138 | 138 | $ideTrabalhador, |
| 139 | 139 | "nisTrab", |
| 140 | - ! empty($this->std->idetrabalhador->nistrab) ? $this->std->idetrabalhador->nistrab : null, |
|
| 140 | + !empty($this->std->idetrabalhador->nistrab) ? $this->std->idetrabalhador->nistrab : null, |
|
| 141 | 141 | false |
| 142 | 142 | ); |
| 143 | 143 | $infoExclusao->appendChild($ideTrabalhador); |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | */ |
| 66 | 66 | protected function toNode() |
| 67 | 67 | { |
| 68 | - $evtid = FactoryId::build( |
|
| 68 | + $evtid = FactoryId::build( |
|
| 69 | 69 | $this->tpInsc, |
| 70 | 70 | $this->nrInsc, |
| 71 | 71 | $this->date, |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | $this->dom->addChild( |
| 78 | 78 | $ideEvento, |
| 79 | 79 | "nrRecibo", |
| 80 | - ! empty($this->std->nrrecibo) ? $this->std->nrrecibo : null, |
|
| 80 | + !empty($this->std->nrrecibo) ? $this->std->nrrecibo : null, |
|
| 81 | 81 | false |
| 82 | 82 | ); |
| 83 | 83 | $this->dom->addChild( |
@@ -131,13 +131,13 @@ discard block |
||
| 131 | 131 | $this->dom->addChild( |
| 132 | 132 | $infoReintegr, |
| 133 | 133 | "nrProcJud", |
| 134 | - ! empty($this->std->nrprocjud) ? $this->std->nrprocjud : null, |
|
| 134 | + !empty($this->std->nrprocjud) ? $this->std->nrprocjud : null, |
|
| 135 | 135 | false |
| 136 | 136 | ); |
| 137 | 137 | $this->dom->addChild( |
| 138 | 138 | $infoReintegr, |
| 139 | 139 | "nrLeiAnistia", |
| 140 | - ! empty($this->std->nrleianistia) ? $this->std->nrleianistia : null, |
|
| 140 | + !empty($this->std->nrleianistia) ? $this->std->nrleianistia : null, |
|
| 141 | 141 | false |
| 142 | 142 | ); |
| 143 | 143 | $this->dom->addChild( |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | $this->dom->addChild( |
| 114 | 114 | $ideRubrica, |
| 115 | 115 | "fimValid", |
| 116 | - ! empty($this->std->fimvalid) ? $this->std->fimvalid : null, |
|
| 116 | + !empty($this->std->fimvalid) ? $this->std->fimvalid : null, |
|
| 117 | 117 | false |
| 118 | 118 | ); |
| 119 | 119 | //seleção do modo |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | } |
| 127 | 127 | $node->appendChild($ideRubrica); |
| 128 | 128 | |
| 129 | - if (! empty($this->std->dadosrubrica)) { |
|
| 129 | + if (!empty($this->std->dadosrubrica)) { |
|
| 130 | 130 | $dadosRubrica = $this->dom->createElement("dadosRubrica"); |
| 131 | 131 | $this->dom->addChild( |
| 132 | 132 | $dadosRubrica, |
@@ -197,13 +197,13 @@ discard block |
||
| 197 | 197 | $this->dom->addChild( |
| 198 | 198 | $dadosRubrica, |
| 199 | 199 | "observacao", |
| 200 | - ! empty($this->std->dadosrubrica->observacao) |
|
| 200 | + !empty($this->std->dadosrubrica->observacao) |
|
| 201 | 201 | ? $this->std->dadosrubrica->observacao |
| 202 | 202 | : null, |
| 203 | 203 | false |
| 204 | 204 | ); |
| 205 | 205 | |
| 206 | - if (! empty($this->std->dadosrubrica->ideprocessocp)) { |
|
| 206 | + if (!empty($this->std->dadosrubrica->ideprocessocp)) { |
|
| 207 | 207 | foreach ($this->std->dadosrubrica->ideprocessocp as $cp) { |
| 208 | 208 | $ideProcessoCP = $this->dom->createElement("ideProcessoCP"); |
| 209 | 209 | $this->dom->addChild( |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | } |
| 235 | 235 | } |
| 236 | 236 | |
| 237 | - if (! empty($this->std->dadosrubrica->ideprocessoirrf)) { |
|
| 237 | + if (!empty($this->std->dadosrubrica->ideprocessoirrf)) { |
|
| 238 | 238 | foreach ($this->std->dadosrubrica->ideprocessoirrf as $irrf) { |
| 239 | 239 | $ideProcessoIRRF = $this->dom->createElement("ideProcessoIRRF"); |
| 240 | 240 | $this->dom->addChild( |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | $dadosRubrica->appendChild($ideProcessoIRRF); |
| 253 | 253 | } |
| 254 | 254 | } |
| 255 | - if (! empty($this->std->dadosrubrica->ideprocessofgts)) { |
|
| 255 | + if (!empty($this->std->dadosrubrica->ideprocessofgts)) { |
|
| 256 | 256 | foreach ($this->std->dadosrubrica->ideprocessofgts as $fgts) { |
| 257 | 257 | $ideProcessoFGTS = $this->dom->createElement("ideProcessoFGTS"); |
| 258 | 258 | $this->dom->addChild( |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | $dadosRubrica->appendChild($ideProcessoFGTS); |
| 271 | 271 | } |
| 272 | 272 | } |
| 273 | - if (! empty($this->std->dadosrubrica->ideprocessosind)) { |
|
| 273 | + if (!empty($this->std->dadosrubrica->ideprocessosind)) { |
|
| 274 | 274 | foreach ($this->std->dadosrubrica->ideprocessosind as $sind) { |
| 275 | 275 | $ideProcessoSIND = $this->dom->createElement("ideProcessoSIND"); |
| 276 | 276 | $this->dom->addChild( |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | } |
| 291 | 291 | $node->appendChild($dadosRubrica); |
| 292 | 292 | } |
| 293 | - if (! empty($this->std->novavalidade) && $this->std->modo == 'ALT') { |
|
| 293 | + if (!empty($this->std->novavalidade) && $this->std->modo == 'ALT') { |
|
| 294 | 294 | $newVal = $this->std->novavalidade; |
| 295 | 295 | $novaValidade = $this->dom->createElement("novaValidade"); |
| 296 | 296 | $this->dom->addChild( |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | $this->dom->addChild( |
| 303 | 303 | $ideRubrica, |
| 304 | 304 | "fimValid", |
| 305 | - ! empty($newVal->fimvalid) ? $newVal->fimvalid : null, |
|
| 305 | + !empty($newVal->fimvalid) ? $newVal->fimvalid : null, |
|
| 306 | 306 | false |
| 307 | 307 | ); |
| 308 | 308 | $node->appendChild($novaValidade); |
@@ -188,10 +188,10 @@ |
||
| 188 | 188 | } |
| 189 | 189 | foreach ($eventos as $evt) { |
| 190 | 190 | //verifica se o evento pertence ao grupo indicado |
| 191 | - if (! in_array($evt->alias(), $this->grupos[$grupo])) { |
|
| 191 | + if (!in_array($evt->alias(), $this->grupos[$grupo])) { |
|
| 192 | 192 | throw new RuntimeException( |
| 193 | - 'O evento '.$evt->alias().' não pertence a este grupo [ ' |
|
| 194 | - .$this->eventGroup[$grupo].' ].' |
|
| 193 | + 'O evento ' . $evt->alias() . ' não pertence a este grupo [ ' |
|
| 194 | + .$this->eventGroup[$grupo] . ' ].' |
|
| 195 | 195 | ); |
| 196 | 196 | } |
| 197 | 197 | $this->checkCertificate($evt); |
@@ -137,13 +137,13 @@ |
||
| 137 | 137 | $name = str_replace('-', '', strtolower($name)); |
| 138 | 138 | $realname = $name; |
| 139 | 139 | if (substr($name, 0, 1) == 's') { |
| 140 | - if (! array_key_exists($name, self::$aliases)) { |
|
| 140 | + if (!array_key_exists($name, self::$aliases)) { |
|
| 141 | 141 | //este evento não foi localizado |
| 142 | 142 | throw EventsException::wrongArgument(1000, $name); |
| 143 | 143 | } |
| 144 | 144 | $realname = self::$aliases[$name]; |
| 145 | 145 | } |
| 146 | - if (! array_key_exists($realname, self::$available)) { |
|
| 146 | + if (!array_key_exists($realname, self::$available)) { |
|
| 147 | 147 | //este evento não foi localizado |
| 148 | 148 | throw EventsException::wrongArgument(1000, $name); |
| 149 | 149 | } |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | * @var array |
| 102 | 102 | */ |
| 103 | 103 | protected $grupos = [ |
| 104 | - 1 => [ //EVENTOS INICIAIS grupo [1] |
|
| 104 | + 1 => [//EVENTOS INICIAIS grupo [1] |
|
| 105 | 105 | 'S-1000', |
| 106 | 106 | 'S-1005', |
| 107 | 107 | 'S-1010', |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | 'S-1080', |
| 116 | 116 | 'S-2100', |
| 117 | 117 | ], |
| 118 | - 2 => [ //EVENTOS NÃO PERIÓDICOS grupo [2] |
|
| 118 | + 2 => [//EVENTOS NÃO PERIÓDICOS grupo [2] |
|
| 119 | 119 | 'S-2190', |
| 120 | 120 | 'S-2200', |
| 121 | 121 | 'S-2205', |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | 'S-5011', |
| 140 | 140 | 'S-5012', |
| 141 | 141 | ], |
| 142 | - 3 => [ //EVENTOS PERIÓDICOS grupo [3] |
|
| 142 | + 3 => [//EVENTOS PERIÓDICOS grupo [3] |
|
| 143 | 143 | 'S-1200', |
| 144 | 144 | 'S-1202', |
| 145 | 145 | 'S-1207', |
@@ -183,11 +183,11 @@ discard block |
||
| 183 | 183 | $this->certificate = $certificate; |
| 184 | 184 | |
| 185 | 185 | $this->path = realpath( |
| 186 | - __DIR__.'/../../' |
|
| 187 | - ).'/'; |
|
| 186 | + __DIR__ . '/../../' |
|
| 187 | + ) . '/'; |
|
| 188 | 188 | |
| 189 | 189 | $this->serviceXsd = XsdSeeker::seek( |
| 190 | - $this->path."schemes/comunicacao/$this->serviceStr/" |
|
| 190 | + $this->path . "schemes/comunicacao/$this->serviceStr/" |
|
| 191 | 191 | ); |
| 192 | 192 | } |
| 193 | 193 | |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | $fils = explode('.', $version); |
| 204 | 204 | $str = 'v'; |
| 205 | 205 | foreach ($fils as $fil) { |
| 206 | - $str .= str_pad($fil, $length, '0', STR_PAD_LEFT).'_'; |
|
| 206 | + $str .= str_pad($fil, $length, '0', STR_PAD_LEFT) . '_'; |
|
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 | return substr($str, 0, -1); |