@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $this->options = array_merge($this->options, $options); |
63 | 63 | } |
64 | 64 | |
65 | - public function attach(EventManagerInterface $events, $priority=1) |
|
65 | + public function attach(EventManagerInterface $events, $priority = 1) |
|
66 | 66 | { |
67 | 67 | $this->listeners[] = $events->attach(JobEvent::EVENT_JOB_CREATED, array($this, 'onJobCreated')); |
68 | 68 | $this->listeners[] = $events->attach(JobEvent::EVENT_JOB_ACCEPTED, array($this, 'onJobAccepted')); |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | if ($adminMail) { |
153 | 153 | $mail->setTo($this->options['adminEmail']); |
154 | 154 | } else { |
155 | - if (! ($user = $job->getUser()) ) { return; } |
|
155 | + if (!($user = $job->getUser())) { return; } |
|
156 | 156 | $userInfo = $user->getInfo(); |
157 | 157 | $userEmail = $userInfo->getEmail(); |
158 | 158 | $userName = $userInfo->getDisplayName(/*emailIfEmpty*/ false); |