Passed
Push — master ( 986343...ae7ea4 )
by Jan
03:34
created
src/Services/EmailConfirmation/ManualConfirmationHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
         $date = Carbon::now()->toDateTimeLocalString();
133 133
 
134 134
         return '<h4>Manuelle Bestätigung</h4>'
135
-            .'durch '.$user->getFullName().' ('.$user->getUsername().'), '.$date.'<br>'
136
-            .'<b>Begründung: </b>'.$reason;
135
+            .'durch ' . $user->getFullName() . ' (' . $user->getUsername() . '), ' . $date . '<br>'
136
+            .'<b>Begründung: </b>' . $reason;
137 137
     }
138 138
 }
Please login to merge, or discard this patch.
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->getIDString().'</h1><br>');
52
+        $pdf->writeHTML('<h1>Zahlungsauftrag ' . $paymentOrder->getIDString() . '</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 Umbuchung', $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());
@@ -89,12 +89,12 @@  discard block
 block discarded – undo
89 89
 
90 90
     private function addSignatureField(TCPDF $pdf, string $content, bool $ln = true, string $align = 'L'): void
91 91
     {
92
-        $pdf->writeHTML('_____________________________________________<br><small>'.$content.'</small>', $ln, false, false, false, $align);
92
+        $pdf->writeHTML('_____________________________________________<br><small>' . $content . '</small>', $ln, false, false, false, $align);
93 93
     }
94 94
 
95 95
     private function writeRow(TCPDF $pdf, string $property, string $value): void
96 96
     {
97
-        $pdf->MultiCell(80, 5, '<b>'.$property.':</b>', 0, 'L', 0, 0, '', '', true, 0, true);
97
+        $pdf->MultiCell(80, 5, '<b>' . $property . ':</b>', 0, 'L', 0, 0, '', '', true, 0, true);
98 98
         $pdf->MultiCell(0, 5, $value, 0, 'L', 0, 1, '', '', true, 0, true);
99 99
     }
100 100
 }
Please login to merge, or discard this patch.
src/Services/PDF/SturaPDF.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 {
30 30
     public function Header()
31 31
     {
32
-        $image_file = dirname(__DIR__, 3).'/assets/StuRa.png';
32
+        $image_file = dirname(__DIR__, 3) . '/assets/StuRa.png';
33 33
 
34 34
         //$image_file = 'C:\Users\janhb\Documents\Projekte\PHP\stura\assets\StuRa.png';
35 35
 
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
 
54 54
         $this->SetFont('helvetica', 'I', 8);
55 55
         // Page number
56
-        $this->Cell(0, 10, 'Seite '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 0, false, 'L');
56
+        $this->Cell(0, 10, 'Seite ' . $this->getAliasNumPage() . '/' . $this->getAliasNbPages(), 0, false, 'L');
57 57
 
58 58
         $formatter = new IntlDateFormatter('de-DE', IntlDateFormatter::SHORT, IntlDateFormatter::MEDIUM);
59 59
 
60
-        $this->Cell(0, 10, 'Erzeugt '.$formatter->format(new DateTime()), 0, false, 'R');
60
+        $this->Cell(0, 10, 'Erzeugt ' . $formatter->format(new DateTime()), 0, false, 'R');
61 61
     }
62 62
 }
Please login to merge, or discard this patch.