@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | public function configureActions(Actions $actions): Actions |
| 164 | 164 | { |
| 165 | 165 | |
| 166 | - if($this->isGranted('ROLE_EXPORT_PAYMENT_ORDERS')) { |
|
| 166 | + if ($this->isGranted('ROLE_EXPORT_PAYMENT_ORDERS')) { |
|
| 167 | 167 | // Button with text and icon |
| 168 | 168 | $actions->add(Crud::PAGE_INDEX, Action::new('sepaXMLExport', 'payment_order.action.export_xml') |
| 169 | 169 | ->createAsBatchAction() |
@@ -182,32 +182,32 @@ discard block |
||
| 182 | 182 | ]); |
| 183 | 183 | |
| 184 | 184 | $emailAction = Action::new('sendEmail', 'payment_order.action.email', 'fas fa-envelope') |
| 185 | - ->linkToUrl(function (PaymentOrder $paymentOrder) { |
|
| 185 | + ->linkToUrl(function(PaymentOrder $paymentOrder) { |
|
| 186 | 186 | return $this->mailToGenerator->generateContactMailLink($paymentOrder); |
| 187 | 187 | }) |
| 188 | 188 | ->setCssClass('text-dark'); |
| 189 | 189 | |
| 190 | 190 | //Hide action if no contact emails are associated with department |
| 191 | - $emailAction->displayIf(function (PaymentOrder $paymentOrder) { |
|
| 191 | + $emailAction->displayIf(function(PaymentOrder $paymentOrder) { |
|
| 192 | 192 | return null !== $this->mailToGenerator->generateContactMailLink($paymentOrder); |
| 193 | 193 | }); |
| 194 | 194 | |
| 195 | 195 | $hhv_action = Action::new('contactHHV', 'payment_order.action.contact_hhv', 'fas fa-comment-dots') |
| 196 | - ->linkToUrl(function (PaymentOrder $paymentOrder) { |
|
| 196 | + ->linkToUrl(function(PaymentOrder $paymentOrder) { |
|
| 197 | 197 | return $this->mailToGenerator->getHHVMailLink($paymentOrder); |
| 198 | 198 | }) |
| 199 | 199 | ->setCssClass('mr-2 text-dark'); |
| 200 | 200 | |
| 201 | 201 | $resend_confirmation_action = Action::new('resendConfirmation', 'payment_order.action.resend_confirmation', 'fas fa-redo') |
| 202 | 202 | ->linkToCrudAction('resendConfirmationEmail') |
| 203 | - ->displayIf(function (PaymentOrder $paymentOrder) { |
|
| 203 | + ->displayIf(function(PaymentOrder $paymentOrder) { |
|
| 204 | 204 | return $this->isGranted('ROLE_EDIT_PAYMENT_ORDERS') && (null === $paymentOrder->getConfirm2Timestamp() || null === $paymentOrder->getConfirm1Timestamp()); |
| 205 | 205 | }) |
| 206 | 206 | ->setCssClass('mr-2 text-dark'); |
| 207 | 207 | |
| 208 | 208 | $mathematically_correct_action = Action::new('mathematicallyCorrect', 'payment_order.action.mathematically_correct', 'fas fa-check') |
| 209 | 209 | ->linkToCrudAction('checkMathematicallyCorrect') |
| 210 | - ->displayIf(function (PaymentOrder $paymentOrder) { |
|
| 210 | + ->displayIf(function(PaymentOrder $paymentOrder) { |
|
| 211 | 211 | return $this->isGranted('ROLE_PO_MATHEMATICALLY') |
| 212 | 212 | && $paymentOrder->isConfirmed() |
| 213 | 213 | && !$paymentOrder->isMathematicallyCorrect(); |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | |
| 217 | 217 | $factually_correct_action = Action::new('factuallyCorrect', 'payment_order.action.factually_correct', 'fas fa-check') |
| 218 | 218 | ->linkToCrudAction('checkFactuallyCorrect') |
| 219 | - ->displayIf(function (PaymentOrder $paymentOrder) { |
|
| 219 | + ->displayIf(function(PaymentOrder $paymentOrder) { |
|
| 220 | 220 | return $this->isGranted('ROLE_PO_FACTUALLY') |
| 221 | 221 | && $paymentOrder->isConfirmed() |
| 222 | 222 | && !$paymentOrder->isFactuallyCorrect() |