apply rector rules

This commit is contained in:
2023-07-28 02:40:02 +02:00
parent 157cdf6dfc
commit f570fe92a5
112 changed files with 252 additions and 562 deletions

View File

@@ -64,10 +64,7 @@ class ExportManager
*/
private array $formatters = [];
/**
* @var \Symfony\Component\Security\Core\User\UserInterface
*/
private $user;
private readonly string|\Stringable|\Symfony\Component\Security\Core\User\UserInterface $user;
public function __construct(
private readonly LoggerInterface $logger,

View File

@@ -126,17 +126,13 @@ class SpreadSheetFormatter implements FormatterInterface
* The array's keys are the keys in the raw result, and
* values are the callable which will transform the raw result to
* displayable result.
*
* @var array
*/
private $cacheDisplayableResult;
private ?array $cacheDisplayableResult = null;
/**
* Whethe `cacheDisplayableResult` is initialized or not.
*
* @var bool
*/
private $cacheDisplayableResultIsInitialized = false;
private bool $cacheDisplayableResultIsInitialized = false;
public function __construct(TranslatorInterface $translatorInterface, ExportManager $exportManager)
{