mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 22:35:01 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -12,12 +12,12 @@ declare(strict_types=1);
|
||||
namespace Chill\MainBundle\Tests\Doctrine\DQL;
|
||||
|
||||
use Chill\MainBundle\Entity\Address;
|
||||
use DateTimeImmutable;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* @coversNothing
|
||||
*/
|
||||
final class AgeTest extends KernelTestCase
|
||||
@@ -34,29 +34,29 @@ final class AgeTest extends KernelTestCase
|
||||
public function generateQueries(): iterable
|
||||
{
|
||||
yield [
|
||||
'SELECT AGE(a.validFrom, a.validTo) FROM ' . Address::class . ' a',
|
||||
'SELECT AGE(a.validFrom, a.validTo) FROM '.Address::class.' a',
|
||||
[],
|
||||
];
|
||||
|
||||
yield [
|
||||
'SELECT AGE(:date0, :date1) FROM ' . Address::class . ' a',
|
||||
'SELECT AGE(:date0, :date1) FROM '.Address::class.' a',
|
||||
[
|
||||
'date0' => new DateTimeImmutable('now'),
|
||||
'date1' => new DateTimeImmutable('2020-01-01'),
|
||||
'date0' => new \DateTimeImmutable('now'),
|
||||
'date1' => new \DateTimeImmutable('2020-01-01'),
|
||||
],
|
||||
];
|
||||
|
||||
yield [
|
||||
'SELECT AGE(a.validFrom, :date1) FROM ' . Address::class . ' a',
|
||||
'SELECT AGE(a.validFrom, :date1) FROM '.Address::class.' a',
|
||||
[
|
||||
'date1' => new DateTimeImmutable('now'),
|
||||
'date1' => new \DateTimeImmutable('now'),
|
||||
],
|
||||
];
|
||||
|
||||
yield [
|
||||
'SELECT AGE(:date0, a.validFrom) FROM ' . Address::class . ' a',
|
||||
'SELECT AGE(:date0, a.validFrom) FROM '.Address::class.' a',
|
||||
[
|
||||
'date0' => new DateTimeImmutable('now'),
|
||||
'date0' => new \DateTimeImmutable('now'),
|
||||
],
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user