From 23cca37cc7f5daa1625bba321d536ee960cb3586 Mon Sep 17 00:00:00 2001 From: webeweb Date: Wed, 27 Mar 2024 18:24:30 +0100 Subject: [PATCH] Add declare(strict_types = 1) --- Api/DataTablesColumnInterface.php | 2 ++ Api/DataTablesLoopInterface.php | 2 ++ Api/DataTablesMappingInterface.php | 2 ++ Api/DataTablesOptionsInterface.php | 2 ++ Api/DataTablesOrderInterface.php | 2 ++ Api/DataTablesRequestInterface.php | 2 ++ Api/DataTablesResponseInterface.php | 2 ++ Api/DataTablesSearchInterface.php | 2 ++ Api/DataTablesWrapperInterface.php | 2 ++ Command/AbstractCommand.php | 2 ++ Command/ListDataTablesProviderCommand.php | 2 ++ Controller/AbstractController.php | 2 ++ Controller/DataTablesController.php | 2 ++ .../Compiler/DataTablesProviderCompilerPass.php | 2 ++ DependencyInjection/Configuration.php | 2 ++ DependencyInjection/WBWJQueryDataTablesExtension.php | 2 ++ Entity/DataTablesEntityInterface.php | 2 ++ Event/DataTablesEvent.php | 2 ++ Exception/AbstractDataTablesException.php | 2 ++ Exception/AlreadyRegisteredDataTablesProviderException.php | 2 ++ Exception/BadDataTablesCSVExporterException.php | 2 ++ Exception/BadDataTablesColumnException.php | 2 ++ Exception/BadDataTablesEditorException.php | 2 ++ Exception/BadDataTablesRepositoryException.php | 2 ++ Exception/UnregisteredDataTablesProviderException.php | 2 ++ Factory/DataTablesFactory.php | 2 ++ Helper/DataTablesEntityHelper.php | 2 ++ Helper/DataTablesExportHelper.php | 2 ++ Helper/DataTablesMappingHelper.php | 2 ++ Helper/DataTablesRepositoryHelper.php | 2 ++ Helper/DataTablesWrapperHelper.php | 2 ++ Manager/DataTablesManager.php | 2 ++ Manager/DataTablesManagerTrait.php | 2 ++ Model/DataTablesColumn.php | 2 ++ Model/DataTablesEnumerator.php | 2 ++ Model/DataTablesLoop.php | 2 ++ Model/DataTablesMapping.php | 2 ++ Model/DataTablesOptions.php | 2 ++ Model/DataTablesOrder.php | 2 ++ Model/DataTablesRequest.php | 2 ++ Model/DataTablesResponse.php | 2 ++ Model/DataTablesSearch.php | 2 ++ Model/DataTablesWrapper.php | 2 ++ Model/DataTablesWrapperTrait.php | 2 ++ Normalizer/DataTablesNormalizer.php | 2 ++ Provider/AbstractDataTablesProvider.php | 2 ++ Provider/DataTablesButtonsRendererTrait.php | 4 +++- Provider/DataTablesCSVExporterInterface.php | 2 ++ Provider/DataTablesEditorInterface.php | 2 ++ Provider/DataTablesProviderInterface.php | 2 ++ Provider/DataTablesProviderTrait.php | 2 ++ Provider/DataTablesRouterInterface.php | 2 ++ Renderer/Assets/ColorRendererTrait.php | 2 ++ Renderer/Assets/EnabledBadgeRendererTrait.php | 2 ++ Renderer/Assets/EnabledLabelRendererTrait.php | 2 ++ Renderer/Assets/IconRendererTrait.php | 2 ++ Renderer/Assets/ImageRendererTrait.php | 2 ++ Renderer/CenterAlignedRendererTrait.php | 2 ++ Renderer/ColumnWidthInterface.php | 2 ++ Renderer/DateTimes/DateRendererTrait.php | 2 ++ Renderer/DateTimes/DateTimeRendererTrait.php | 2 ++ Renderer/Floats/FloatRendererTrait.php | 2 ++ Renderer/RightAlignedRendererTrait.php | 2 ++ Renderer/Strings/BoldTextRendererTrait.php | 2 ++ Renderer/Strings/CenterAlignedTextRendererTrait.php | 2 ++ Renderer/Strings/DeletedTextRendererTrait.php | 2 ++ Renderer/Strings/InsertedTextRendererTrait.php | 2 ++ Renderer/Strings/ItalicTextRendererTrait.php | 2 ++ Renderer/Strings/JustifiedAlignedTextRendererTrait.php | 2 ++ Renderer/Strings/LeftAlignedTextRendererTrait.php | 2 ++ Renderer/Strings/MarkedTextRendererTrait.php | 2 ++ Renderer/Strings/NoWrapTextRendererTrait.php | 2 ++ Renderer/Strings/RightAlignedTextRendererTrait.php | 2 ++ Renderer/Strings/SmallTextRendererTrait.php | 2 ++ Renderer/Strings/StrikethroughTextRendererTrait.php | 2 ++ Renderer/Strings/StringWrapperTrait.php | 2 ++ Renderer/Strings/UnderlinedTextRendererTrait.php | 2 ++ Repository/DataTablesRepositoryInterface.php | 2 ++ Repository/DefaultDataTablesRepository.php | 2 ++ Traits/Arrays/ArrayEntitiesTrait.php | 2 ++ Translation/TranslatorTrait.php | 2 ++ Twig/Extension/AbstractDataTablesTwigExtension.php | 2 ++ Twig/Extension/DataTablesTwigExtension.php | 2 ++ Twig/Extension/DataTablesTwigExtensionTrait.php | 2 ++ WBWJQueryDataTablesBundle.php | 2 ++ 85 files changed, 171 insertions(+), 1 deletion(-) diff --git a/Api/DataTablesColumnInterface.php b/Api/DataTablesColumnInterface.php index 16441ee7..34244e88 100644 --- a/Api/DataTablesColumnInterface.php +++ b/Api/DataTablesColumnInterface.php @@ -1,5 +1,7 @@ renderActionButton($entity, $route, [ "type" => "Default", - "icon" => 0 < mb_strlen($comment) ? "fa:comment" : "fa:comment-slash", + "icon" => null === $comment || 0 === mb_strlen($comment) ? "fa:comment-slash" : "fa:comment", "label" => "label.comment", "translation_domain" => WBWJQueryDataTablesBundle::getTranslationDomain(), ]); diff --git a/Provider/DataTablesCSVExporterInterface.php b/Provider/DataTablesCSVExporterInterface.php index fa5fb03c..ecf29bd7 100644 --- a/Provider/DataTablesCSVExporterInterface.php +++ b/Provider/DataTablesCSVExporterInterface.php @@ -1,5 +1,7 @@