Skip to content

Commit

Permalink
Any fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
e-spin committed Oct 29, 2023
2 parents 4a7e653 + 6cd6253 commit 852ee83
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .composer-require-checker.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
]
}
7 changes: 5 additions & 2 deletions src/View/ActionHandler/DeleteHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@

/**
* This class handles the edit actions in the frontend.
*
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class DeleteHandler
{
Expand Down Expand Up @@ -81,7 +83,8 @@ public function handleEvent(ActionEvent $event): void
{
if (
null === ($scopeDeterminator = $this->scopeDeterminator)
|| !$scopeDeterminator->currentScopeIsFrontend()) {
|| !$scopeDeterminator->currentScopeIsFrontend()
) {
return;
}

Expand Down Expand Up @@ -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();
Expand Down
2 changes: 2 additions & 0 deletions src/View/ActionHandler/EditHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@

/**
* This class handles the edit actions in the frontend.
*
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class EditHandler
{
Expand Down
1 change: 1 addition & 0 deletions src/View/DefaultWidgetBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
* Widget Builder to build Contao frontend widgets.
*
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class DefaultWidgetBuilder
{
Expand Down
1 change: 1 addition & 0 deletions src/Widgets/UploadOnSteroids.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
* @property string sortBy
*
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class UploadOnSteroids extends FormFileUpload
{
Expand Down

0 comments on commit 852ee83

Please sign in to comment.