@@ -107,10 +107,10 @@ discard block |
||
| 107 | 107 | $prefix = ''; |
| 108 | 108 | } else { |
| 109 | 109 | $prefix = $payment_order->getDepartment() |
| 110 | - ->getReferencesExportPrefix().'_'; |
|
| 110 | + ->getReferencesExportPrefix() . '_'; |
|
| 111 | 111 | } |
| 112 | 112 | |
| 113 | - $data[$prefix.$payment_order->getIDString().'.'.$extension] = $path; |
|
| 113 | + $data[$prefix . $payment_order->getIDString() . '.' . $extension] = $path; |
|
| 114 | 114 | |
| 115 | 115 | if ($this->isGranted('ROLE_EXPORT_PAYMENT_ORDERS_REFERENCES')) { |
| 116 | 116 | //Set exported status |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | |
| 126 | 126 | return ZIPBinaryFileResponseFacade::createZIPResponseFromFiles( |
| 127 | 127 | $data, |
| 128 | - 'Belege_'.date('Y-m-d_H-i-s').'.zip'); |
|
| 128 | + 'Belege_' . date('Y-m-d_H-i-s') . '.zip'); |
|
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | public function configureCrud(Crud $crud): Crud |
@@ -294,32 +294,32 @@ discard block |
||
| 294 | 294 | ]); |
| 295 | 295 | |
| 296 | 296 | $emailAction = Action::new('sendEmail', 'payment_order.action.email', 'fas fa-envelope') |
| 297 | - ->linkToUrl(function (PaymentOrder $paymentOrder) { |
|
| 297 | + ->linkToUrl(function(PaymentOrder $paymentOrder) { |
|
| 298 | 298 | return $this->mailToGenerator->generateContactMailLink($paymentOrder); |
| 299 | 299 | }) |
| 300 | 300 | ->setCssClass('text-dark'); |
| 301 | 301 | |
| 302 | 302 | //Hide action if no contact emails are associated with department |
| 303 | - $emailAction->displayIf(function (PaymentOrder $paymentOrder) { |
|
| 303 | + $emailAction->displayIf(function(PaymentOrder $paymentOrder) { |
|
| 304 | 304 | return null !== $this->mailToGenerator->generateContactMailLink($paymentOrder); |
| 305 | 305 | }); |
| 306 | 306 | |
| 307 | 307 | $hhv_action = Action::new('contactHHV', 'payment_order.action.contact_hhv', 'fas fa-comment-dots') |
| 308 | - ->linkToUrl(function (PaymentOrder $paymentOrder) { |
|
| 308 | + ->linkToUrl(function(PaymentOrder $paymentOrder) { |
|
| 309 | 309 | return $this->mailToGenerator->getHHVMailLink($paymentOrder); |
| 310 | 310 | }) |
| 311 | 311 | ->setCssClass('mr-2 text-dark'); |
| 312 | 312 | |
| 313 | 313 | $resend_confirmation_action = Action::new('resendConfirmation', 'payment_order.action.resend_confirmation', 'fas fa-redo') |
| 314 | 314 | ->linkToCrudAction('resendConfirmationEmail') |
| 315 | - ->displayIf(function (PaymentOrder $paymentOrder) { |
|
| 315 | + ->displayIf(function(PaymentOrder $paymentOrder) { |
|
| 316 | 316 | return $this->isGranted('ROLE_EDIT_PAYMENT_ORDERS') && !$paymentOrder->isConfirmed(); |
| 317 | 317 | }) |
| 318 | 318 | ->setCssClass('mr-2 text-dark'); |
| 319 | 319 | |
| 320 | 320 | $mathematically_correct_action = Action::new('mathematicallyCorrect', 'payment_order.action.mathematically_correct', 'fas fa-check') |
| 321 | 321 | ->linkToCrudAction('checkMathematicallyCorrect') |
| 322 | - ->displayIf(function (PaymentOrder $paymentOrder) { |
|
| 322 | + ->displayIf(function(PaymentOrder $paymentOrder) { |
|
| 323 | 323 | return $this->isGranted('ROLE_PO_MATHEMATICALLY') |
| 324 | 324 | && $paymentOrder->isConfirmed() |
| 325 | 325 | && !$paymentOrder->isMathematicallyCorrect(); |
@@ -328,7 +328,7 @@ discard block |
||
| 328 | 328 | |
| 329 | 329 | $factually_correct_action = Action::new('factuallyCorrect', 'payment_order.action.factually_correct', 'fas fa-check') |
| 330 | 330 | ->linkToCrudAction('checkFactuallyCorrect') |
| 331 | - ->displayIf(function (PaymentOrder $paymentOrder) { |
|
| 331 | + ->displayIf(function(PaymentOrder $paymentOrder) { |
|
| 332 | 332 | return $this->isGranted('ROLE_PO_FACTUALLY') |
| 333 | 333 | && $paymentOrder->isConfirmed() |
| 334 | 334 | && !$paymentOrder->isFactuallyCorrect() |
@@ -338,12 +338,12 @@ discard block |
||
| 338 | 338 | |
| 339 | 339 | $manual_confirmation = Action::new('manual_confirmation', 'payment_order.action.manual_confirmation', 'fas fa-exclamation-triangle') |
| 340 | 340 | ->setCssClass('mr-1 text-dark') |
| 341 | - ->linkToRoute('payment_order_manual_confirm', function (PaymentOrder $paymentOrder) { |
|
| 341 | + ->linkToRoute('payment_order_manual_confirm', function(PaymentOrder $paymentOrder) { |
|
| 342 | 342 | return [ |
| 343 | 343 | 'id' => $paymentOrder->getId(), |
| 344 | 344 | ]; |
| 345 | 345 | }) |
| 346 | - ->displayIf(function (PaymentOrder $paymentOrder) { |
|
| 346 | + ->displayIf(function(PaymentOrder $paymentOrder) { |
|
| 347 | 347 | return $this->isGranted('ROLE_MANUAL_CONFIRMATION') |
| 348 | 348 | && !$paymentOrder->isConfirmed(); |
| 349 | 349 | }); |