apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

@@ -27,14 +27,13 @@ use Symfony\Component\Translation\Translator;
/**
* @internal
*
* @coversNothing
*/
class NotificationMailerTest extends TestCase
{
use ProphecyTrait;
/**
*/
public function testPostPersistComment(): void
{
$user1 = (new User())->setEmail('user1@foo.com');
@@ -50,7 +49,7 @@ class NotificationMailerTest extends TestCase
;
$comment = (new NotificationComment())
->setContent("foo bar baz")
->setContent('foo bar baz')
->setCreatedBy($user2)
;
$notification->addComment($comment);
@@ -60,7 +59,7 @@ class NotificationMailerTest extends TestCase
// a mail only to user1 and user3 should have been sent
$mailer->send(Argument::that(function (Email $email) {
foreach ($email->getTo() as $address) {
if ($address->getAddress() === 'user1@foo.com' || $address->getAddress() === 'user3@foo.com') {
if ('user1@foo.com' === $address->getAddress() || 'user3@foo.com' === $address->getAddress()) {
return true;
}
}
@@ -89,7 +88,7 @@ class NotificationMailerTest extends TestCase
;
$comment = (new NotificationComment())
->setContent("foo bar baz")
->setContent('foo bar baz')
->setCreatedBy($user2)
;
$notification->addComment($comment);
@@ -99,7 +98,7 @@ class NotificationMailerTest extends TestCase
// a mail only to user1 and user3 should have been sent
$mailer->send(Argument::that(function (Email $email) {
foreach ($email->getTo() as $address) {
if ($address->getAddress() === 'user1@foo.com') {
if ('user1@foo.com' === $address->getAddress()) {
return true;
}
}
@@ -122,7 +121,4 @@ class NotificationMailerTest extends TestCase
new Translator('fr')
);
}
}

View File

@@ -22,6 +22,7 @@ use Symfony\Component\HttpKernel\Event\TerminateEvent;
/**
* @internal
*
* @coversNothing
*/
final class PersistNotificationOnTerminateEventSubscriberTest extends TestCase