Skip to content

Commit f19b871

Browse files
committed
cs
1 parent 69b43ae commit f19b871

18 files changed

+22
-21
lines changed

src/Mail/Message.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,8 @@ private function createAttachment(
301301
?string $content,
302302
?string $contentType,
303303
string $disposition
304-
): MimePart {
304+
): MimePart
305+
{
305306
$part = new MimePart;
306307
if ($content === null) {
307308
$content = Nette\Utils\FileSystem::read($file);

tests/Mail/Mail.HtmlBody.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ Content-Transfer-Encoding: 8bit
5050
<b><span>Příliš </span> žluťoučký <br>kůň</b>
5151
----------%S%--
5252
EOD
53-
, TestMailer::$output);
53+
, TestMailer::$output);

tests/Mail/Mail.HtmlBodyAndLinks.multiline.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ Content-Transfer-Encoding: 8bit
6666
</b>
6767
----------%S%--
6868
EOD
69-
, TestMailer::$output);
69+
, TestMailer::$output);

tests/Mail/Mail.HtmlBodyAndLinks.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ Content-Transfer-Encoding: 8bit
5151
<b><span>Příliš </span> <a href="http://green.example.com">žluťoučký</a> " <br><a href='http://horse.example.com'>kůň</a></b>
5252
----------%S%--
5353
EOD
54-
, TestMailer::$output);
54+
, TestMailer::$output);

tests/Mail/Mail.attachment.eml.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ Content-Disposition: attachment; filename="example.eml"
4242
Um%A%=
4343
----------%S%--
4444
EOD
45-
, TestMailer::$output);
45+
, TestMailer::$output);

tests/Mail/Mail.attachment.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ AAgAJ4gyOyaRKmdAAAAAQQAAAAsAAAAAAAAAAAAgAAAAAAAAAHZlcnNpb24udHh0UEsFBgAAAAAB
4545
AAEAOQAAAGkAAAAAAA==
4646
----------%S%--
4747
EOD
48-
, TestMailer::$output);
48+
, TestMailer::$output);
4949

5050

5151
$mail = new Message;
@@ -74,7 +74,7 @@ Content-Disposition: attachment; filename="example.zip"
7474
PK=03=04=14=00=00=00=08=00'=882;&=91*g@=00=00=00A=00=00=00=0B=00=00=00versi=%A%00
7575
----------%S%--
7676
EOD
77-
, TestMailer::$output);
77+
, TestMailer::$output);
7878

7979

8080
$mail = new Message;
@@ -134,4 +134,4 @@ Content-Disposition: attachment; filename="\"\\"
134134
UEsDBBQ=
135135
----------%S%--
136136
EOD
137-
, TestMailer::$output);
137+
, TestMailer::$output);

tests/Mail/Mail.dkim.headers.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (!extension_loaded('openssl')) {
1717
Tester\Environment::skip('OpenSSL not installed');
1818
}
1919

20-
$signer = new class([], ['From', 'To', 'Date', 'Subject', 'Message-ID', 'X-Mailer', 'Content-Type']) extends DkimSigner {
20+
$signer = new class ([], ['From', 'To', 'Date', 'Subject', 'Message-ID', 'X-Mailer', 'Content-Type']) extends DkimSigner {
2121
public function getSignedHeaders(Message $message): array
2222
{
2323
return parent::getSignedHeaders($message);

tests/Mail/Mail.dkim.process.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (!extension_loaded('openssl')) {
1717
Tester\Environment::skip('OpenSSL not installed');
1818
}
1919

20-
$signer = new class([], ['From', 'To', 'Subject', 'X-Mailer', 'Content-Type']) extends DkimSigner {
20+
$signer = new class ([], ['From', 'To', 'Subject', 'X-Mailer', 'Content-Type']) extends DkimSigner {
2121
public function computeSignature(string $rawHeader, string $signature): string
2222
{
2323
$headers = parent::computeSignature($rawHeader, $signature);
@@ -78,7 +78,7 @@ $signer->generateSignedMessage($mail);
7878
/* ------- Compute body hash ------- */
7979
Assert::same(
8080
'abFfM+PwY0xL0+O1BKLPEFMxG2LPt7VnNuT0ID67bPo=',
81-
$signer->computeBodyHash('<b><span>Příliš </span> <a href="http://green.example.com">žluťoučký</a> "' . ' <br><a href=\'http://horse.example.com\'>kůň</a></b>')
81+
$signer->computeBodyHash('<b><span>Příliš </span> <a href="http://green.example.com">žluťoučký</a> " <br><a href=\'http://horse.example.com\'>kůň</a></b>')
8282
);
8383

8484
Assert::same(

tests/Mail/Mail.dkim.sign.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $mail->addTo('Lady Jane <[email protected]>');
2525
$mail->setSubject('Hello Jane!');
2626
$mail->setBody('Příliš žluťoučký kůň');
2727

28-
$signer = new class(['privateKey' => $privateKey, 'domain' => 'nette.org', 'selector' => 'selector'], ['From', 'To', 'Subject']) extends DkimSigner {
28+
$signer = new class (['privateKey' => $privateKey, 'domain' => 'nette.org', 'selector' => 'selector'], ['From', 'To', 'Subject']) extends DkimSigner {
2929
protected function getTime(): int
3030
{
3131
return 0;

tests/Mail/Mail.email.long.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ Message-ID: <%a%@%a%>
4141
Content-Type: text/plain; charset=UTF-8
4242
Content-Transfer-Encoding: 7bit
4343
EOD
44-
, TestMailer::$output);
44+
, TestMailer::$output);

0 commit comments

Comments
 (0)