@@ -2,7 +2,7 @@ |
||
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); |
@@ -1,5 +1,5 @@ |
||
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); |
@@ -1,5 +1,5 @@ |
||
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 | * |
@@ -1,5 +1,5 @@ |
||
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 | * |
@@ -1,5 +1,5 @@ |
||
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 | * |
@@ -1,5 +1,5 @@ |
||
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 | * |
@@ -59,22 +59,22 @@ discard block |
||
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 |
||
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 | } |
@@ -1,5 +1,5 @@ |
||
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 | * |
@@ -1,5 +1,5 @@ |
||
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 | * |
@@ -1,5 +1,5 @@ discard block |
||
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 |
||
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 | } |
@@ -1,5 +1,5 @@ |
||
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 | * |