Passed
Push — master ( 4545fa...5c5ad4 )
by Jan
03:27
created
src/Services/PDF/PaymentOrderPDFGenerator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
         $pdf = new SturaPDF();
42 42
         $pdf->setAuthor('StuRa FSU Jena');
43
-        $pdf->setTitle('Zahlungsauftrag #'.$paymentOrder->getId());
43
+        $pdf->setTitle('Zahlungsauftrag #' . $paymentOrder->getId());
44 44
         $pdf->setSubject('Zahlungsauftrag');
45 45
         $pdf->SetAutoPageBreak(false);
46 46
 
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
         $pdf->setY(80);
50 50
         $pdf->setMargins(25, 10);
51 51
 
52
-        $pdf->writeHTML('<h1>Zahlungsauftrag #'.$paymentOrder->getId().'</h1><br>');
52
+        $pdf->writeHTML('<h1>Zahlungsauftrag #' . $paymentOrder->getId() . '</h1><br>');
53 53
 
54 54
         $this->writeRow($pdf, 'Name Auftraggeber*in', $paymentOrder->getFullName());
55 55
         $this->writeRow($pdf, 'Struktur / Organisation', $paymentOrder->getDepartment()->getName());
56 56
         $this->writeRow($pdf, 'Projektbezeichnung', $paymentOrder->getProjectName());
57
-        $this->writeRow($pdf, 'Betrag', $paymentOrder->getAmountString().' €');
57
+        $this->writeRow($pdf, 'Betrag', $paymentOrder->getAmountString() . ' €');
58 58
         $this->writeRow($pdf, 'Mittelfreigabe / Finanzantrag', !empty($paymentOrder->getFundingId()) ? $paymentOrder->getFundingId() : '<i>Nicht angegeben</i>');
59 59
         $this->writeRow($pdf, 'FSR-Kom Antrag', $paymentOrder->isFsrKomResolution() ? 'Ja' : 'Nein');
60 60
         $formatter = new IntlDateFormatter('de_DE', IntlDateFormatter::MEDIUM, IntlDateFormatter::NONE);
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
         $this->writeRow($pdf, 'Kontoinhaber*in', $paymentOrder->getBankInfo()->getAccountOwner());
66 66
         $this->writeRow($pdf, 'Straße/Nr.', $paymentOrder->getBankInfo()->getStreet());
67
-        $this->writeRow($pdf, 'PLZ/Ort', $paymentOrder->getBankInfo()->getZipCode().' '.$paymentOrder->getBankInfo()->getCity());
67
+        $this->writeRow($pdf, 'PLZ/Ort', $paymentOrder->getBankInfo()->getZipCode() . ' ' . $paymentOrder->getBankInfo()->getCity());
68 68
         $this->writeRow($pdf, 'IBAN', $paymentOrder->getBankInfo()->getIban());
69 69
         $this->writeRow($pdf, 'BIC', $paymentOrder->getBankInfo()->getBic());
70 70
         $this->writeRow($pdf, 'Bank', $paymentOrder->getBankInfo()->getBankName());
@@ -91,12 +91,12 @@  discard block
 block discarded – undo
91 91
 
92 92
     private function addSignatureField(TCPDF $pdf, string $content, bool $ln = true, string $align = 'L'): void
93 93
     {
94
-        $pdf->writeHTML('_____________________________________________<br><small>'.$content.'</small>', $ln, false, false, false, $align);
94
+        $pdf->writeHTML('_____________________________________________<br><small>' . $content . '</small>', $ln, false, false, false, $align);
95 95
     }
96 96
 
97 97
     private function writeRow(TCPDF $pdf, string $property, string $value): void
98 98
     {
99
-        $pdf->MultiCell(80, 5, '<b>'.$property.':</b>', 0, 'L', 0, 0, '', '', true, 0, true);
99
+        $pdf->MultiCell(80, 5, '<b>' . $property . ':</b>', 0, 'L', 0, 0, '', '', true, 0, true);
100 100
         $pdf->MultiCell(0, 5, $value, 0, 'L', 0, 1, '', '', true, 0, true);
101 101
     }
102 102
 }
Please login to merge, or discard this patch.