diff --git a/.composer-require-checker.json b/.composer-require-checker.json index e8d4304..8d74fee 100644 --- a/.composer-require-checker.json +++ b/.composer-require-checker.json @@ -1,6 +1,6 @@ { "symbol-whitelist": [ - "array", "bool", "false", "int", "null", "self", "static", "parent", "string", "true", "void", + "array", "bool", "false", "int", "null", "self", "static", "parent", "string", "true", "void", "mixed", "ampersand", "array_insert", "array_is_assoc", "nl2br_html5", "TL_ERROR", "BackendTemplate", "ContaoCommunityAlliance\\Contao\\Bindings\\ContaoEvents", @@ -10,12 +10,16 @@ "Contao\\ManagerPlugin\\Bundle\\Config\\BundleConfig", "Contao\\ManagerPlugin\\Bundle\\Parser\\ParserInterface", "Doctrine\\DBAL\\Connection", "FrontendUser", "Symfony\\Component\\Config\\FileLocator", + "Doctrine\\DBAL\\Platforms\\AbstractPlatform", + "Psr\\EventDispatcher\\EventDispatcherInterface", "Symfony\\Component\\DependencyInjection\\ContainerBuilder", "Symfony\\Component\\DependencyInjection\\Extension\\Extension", "Symfony\\Component\\DependencyInjection\\Loader\\YamlFileLoader", + "Symfony\\Component\\Filesystem\\Filesystem", "Symfony\\Component\\HttpFoundation\\Request", "Symfony\\Component\\HttpFoundation\\RequestStack", "Symfony\\Component\\HttpKernel\\Bundle\\Bundle", + "Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface", "Symfony\\Contracts\\Translation\\TranslatorInterface" ] } diff --git a/src/View/ActionHandler/DeleteHandler.php b/src/View/ActionHandler/DeleteHandler.php index 1c9e263..c7d1cdf 100644 --- a/src/View/ActionHandler/DeleteHandler.php +++ b/src/View/ActionHandler/DeleteHandler.php @@ -41,6 +41,8 @@ /** * This class handles the edit actions in the frontend. + * + * @SuppressWarnings(PHPMD.CouplingBetweenObjects) */ class DeleteHandler { @@ -81,7 +83,8 @@ public function handleEvent(ActionEvent $event): void { if ( null === ($scopeDeterminator = $this->scopeDeterminator) - || !$scopeDeterminator->currentScopeIsFrontend()) { + || !$scopeDeterminator->currentScopeIsFrontend() + ) { return; } @@ -113,7 +116,7 @@ public function handleEvent(ActionEvent $event): void */ public function process(EnvironmentInterface $environment): void { - $definition= $environment->getDataDefinition(); + $definition = $environment->getDataDefinition(); assert($definition instanceof ContainerInterface); $basicDefinition = $definition->getBasicDefinition(); diff --git a/src/View/ActionHandler/EditHandler.php b/src/View/ActionHandler/EditHandler.php index e6f6142..f3fbd14 100644 --- a/src/View/ActionHandler/EditHandler.php +++ b/src/View/ActionHandler/EditHandler.php @@ -39,6 +39,8 @@ /** * This class handles the edit actions in the frontend. + * + * @SuppressWarnings(PHPMD.CouplingBetweenObjects) */ class EditHandler { diff --git a/src/View/DefaultWidgetBuilder.php b/src/View/DefaultWidgetBuilder.php index 8b1d6a8..b377a7d 100644 --- a/src/View/DefaultWidgetBuilder.php +++ b/src/View/DefaultWidgetBuilder.php @@ -39,6 +39,7 @@ * Widget Builder to build Contao frontend widgets. * * @SuppressWarnings(PHPMD.ExcessiveMethodLength) + * @SuppressWarnings(PHPMD.CouplingBetweenObjects) */ class DefaultWidgetBuilder { diff --git a/src/Widgets/UploadOnSteroids.php b/src/Widgets/UploadOnSteroids.php index a7cbdab..d3ec9dd 100644 --- a/src/Widgets/UploadOnSteroids.php +++ b/src/Widgets/UploadOnSteroids.php @@ -62,6 +62,7 @@ * @property string sortBy * * @SuppressWarnings(PHPMD.ExcessiveClassComplexity) + * @SuppressWarnings(PHPMD.CouplingBetweenObjects) */ class UploadOnSteroids extends FormFileUpload {