@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | //$menuItem->setQueryParameter('referrer', $referrer); |
72 | 72 | |
73 | 73 | foreach ($filters as $filter => $value) { |
74 | - $menuItem->setQueryParameter('filters['.$filter.']', $value); |
|
74 | + $menuItem->setQueryParameter('filters[' . $filter . ']', $value); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | $menuItem->setQueryParameter('crudAction', 'index'); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | $actions = parent::configureActions(); |
85 | 85 | |
86 | 86 | $showLog = Action::new('showLog', 'action.show_logs', 'fas fa-binoculars') |
87 | - ->displayIf(function (DBElementInterface $entity) { |
|
87 | + ->displayIf(function(DBElementInterface $entity) { |
|
88 | 88 | return $this->isGranted('ROLE_VIEW_AUDITS'); |
89 | 89 | }) |
90 | 90 | ->setCssClass('ml-2 text-dark') |
@@ -183,8 +183,8 @@ discard block |
||
183 | 183 | yield MenuItem::linkToCrud('user.labelp', 'fas fa-user', User::class) |
184 | 184 | ->setPermission('ROLE_READ_USER'); |
185 | 185 | |
186 | - $version = $this->app_version.'-'.$this->gitVersionInfo->getGitCommitHash() ?? ''; |
|
187 | - yield MenuItem::section('Version '.$version, 'fas fa-info'); |
|
186 | + $version = $this->app_version . '-' . $this->gitVersionInfo->getGitCommitHash() ?? ''; |
|
187 | + yield MenuItem::section('Version ' . $version, 'fas fa-info'); |
|
188 | 188 | yield MenuItem::linktoRoute('dashboard.menu.audits', 'fas fa-binoculars', 'dh_auditor_list_audits') |
189 | 189 | ->setPermission('ROLE_VIEW_AUDITS'); |
190 | 190 | yield MenuItem::linktoRoute('dashboard.menu.homepage', 'fas fa-home', 'homepage'); |
@@ -201,8 +201,8 @@ discard block |
||
201 | 201 | ->displayUserName(true) |
202 | 202 | ->addMenuItems([ |
203 | 203 | MenuItem::linktoRoute('user.settings.title', 'fas fa-user-cog', 'user_settings'), |
204 | - MenuItem::linktoRoute(Languages::getName('de', 'de').' (DE)', '', 'admin_dashboard.de'), |
|
205 | - MenuItem::linktoRoute(Languages::getName('en', 'en').' (EN)', '', 'admin_dashboard.en'), |
|
204 | + MenuItem::linktoRoute(Languages::getName('de', 'de') . ' (DE)', '', 'admin_dashboard.de'), |
|
205 | + MenuItem::linktoRoute(Languages::getName('en', 'en') . ' (EN)', '', 'admin_dashboard.en'), |
|
206 | 206 | ]); |
207 | 207 | } |
208 | 208 |
@@ -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() |