@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | |
77 | 77 | $logger->log( |
78 | 78 | LogLevel::ERROR, "sendAdminNewSuggestionNotification failed", |
79 | - array( |
|
79 | + array ( |
|
80 | 80 | 'document' => $document |
81 | 81 | ) |
82 | 82 | ); |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | |
121 | 121 | $logger->log( |
122 | 122 | LogLevel::ERROR, "sendAdminEmbargoExpiredNotification failed", |
123 | - array( |
|
123 | + array ( |
|
124 | 124 | 'document' => $document |
125 | 125 | ) |
126 | 126 | ); |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | |
250 | 250 | $logger->log( |
251 | 251 | LogLevel::ERROR, "sendNewDocumentNotification failed", |
252 | - array( |
|
252 | + array ( |
|
253 | 253 | 'document' => $document |
254 | 254 | ) |
255 | 255 | ); |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | |
294 | 294 | $logger->log( |
295 | 295 | LogLevel::ERROR, "sendIngestNotification failed", |
296 | - array( |
|
296 | + array ( |
|
297 | 297 | 'document' => $document |
298 | 298 | ) |
299 | 299 | ); |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | |
338 | 338 | $logger->log( |
339 | 339 | LogLevel::ERROR, "sendRegisterNotification failed", |
340 | - array( |
|
340 | + array ( |
|
341 | 341 | 'document' => $document |
342 | 342 | ) |
343 | 343 | ); |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | |
383 | 383 | $logger->log( |
384 | 384 | LogLevel::ERROR, "sendRegisterNotification failed", |
385 | - array( |
|
385 | + array ( |
|
386 | 386 | 'document' => $document |
387 | 387 | ) |
388 | 388 | ); |
@@ -403,13 +403,13 @@ discard block |
||
403 | 403 | |
404 | 404 | protected function sendMail($reveiver, $subject, $body, $args, $mailType) |
405 | 405 | { |
406 | - $emailReceiver = array(); |
|
406 | + $emailReceiver = array (); |
|
407 | 407 | $emailReceiver[$reveiver] = $reveiver; |
408 | 408 | $message = (new \TYPO3\CMS\Core\Mail\MailMessage()) |
409 | - ->setFrom(array('[email protected]' => '[email protected]')) |
|
409 | + ->setFrom(array ('[email protected]' => '[email protected]')) |
|
410 | 410 | ->setTo($emailReceiver) |
411 | - ->setSubject($this->replaceMarkers($subject,$args)) |
|
412 | - ->setBody($this->replaceMarkers($body,$args),$mailType); |
|
411 | + ->setSubject($this->replaceMarkers($subject, $args)) |
|
412 | + ->setBody($this->replaceMarkers($body, $args), $mailType); |
|
413 | 413 | $message->send(); |
414 | 414 | } |
415 | 415 |
@@ -19,8 +19,7 @@ discard block |
||
19 | 19 | use \TYPO3\CMS\Core\Log\LogManager; |
20 | 20 | use \TYPO3\CMS\Core\Utility\GeneralUtility; |
21 | 21 | |
22 | -class Notifier |
|
23 | -{ |
|
22 | +class Notifier { |
|
24 | 23 | |
25 | 24 | /** |
26 | 25 | * clientRepository |
@@ -191,8 +190,7 @@ discard block |
||
191 | 190 | return $args; |
192 | 191 | } |
193 | 192 | |
194 | - public function sendNewDocumentNotification(\EWW\Dpf\Domain\Model\Document $document) |
|
195 | - { |
|
193 | + public function sendNewDocumentNotification(\EWW\Dpf\Domain\Model\Document $document) { |
|
196 | 194 | |
197 | 195 | try { |
198 | 196 | $client = $this->clientRepository->findAll()->current(); |
@@ -257,8 +255,7 @@ discard block |
||
257 | 255 | |
258 | 256 | } |
259 | 257 | |
260 | - public function sendIngestNotification(\EWW\Dpf\Domain\Model\Document $document) |
|
261 | - { |
|
258 | + public function sendIngestNotification(\EWW\Dpf\Domain\Model\Document $document) { |
|
262 | 259 | |
263 | 260 | try { |
264 | 261 | $client = $this->clientRepository->findAll()->current(); |
@@ -344,8 +341,7 @@ discard block |
||
344 | 341 | } |
345 | 342 | } |
346 | 343 | |
347 | - public function sendRegisterNotification(\EWW\Dpf\Domain\Model\Document $document) |
|
348 | - { |
|
344 | + public function sendRegisterNotification(\EWW\Dpf\Domain\Model\Document $document) { |
|
349 | 345 | |
350 | 346 | try { |
351 | 347 | $client = $this->clientRepository->findAll()->current(); |
@@ -390,8 +386,7 @@ discard block |
||
390 | 386 | |
391 | 387 | } |
392 | 388 | |
393 | - protected function replaceMarkers($message, $args) |
|
394 | - { |
|
389 | + protected function replaceMarkers($message, $args) { |
|
395 | 390 | if (is_array($args)) { |
396 | 391 | foreach ($args as $key => $value) { |
397 | 392 | $message = str_replace($key, $value, $message); |
@@ -401,8 +396,7 @@ discard block |
||
401 | 396 | } |
402 | 397 | |
403 | 398 | |
404 | - protected function sendMail($reveiver, $subject, $body, $args, $mailType) |
|
405 | - { |
|
399 | + protected function sendMail($reveiver, $subject, $body, $args, $mailType) { |
|
406 | 400 | $emailReceiver = array(); |
407 | 401 | $emailReceiver[$reveiver] = $reveiver; |
408 | 402 | $message = (new \TYPO3\CMS\Core\Mail\MailMessage()) |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * @var \EWW\Dpf\Domain\Repository\ClientRepository |
29 | 29 | * @inject |
30 | 30 | */ |
31 | - protected $clientRepository = null; |
|
31 | + protected $clientRepository = NULL; |
|
32 | 32 | |
33 | 33 | |
34 | 34 | /** |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * @var \EWW\Dpf\Domain\Repository\DocumentTypeRepository |
38 | 38 | * @inject |
39 | 39 | */ |
40 | - protected $documentTypeRepository = null; |
|
40 | + protected $documentTypeRepository = NULL; |
|
41 | 41 | |
42 | 42 | |
43 | 43 | public function sendAdminNewSuggestionNotification(\EWW\Dpf\Domain\Model\Document $document) { |