@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | |
102 | 102 | return ZIPBinaryFileResponseFacade::createZIPResponseFromFiles( |
103 | 103 | $data, |
104 | - 'Belege_' .date('Y-m-d_H-i-s').'.zip'); |
|
104 | + 'Belege_' . date('Y-m-d_H-i-s') . '.zip'); |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | public function configureCrud(Crud $crud): Crud |
@@ -209,32 +209,32 @@ discard block |
||
209 | 209 | ]); |
210 | 210 | |
211 | 211 | $emailAction = Action::new('sendEmail', 'payment_order.action.email', 'fas fa-envelope') |
212 | - ->linkToUrl(function (PaymentOrder $paymentOrder) { |
|
212 | + ->linkToUrl(function(PaymentOrder $paymentOrder) { |
|
213 | 213 | return $this->mailToGenerator->generateContactMailLink($paymentOrder); |
214 | 214 | }) |
215 | 215 | ->setCssClass('text-dark'); |
216 | 216 | |
217 | 217 | //Hide action if no contact emails are associated with department |
218 | - $emailAction->displayIf(function (PaymentOrder $paymentOrder) { |
|
218 | + $emailAction->displayIf(function(PaymentOrder $paymentOrder) { |
|
219 | 219 | return null !== $this->mailToGenerator->generateContactMailLink($paymentOrder); |
220 | 220 | }); |
221 | 221 | |
222 | 222 | $hhv_action = Action::new('contactHHV', 'payment_order.action.contact_hhv', 'fas fa-comment-dots') |
223 | - ->linkToUrl(function (PaymentOrder $paymentOrder) { |
|
223 | + ->linkToUrl(function(PaymentOrder $paymentOrder) { |
|
224 | 224 | return $this->mailToGenerator->getHHVMailLink($paymentOrder); |
225 | 225 | }) |
226 | 226 | ->setCssClass('mr-2 text-dark'); |
227 | 227 | |
228 | 228 | $resend_confirmation_action = Action::new('resendConfirmation', 'payment_order.action.resend_confirmation', 'fas fa-redo') |
229 | 229 | ->linkToCrudAction('resendConfirmationEmail') |
230 | - ->displayIf(function (PaymentOrder $paymentOrder) { |
|
230 | + ->displayIf(function(PaymentOrder $paymentOrder) { |
|
231 | 231 | return $this->isGranted('ROLE_EDIT_PAYMENT_ORDERS') && (null === $paymentOrder->getConfirm2Timestamp() || null === $paymentOrder->getConfirm1Timestamp()); |
232 | 232 | }) |
233 | 233 | ->setCssClass('mr-2 text-dark'); |
234 | 234 | |
235 | 235 | $mathematically_correct_action = Action::new('mathematicallyCorrect', 'payment_order.action.mathematically_correct', 'fas fa-check') |
236 | 236 | ->linkToCrudAction('checkMathematicallyCorrect') |
237 | - ->displayIf(function (PaymentOrder $paymentOrder) { |
|
237 | + ->displayIf(function(PaymentOrder $paymentOrder) { |
|
238 | 238 | return $this->isGranted('ROLE_PO_MATHEMATICALLY') |
239 | 239 | && $paymentOrder->isConfirmed() |
240 | 240 | && !$paymentOrder->isMathematicallyCorrect(); |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | |
244 | 244 | $factually_correct_action = Action::new('factuallyCorrect', 'payment_order.action.factually_correct', 'fas fa-check') |
245 | 245 | ->linkToCrudAction('checkFactuallyCorrect') |
246 | - ->displayIf(function (PaymentOrder $paymentOrder) { |
|
246 | + ->displayIf(function(PaymentOrder $paymentOrder) { |
|
247 | 247 | return $this->isGranted('ROLE_PO_FACTUALLY') |
248 | 248 | && $paymentOrder->isConfirmed() |
249 | 249 | && !$paymentOrder->isFactuallyCorrect() |
@@ -40,7 +40,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | } |