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

@@ -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()
);

View File

@@ -17,6 +17,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
/**
* @internal
*
* @coversNothing
*/
final class ExtractPhonenumberFromPatternTest extends KernelTestCase