Test Failed
Branch master (52c0c0)
by Florian
04:16
created
phpunit.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 include __DIR__.'/vendor/autoload.php';
3 3
 
4 4
 if (!defined('DS')) {
5
-	define('DS', DIRECTORY_SEPARATOR);
5
+    define('DS', DIRECTORY_SEPARATOR);
6 6
 }
7 7
 
8 8
 define('TESTS', __DIR__ . DS . 'tests' . DS);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-include __DIR__.'/vendor/autoload.php';
2
+include __DIR__ . '/vendor/autoload.php';
3 3
 
4 4
 if (!defined('DS')) {
5 5
 	define('DS', DIRECTORY_SEPARATOR);
Please login to merge, or discard this patch.
src/Email.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * Copyright (c) Phauthentic (https://github.com/Phauthentic)
5 5
  *
Please login to merge, or discard this patch.
src/EmailAddress.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * Copyright (c) Phauthentic (https://github.com/Phauthentic)
5 5
  *
Please login to merge, or discard this patch.
src/EmailAddressInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * Copyright (c) Phauthentic (https://github.com/Phauthentic)
5 5
  *
Please login to merge, or discard this patch.
src/EmailInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * Copyright (c) Phauthentic (https://github.com/Phauthentic)
5 5
  *
Please login to merge, or discard this patch.
src/Mailer/SwiftMailer.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -59,22 +59,22 @@  discard block
 block discarded – undo
59 59
     {
60 60
         $swiftMail = new Swift_Message($email->getSubject());
61 61
         $swiftMail
62
-          ->setFrom(
63
-              $email->getSender()->getEmail(),
64
-              $email->getSender()->getName()
65
-          )
66
-          ->setTo((string)$email->getReceivers()[0]->getEmail(), $email->getReceivers()[0]->getName());
62
+            ->setFrom(
63
+                $email->getSender()->getEmail(),
64
+                $email->getSender()->getName()
65
+            )
66
+            ->setTo((string)$email->getReceivers()[0]->getEmail(), $email->getReceivers()[0]->getName());
67 67
 
68 68
         foreach ($email->getAttachments() as $attachment) {
69 69
             $swiftMail->attach(new Swift_Attachment($attachment->getFile()));
70 70
         }
71 71
 
72 72
         return $this->setBody($swiftMail, $email);
73
-   }
73
+    }
74 74
 
75
-   /**
76
-    * Sets the body to the email implementation
77
-    */
75
+    /**
76
+     * Sets the body to the email implementation
77
+     */
78 78
     protected function setBody(Swift_Message $swiftMail, EmailInterface $email)
79 79
     {
80 80
         $text = $email->getTextContent();
@@ -96,12 +96,12 @@  discard block
 block discarded – undo
96 96
         return $swiftMail;
97 97
     }
98 98
 
99
-   public function getEmail($name, $email)
100
-   {
99
+    public function getEmail($name, $email)
100
+    {
101 101
         $name = $name . 'Email';
102 102
         if (method_exists($this, $name)) {
103 103
             return $this->{$name}($email);
104 104
         }
105
-   }
105
+    }
106 106
 
107 107
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * Copyright (c) Phauthentic (https://github.com/Phauthentic)
5 5
  *
Please login to merge, or discard this patch.
src/Mailer/CakePhpMailer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * Copyright (c) Phauthentic (https://github.com/Phauthentic)
5 5
  *
Please login to merge, or discard this patch.
src/Mailer/PHPMailerMailer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * Copyright (c) Phauthentic (https://github.com/Phauthentic)
5 5
  *
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      *
32 32
      * @param \PHPMailer $mailer PHPMailer instance
33 33
      */
34
-    public function __construct(PHPMailer $mailer )
34
+    public function __construct(PHPMailer $mailer)
35 35
     {
36 36
         $this->mailer = $mailer;
37 37
     }
Please login to merge, or discard this patch.
src/Mailer/PhpMailMailer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * Copyright (c) Phauthentic (https://github.com/Phauthentic)
5 5
  *
Please login to merge, or discard this patch.