Passed
Pull Request — master (#641)
by Mathias
12:42
created
module/Applications/src/Mail/StatusChange.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,11 +131,11 @@
 block discarded – undo
131 131
     protected function getApplicationLink()
132 132
     {
133 133
         $user = $this->application->getUser();
134
-        $token = $user instanceof AnonymousUser ? '?token=' . $user->getToken() : '';
134
+        $token = $user instanceof AnonymousUser ? '?token='.$user->getToken() : '';
135 135
         $href = $this->router->assemble(
136 136
             ['id' => $this->application->getId()],
137 137
             ['name' => 'lang/applications/detail', 'force_canonical' => true]
138
-        ) . $token;
138
+        ).$token;
139 139
 
140 140
         return $href;
141 141
     }
Please login to merge, or discard this patch.
module/Applications/src/Listener/StatusChange.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -100,13 +100,13 @@  discard block
 block discarded – undo
100 100
                 $key = 'mailInquiryText';
101 101
                 break;
102 102
             default:
103
-                throw new \InvalidArgumentException('Unknown status value: ' .$status);
103
+                throw new \InvalidArgumentException('Unknown status value: '.$status);
104 104
         }
105
-        $mailText      = $settings->$key ? $settings->$key : '';
105
+        $mailText = $settings->$key ? $settings->$key : '';
106 106
         $mail->setBody($mailText);
107 107
         $mail->setApplication($this->application);
108 108
         $mailText = $mail->getBodyText();
109
-        $mailSubject   = sprintf(
109
+        $mailSubject = sprintf(
110 110
             $this->translator->translate('Your application dated %s'),
111 111
             strftime('%x', $this->application->getDateCreated()->getTimestamp())
112 112
         );
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
         if ($this->options->getDelayApplicantRejectMail()
176 176
             && $status == Status::REJECTED
177 177
         ) {
178
-            $this->mailService->queue($mail, [ 'delay' => $this->options->getDelayApplicantRejectMail() ]);
178
+            $this->mailService->queue($mail, ['delay' => $this->options->getDelayApplicantRejectMail()]);
179 179
         } else {
180 180
             $this->mailService->send($mail);
181 181
         }
@@ -201,6 +201,6 @@  discard block
 block discarded – undo
201 201
         $email = $recipient->getEmail();
202 202
         $name  = $recipient->getDisplayName(false);
203 203
 
204
-        return $name ? [ $email => $name ] : [ $email ];
204
+        return $name ? [$email => $name] : [$email];
205 205
     }
206 206
 }
Please login to merge, or discard this patch.