Skip to content

Commit

Permalink
ecs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
seibtph committed Jul 18, 2023
1 parent 84d5479 commit 271e35d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Resources/contao/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,11 @@
/*
* Frontend modules
*/
if(false === strpos($GLOBALS['FE_MOD']['news']['newslist'], 'Codefog\NewsCategoriesBundle'))
{
if (false === strpos($GLOBALS['FE_MOD']['news']['newslist'], 'Codefog\NewsCategoriesBundle')) {
$GLOBALS['FE_MOD']['news']['newslist'] = ModuleCustomNewslist::class;
}

if(false !== strpos($GLOBALS['FE_MOD']['news']['newslist'], 'Codefog\NewsCategoriesBundle'))
{
if (false !== strpos($GLOBALS['FE_MOD']['news']['newslist'], 'Codefog\NewsCategoriesBundle')) {
$GLOBALS['FE_MOD']['news']['newslist'] = NewsCategoriesModule::class;

Check failure on line 55 in src/Resources/contao/config/config.php

View workflow job for this annotation

GitHub Actions / PHPStan

Class Codefog\NewsCategoriesBundle\FrontendModule\NewsListModule not found.

Check failure on line 55 in src/Resources/contao/config/config.php

View workflow job for this annotation

GitHub Actions / PHPStan

Class Codefog\NewsCategoriesBundle\FrontendModule\NewsListModule not found.
}

Expand Down

0 comments on commit 271e35d

Please sign in to comment.