Passed
Push — master ( af841a...1abe98 )
by Jan
03:26
created
src/Controller/ExportController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
                 //Download as file
101 101
                 if (1 === count($xml_files)) {
102 102
                     $xml_string = array_values($xml_files)[0];
103
-                    $filename = 'export_'.date('Y-m-d_H-i-s').'.xml';
103
+                    $filename = 'export_' . date('Y-m-d_H-i-s') . '.xml';
104 104
                     $response = $this->getDownloadResponse($xml_string, $filename);
105 105
                 } else {
106 106
                     $data = [];
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
                     return ZIPBinaryFileResponseFacade::createZIPResponseFromData(
112 112
                         $data,
113
-                        'export_'.date('Y-m-d_H-i-s').'.zip'
113
+                        'export_' . date('Y-m-d_H-i-s') . '.zip'
114 114
                     );
115 115
                 }
116 116
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
                 //Show error if auto mode is not possible
126 126
                 $this->addFlash('danger',
127 127
                                 $this->translator->trans('sepa_export.error.department_missing_account')
128
-                                .': '.$exception->getWrongDepartment()->getName());
128
+                                .': ' . $exception->getWrongDepartment()->getName());
129 129
             }
130 130
         }
131 131
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
         $response = new Response();
141 141
         $response->headers->set('Cache-Control', 'private');
142 142
         $response->headers->set('Content-type', $mime_type);
143
-        $response->headers->set('Content-Disposition', 'attachment; filename="'.$filename.'";');
143
+        $response->headers->set('Content-Disposition', 'attachment; filename="' . $filename . '";');
144 144
         $response->headers->set('Content-length', strlen($content));
145 145
         $response->setContent($content);
146 146
 
Please login to merge, or discard this patch.
src/Controller/Admin/PaymentOrderCrudController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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()
Please login to merge, or discard this patch.