Completed
Push — master ( 4ad177...ddee2e )
by Mathias
33s queued 17s
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.
module/Applications/test/ApplicationsTest/Entity/StatusTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,9 +63,9 @@  discard block
 block discarded – undo
63 63
             [
64 64
                 [StatusInterface::INCOMING, StatusInterface::INCOMING],
65 65
                 [StatusInterface::ACCEPTED, StatusInterface::ACCEPTED],
66
-                [StatusInterface::CONFIRMED,StatusInterface::CONFIRMED],
66
+                [StatusInterface::CONFIRMED, StatusInterface::CONFIRMED],
67 67
                 [StatusInterface::INQUIRY, StatusInterface::INQUIRY],
68
-                [StatusInterface::INVITED,  StatusInterface::INVITED],
68
+                [StatusInterface::INVITED, StatusInterface::INVITED],
69 69
                 [StatusInterface::REJECTED, StatusInterface::REJECTED],
70 70
 
71 71
             ];
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public function testGetUnknownStatus()
101 101
     {
102
-        $expected="foobar";
102
+        $expected = "foobar";
103 103
         $status = new Status("unknown status");
104 104
         $this->assertEquals($status->getOrder(), $expected);
105 105
     }
Please login to merge, or discard this patch.