@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | public function render($output = 'I') |
| 64 | 64 | { |
| 65 | 65 | $this->tcpdf->addPage(); |
| 66 | - $x = 5; |
|
| 66 | + $x = 5; |
|
| 67 | 67 | $y = 10; |
| 68 | 68 | |
| 69 | 69 | $width = $this->tcpdf->getPageWidth() - ($x * 2); |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | $this->tcpdf->SetFontSize(9); |
| 99 | 99 | |
| 100 | 100 | $this->tcpdf->SetXY($x, $y + 10); |
| 101 | - return [$this->tcpdf->GetX(),$this->tcpdf->GetY()]; |
|
| 101 | + return [$this->tcpdf->GetX(), $this->tcpdf->GetY()]; |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | /** |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | $i = 0; |
| 239 | 239 | foreach ($tags as $tag) { |
| 240 | 240 | /** @var PostalObject $tag */ |
| 241 | - $this->tcpdf->SetFillColor($fill[$i%2]); |
|
| 241 | + $this->tcpdf->SetFillColor($fill[$i % 2]); |
|
| 242 | 242 | $name = $this->postalServices->{$tag->getService()}->name; |
| 243 | 243 | $this->tcpdf->SetXY($x, $y); |
| 244 | 244 | $this->tcpdf->Cell($parts * 10, $h, $tag->getTagDv(), 0, 0, '', true); |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | $this->tcpdf->Cell($parts * 10, $h, $tag->getValueDeclared(), 0, 0, '', true); |
| 252 | 252 | $this->tcpdf->Cell($parts * 10, $h, $tag->getInvoiceNumber(), 0, 0, '', true); |
| 253 | 253 | $this->tcpdf->Cell($parts * 6, $h, '1/1', 0, 0, '', true); |
| 254 | - $this->tcpdf->Cell(($parts * 24) -1.5, $h, $tag->getRecipient()->getName(), 0, 0, '', true); |
|
| 254 | + $this->tcpdf->Cell(($parts * 24) - 1.5, $h, $tag->getRecipient()->getName(), 0, 0, '', true); |
|
| 255 | 255 | $y += $h; |
| 256 | 256 | $i++; |
| 257 | 257 | } |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | $result = $this->getSoap()->send($this->url(), $actions, $request, $namespaces); |
| 45 | 45 | $result = $result->return; |
| 46 | 46 | $result->objeto = is_array($result->objeto) ? $result->objeto : [$result->objeto]; |
| 47 | - foreach($result->objeto as $objeto) { |
|
| 47 | + foreach ($result->objeto as $objeto) { |
|
| 48 | 48 | $objeto->evento = isset($objeto->evento) |
| 49 | 49 | ? is_array($objeto->evento) ? $objeto->evento : [$objeto->evento] |
| 50 | 50 | : []; |