mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 19:43:49 +00:00
fixes after merge of master into upgrade-sf4
This commit is contained in:
@@ -17,9 +17,7 @@ use Chill\MainBundle\Search\SearchApiQuery;
|
||||
|
||||
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)
|
||||
{
|
||||
|
@@ -19,8 +19,7 @@ class Result
|
||||
* mixed an arbitrary result.
|
||||
*/
|
||||
private $result
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function getRelevance(): float
|
||||
{
|
||||
|
@@ -11,6 +11,4 @@ declare(strict_types=1);
|
||||
|
||||
namespace Chill\MainBundle\Search;
|
||||
|
||||
class ParsingException extends \Exception
|
||||
{
|
||||
}
|
||||
class ParsingException extends \Exception {}
|
||||
|
@@ -20,9 +20,7 @@ use Doctrine\ORM\Query\ResultSetMappingBuilder;
|
||||
|
||||
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
|
||||
{
|
||||
|
@@ -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"})
|
||||
|
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user