Your project should not use unstable versions of dependencies

More information: https://insight.symfony.com/what-we-analyse/composer.unfixed_dependency_version

Package zikula/profile-module#dev-main is not fixed.

Time to fix: about 6 minutes
Read doc Open Issue Permalink
Collective

Your project inheritance architecture should be valid

More information: https://insight.symfony.com/what-we-analyse/php.invalid_inheritance

  1. public static function getSubscribedEvents()
  2. {
  3. return [
  4. HookPostChangeEvent::class => ['clearCombinedAssetCache'],
  5. ConnectionChangeEvent::class => ['clearCombinedAssetCache']

    Class Zikula\Zikula\Bundle\HookBundle\Event\ConnectionChangeEvent not found.

    Time to fix: about 6 minutes
    Read doc Open Issue Permalink
    Last edited by Craig Heydenburg
  6. ];
  7. }
  8. public function clearCombinedAssetCache(): void
  9. {

Your project must not contain invalid instantiations

More information: https://insight.symfony.com/what-we-analyse/php.invalid_instantiation

  1. }
  2. private function createConnection(HookEvent $event, HookEventListenerInterface $listener): Connection
  3. {
  4. if (null !== $this->connectionRepository->findOneBy(['event' => $event->getClassname(), 'listener' => $listener->getClassname()])) {
  5. throw new Exception('Connection already exists, cannot create again.');

    Instantiated class Zikula\Bundle\HookBundle\Controller\Exception not found.

    Time to fix: about 6 minutes
    Read doc Open Issue Permalink
    Last edited by Craig Heydenburg
  6. }
  7. if (!\is_subclass_of($event, $listener->listensTo())) {
  8. throw new \InvalidArgumentException('This listener cannot listen to this event.');
  9. }
  10. $connection = new Connection($event->getClassname(), $listener->getClassname());

Your project should not contain duplicated code 4

More information: https://insight.symfony.com/what-we-analyse/php.duplicated_code

  1. use Zikula\StaticContentModule\Block\Form\Type\FincludeBlockType;
  2. /**
  3. * Block to display the contents of a file given a path.
  4. */
  5. class FincludeBlock extends AbstractBlockHandler

    The next 43 lines appear both in src/extensions/zikula/staticcontent-module/Block/FincludeBlock.php:22 and src/system/BlocksModule/Block/FincludeBlock.php:25.

    Time to fix: about 6 minutes
    Read doc Open Issue Permalink
    Collective
  6. {
  7. public const FILETYPE_HTML = 0;
  8. public const FILETYPE_TEXT = 1;
  1. use Symfony\Component\Validator\Context\ExecutionContextInterface;
  2. use Symfony\Contracts\Translation\TranslatorInterface;
  3. use Zikula\Bundle\CoreBundle\Translation\TranslatorTrait;
  4. use Zikula\StaticContentModule\Block\FincludeBlock;
  5. class FincludeBlockType extends AbstractType

    The next 34 lines appear both in src/extensions/zikula/staticcontent-module/Block/Form/Type/FincludeBlockType.php:29 and src/system/BlocksModule/Block/Form/Type/FincludeBlockType.php:32.

    Time to fix: about 6 minutes
    Read doc Open Issue Permalink
    Collective
  6. {
  7. use TranslatorTrait;
  8. public function __construct(TranslatorInterface $translator)
  9. {
  1. *
  2. * For the full copyright and license information, please view the LICENSE
  3. * file that was distributed with this source code.
  4. */
  5. namespace Zikula\StaticContentModule\Block\Form\Type;

    The next 68 lines appear both in src/extensions/zikula/staticcontent-module/Block/Form/Type/XsltBlockType.php:14 and src/system/BlocksModule/Block/Form/Type/XsltBlockType.php:14.

    Time to fix: about 6 minutes
    Read doc Open Issue Permalink
    Collective
  6. use Symfony\Component\Form\AbstractType;
  7. use Symfony\Component\Form\Extension\Core\Type\TextareaType;
  8. use Symfony\Component\Form\Extension\Core\Type\TextType;
  9. use Symfony\Component\Form\FormBuilderInterface;
  1. use Zikula\StaticContentModule\Block\Form\Type\XsltBlockType;
  2. /**
  3. * Block to display a parsed xml document.
  4. */
  5. class XsltBlock extends AbstractBlockHandler

    The next 38 lines appear both in src/extensions/zikula/staticcontent-module/Block/XsltBlock.php:24 and src/system/BlocksModule/Block/XsltBlock.php:27.

    Time to fix: about 6 minutes
    Read doc Open Issue Permalink
    Collective
  6. {
  7. public function display(array $properties): string
  8. {
  9. if (!$this->hasPermission('xsltblock::', $properties['title'] . '::', ACCESS_OVERVIEW)) {
  10. return '';