Skip to content

Commit 6ba8bc2

Browse files
committed
coding style: fixed spaces & use statements order
1 parent b0ee98a commit 6ba8bc2

File tree

11 files changed

+5
-14
lines changed

11 files changed

+5
-14
lines changed

src/Bridges/MailDI/MailExtension.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
*/
1818
class MailExtension extends Nette\DI\CompilerExtension
1919
{
20-
2120
public $defaults = [
2221
'smtp' => FALSE,
2322
'host' => NULL,
@@ -48,5 +47,4 @@ public function loadConfiguration()
4847
$builder->addAlias('nette.mailer', $this->prefix('mailer'));
4948
}
5049
}
51-
5250
}

src/Mail/FallbackMailer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,4 @@ public function addMailer(IMailer $mailer)
8282
$this->mailers[] = $mailer;
8383
return $this;
8484
}
85-
8685
}

src/Mail/IMailer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,4 @@ interface IMailer
2121
* @throws SendException
2222
*/
2323
function send(Message $mail): void;
24-
2524
}

src/Mail/Message.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,5 +389,4 @@ private function getRandomId(): string
389389
. preg_replace('#[^\w.-]+#', '', $_SERVER['HTTP_HOST'] ?? php_uname('n'))
390390
. '>';
391391
}
392-
393392
}

src/Mail/MimePart.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,5 +310,4 @@ private static function append(string $s, int &$offset = 0): string
310310
$offset += strlen($s);
311311
return $s;
312312
}
313-
314313
}

src/Mail/SendmailMailer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,4 @@ public function send(Message $mail): void
5151
throw new SendException("Unable to send email$info.");
5252
}
5353
}
54-
5554
}

src/Mail/SmtpMailer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,5 +203,4 @@ protected function read(): string
203203
}
204204
return $s;
205205
}
206-
207206
}

tests/Mail.DI/Mail.extension.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
declare(strict_types=1);
88

9-
use Nette\DI;
109
use Nette\Bridges\MailDI\MailExtension;
10+
use Nette\DI;
1111
use Tester\Assert;
1212

1313

tests/Mail.DI/include.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
2-
32
declare(strict_types=1);
43

54

65
class FooExtension extends Nette\DI\CompilerExtension
7-
{}
6+
{
7+
}
88

99

1010
function createContainer($source, $config = NULL)

tests/Mail/Mail.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66

77
declare(strict_types=1);
88

9-
use Nette\Mail\Message;
109
use Nette\Mail\IMailer;
10+
use Nette\Mail\Message;
1111

1212

1313
class TestMailer implements IMailer
1414
{
1515
public static $output;
1616

17+
1718
function send(Message $mail): void
1819
{
1920
self::$output = $mail->generateMessage();
2021
}
21-
2222
}

0 commit comments

Comments
 (0)