Passed
Push — master ( 480443...d7d5d4 )
by Jan
07:32 queued 03:08
created
src/Command/UserChangePasswordCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,12 +63,12 @@
 block discarded – undo
63 63
         ]);
64 64
 
65 65
         if (null === $user) {
66
-            $io->error('No user found with username '.$username);
66
+            $io->error('No user found with username ' . $username);
67 67
 
68 68
             return self::FAILURE;
69 69
         }
70 70
 
71
-        $io->confirm('You are about to change the password of following user: '.$username.' Continue?');
71
+        $io->confirm('You are about to change the password of following user: ' . $username . ' Continue?');
72 72
 
73 73
         $password = $input->getOption('password');
74 74
 
Please login to merge, or discard this patch.
src/Command/UserDisable2faCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
             return self::FAILURE;
66 66
         }
67 67
 
68
-        $io->warning('You are about to remove all Two-Factor-Authentication methods of following user: '.$user->getUsername());
68
+        $io->warning('You are about to remove all Two-Factor-Authentication methods of following user: ' . $user->getUsername());
69 69
         $io->warning('Only continue if you are sure about the identity of the person that asked you to do this!');
70 70
 
71 71
         $continue = false;
Please login to merge, or discard this patch.
src/Command/UserNewCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         $io = new SymfonyStyle($input, $output);
57 57
         $username = $input->getArgument('username');
58 58
 
59
-        $io->confirm('You are about to create a new user with username: '.$username.' Continue?');
59
+        $io->confirm('You are about to create a new user with username: ' . $username . ' Continue?');
60 60
 
61 61
         $user = new User();
62 62
         $user->setUsername($username);
Please login to merge, or discard this patch.
src/Twig/AppExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,6 +40,6 @@
 block discarded – undo
40 40
         $size = ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
41 41
         $factor = floor((strlen($bytes) - 1) / 3);
42 42
 
43
-        return sprintf("%.{$precision}f", $bytes / (1024 ** $factor)).@$size[$factor];
43
+        return sprintf("%.{$precision}f", $bytes / (1024 ** $factor)) . @$size[$factor];
44 44
     }
45 45
 }
Please login to merge, or discard this patch.
src/Controller/ExportController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -96,18 +96,18 @@  discard block
 block discarded – undo
96 96
                 //Download as file
97 97
                 if (1 === count($xml_files)) {
98 98
                     $xml_string = array_values($xml_files)[0];
99
-                    $filename = 'export_'.date('Y-m-d_H-i-s').'.xml';
99
+                    $filename = 'export_' . date('Y-m-d_H-i-s') . '.xml';
100 100
                     $response = $this->getDownloadResponse($xml_string, $filename);
101 101
                 } else {
102 102
                     $data = [];
103 103
                     foreach ($xml_files as $key => $content) {
104
-                        $data[$key.'.xml'] = $content;
104
+                        $data[$key . '.xml'] = $content;
105 105
                     }
106 106
 
107 107
                     //Dont return already here... We need to set the exported flags first
108 108
                     $response = ZIPBinaryFileResponseFacade::createZIPResponseFromData(
109 109
                         $data,
110
-                        'export_'.date('Y-m-d_H-i-s').'.zip'
110
+                        'export_' . date('Y-m-d_H-i-s') . '.zip'
111 111
                     );
112 112
                 }
113 113
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
                 //Show error if auto mode is not possible
123 123
                 $this->addFlash('danger',
124 124
                     $this->translator->trans('sepa_export.error.department_missing_account')
125
-                    .': '.$exception->getWrongDepartment()->getName());
125
+                    .': ' . $exception->getWrongDepartment()->getName());
126 126
             }
127 127
         }
128 128
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         $response = new Response();
138 138
         $response->headers->set('Cache-Control', 'private');
139 139
         $response->headers->set('Content-type', $mime_type);
140
-        $response->headers->set('Content-Disposition', 'attachment; filename="'.$filename.'";');
140
+        $response->headers->set('Content-Disposition', 'attachment; filename="' . $filename . '";');
141 141
         $response->headers->set('Content-length', strlen($content));
142 142
         $response->setContent($content);
143 143
 
Please login to merge, or discard this patch.
src/DataFixtures/PaymentOrderFixture.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 
131 131
     private function addFiles(PaymentOrder $paymentOrder): void
132 132
     {
133
-        $source_file = realpath(__DIR__.'/../../tests/data/form/upload.pdf');
133
+        $source_file = realpath(__DIR__ . '/../../tests/data/form/upload.pdf');
134 134
         //We have to create a copy of our source, or the file will be deleted when the files are uploaded...
135 135
         $target_file = tempnam(sys_get_temp_dir(), 'stura');
136 136
         copy($source_file, $target_file);
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 
141 141
         //Do the same thing for References
142 142
 
143
-        $source_file = realpath(__DIR__.'/../../tests/data/form/upload.pdf');
143
+        $source_file = realpath(__DIR__ . '/../../tests/data/form/upload.pdf');
144 144
         //We have to create a copy of our source, or the file will be deleted when the files are uploaded...
145 145
         $target_file = tempnam(sys_get_temp_dir(), 'stura');
146 146
         copy($source_file, $target_file);
Please login to merge, or discard this patch.
src/Services/EmailConfirmation/ManualConfirmationHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
         $date = Carbon::now()->toDateTimeLocalString();
133 133
 
134 134
         return '<h4>Manuelle Bestätigung</h4>'
135
-            .'durch '.$user->getFullName().' ('.$user->getUsername().'), '.$date.'<br>'
136
-            .'<b>Begründung: </b>'.$reason;
135
+            .'durch ' . $user->getFullName() . ' (' . $user->getUsername() . '), ' . $date . '<br>'
136
+            .'<b>Begründung: </b>' . $reason;
137 137
     }
138 138
 }
Please login to merge, or discard this patch.
src/Services/PDF/PaymentOrderPDFGenerator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
49 49
         $pdf->setY(80);
50 50
         $pdf->setMargins(25, 10);
51 51
 
52
-        $pdf->writeHTML('<h1>Zahlungsauftrag '.$paymentOrder->getIDString().'</h1><br>');
52
+        $pdf->writeHTML('<h1>Zahlungsauftrag ' . $paymentOrder->getIDString() . '</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 Umbuchung', $paymentOrder->isFsrKomResolution() ? 'Ja' : 'Nein');
60 60
         $formatter = new IntlDateFormatter('de_DE', IntlDateFormatter::MEDIUM, IntlDateFormatter::NONE);
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
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());
@@ -89,12 +89,12 @@  discard block
 block discarded – undo
89 89
 
90 90
     private function addSignatureField(TCPDF $pdf, string $content, bool $ln = true, string $align = 'L'): void
91 91
     {
92
-        $pdf->writeHTML('_____________________________________________<br><small>'.$content.'</small>', $ln, false, false, false, $align);
92
+        $pdf->writeHTML('_____________________________________________<br><small>' . $content . '</small>', $ln, false, false, false, $align);
93 93
     }
94 94
 
95 95
     private function writeRow(TCPDF $pdf, string $property, string $value): void
96 96
     {
97
-        $pdf->MultiCell(80, 5, '<b>'.$property.':</b>', 0, 'L', 0, 0, '', '', true, 0, true);
97
+        $pdf->MultiCell(80, 5, '<b>' . $property . ':</b>', 0, 'L', 0, 0, '', '', true, 0, true);
98 98
         $pdf->MultiCell(0, 5, $value, 0, 'L', 0, 1, '', '', true, 0, true);
99 99
     }
100 100
 }
Please login to merge, or discard this patch.
src/Services/PDF/SturaPDF.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 {
30 30
     public function Header()
31 31
     {
32
-        $image_file = dirname(__DIR__, 3).'/assets/StuRa.png';
32
+        $image_file = dirname(__DIR__, 3) . '/assets/StuRa.png';
33 33
 
34 34
         //$image_file = 'C:\Users\janhb\Documents\Projekte\PHP\stura\assets\StuRa.png';
35 35
 
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
 
54 54
         $this->SetFont('helvetica', 'I', 8);
55 55
         // Page number
56
-        $this->Cell(0, 10, 'Seite '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 0, false, 'L');
56
+        $this->Cell(0, 10, 'Seite ' . $this->getAliasNumPage() . '/' . $this->getAliasNbPages(), 0, false, 'L');
57 57
 
58 58
         $formatter = new IntlDateFormatter('de-DE', IntlDateFormatter::SHORT, IntlDateFormatter::MEDIUM);
59 59
 
60
-        $this->Cell(0, 10, 'Erzeugt '.$formatter->format(new DateTime()), 0, false, 'R');
60
+        $this->Cell(0, 10, 'Erzeugt ' . $formatter->format(new DateTime()), 0, false, 'R');
61 61
     }
62 62
 }
Please login to merge, or discard this patch.