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,11 @@ declare(strict_types=1);
|
||||
namespace Search\Utils;
|
||||
|
||||
use Chill\MainBundle\Search\Utils\ExtractDateFromPattern;
|
||||
use DateTimeImmutable;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use function array_map;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* @coversNothing
|
||||
*/
|
||||
final class ExtractDateFromPatternTest extends TestCase
|
||||
@@ -49,10 +48,10 @@ final class ExtractDateFromPatternTest extends TestCase
|
||||
|
||||
$this->assertCount($count, $result->getFound());
|
||||
$this->assertEquals($filtered, $result->getFilteredSubject());
|
||||
$this->assertContainsOnlyInstancesOf(DateTimeImmutable::class, $result->getFound());
|
||||
$this->assertContainsOnlyInstancesOf(\DateTimeImmutable::class, $result->getFound());
|
||||
|
||||
$dates = array_map(
|
||||
static fn (DateTimeImmutable $d) => $d->format('Y-m-d'),
|
||||
$dates = \array_map(
|
||||
static fn (\DateTimeImmutable $d) => $d->format('Y-m-d'),
|
||||
$result->getFound()
|
||||
);
|
||||
|
||||
|
@@ -17,6 +17,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* @coversNothing
|
||||
*/
|
||||
final class ExtractPhonenumberFromPatternTest extends KernelTestCase
|
||||
|
Reference in New Issue
Block a user