Skip to content

Commit

Permalink
[FIX] #000 -alterando validações
Browse files Browse the repository at this point in the history
  • Loading branch information
vinicius committed Aug 30, 2018
1 parent e9361ed commit 4631d4e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Cnab/Cnab400/Bradesco/Transacao.php
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ public function getNomePagador()
public function setNomePagador($nomePagador)
{
$this->nomePagador = str_pad(
substr($nomePagador, 0, 40),
mb_strtoupper(mb_substr($nomePagador, 0, 40)),
40,
' ',
STR_PAD_RIGHT
Expand All @@ -852,7 +852,7 @@ public function getEnderecoPagador()
public function setEnderecoPagador($enderecoPagador)
{
$this->enderecoPagador = str_pad(
substr($enderecoPagador, 0, 40),
mb_strtoupper(mb_substr($enderecoPagador, 0, 40)),
40,
' ',
STR_PAD_RIGHT
Expand Down Expand Up @@ -1004,9 +1004,8 @@ public function getTransacaoToString()
. $this->getPrimeiraMensagem()
. $this->getCep()
. $this->getSufixoCep()
. ($this->getSacador() ? : $this->getSegundaMensagem())
. $this->getSequencialRegistro()
;
. ($this->getSacador() ?: $this->getSegundaMensagem())
. $this->getSequencialRegistro();

if (mb_strlen($stringTransacao) != 400) {
throw new \Exception(
Expand Down

0 comments on commit 4631d4e

Please sign in to comment.