Passed
Pull Request — master (#181)
by
unknown
05:24
created
src/Classes/Services/Email/Notifier.php 1 patch
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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())
Please login to merge, or discard this patch.