new cs rule: single_line_empty_body

Rule is added to the last version of php-cs-fixer
This commit is contained in:
2023-09-12 15:58:59 +02:00
parent b9231a91a3
commit d2323e91ca
606 changed files with 639 additions and 1804 deletions

View File

@@ -20,9 +20,7 @@ use function in_array;
class SearchUserApiProvider implements SearchApiInterface
{
public function __construct(private readonly UserRepository $userRepository)
{
}
public function __construct(private readonly UserRepository $userRepository) {}
public function getResult(string $key, array $metadata, float $pertinence)
{

View File

@@ -22,8 +22,7 @@ class Result
* mixed an arbitrary result.
*/
private $result
) {
}
) {}
public function getRelevance(): float
{

View File

@@ -13,6 +13,4 @@ namespace Chill\MainBundle\Search;
use Exception;
class ParsingException extends Exception
{
}
class ParsingException extends Exception {}

View File

@@ -26,9 +26,7 @@ use function strtr;
class SearchApi
{
public function __construct(private readonly EntityManagerInterface $em, private readonly iterable $providers, private readonly PaginatorFactory $paginator)
{
}
public function __construct(private readonly EntityManagerInterface $em, private readonly iterable $providers, private readonly PaginatorFactory $paginator) {}
public function getResults(string $pattern, array $types, array $parameters): Collection
{

View File

@@ -17,9 +17,7 @@ class SearchApiResult
{
private mixed $result;
public function __construct(private readonly float $relevance)
{
}
public function __construct(private readonly float $relevance) {}
/**
* @Serializer\Groups({"read"})

View File

@@ -13,9 +13,7 @@ namespace Chill\MainBundle\Search\Utils;
class SearchExtractionResult
{
public function __construct(private readonly string $filteredSubject, private readonly array $found)
{
}
public function __construct(private readonly string $filteredSubject, private readonly array $found) {}
public function getFilteredSubject(): string
{