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 1 hour
Read doc Open Issue Permalink
Collective

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 4 hours
    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 4 hours
    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 4 hours
    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 4 hours
    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 '';

The code of your project must follow PSR-1 basic coding standard

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

  1. public function get_objectType(): string
  2. {
  3. return $this->_objectType;
  4. }
  5. public function set_objectType(string $_objectType): self

    Method names should be declared in camelCase.
    You should rename this method to comply with PSR-1.

    Time to fix: about 15 minutes
    Read doc Open Issue Permalink
    Last edited by Axel Guckelsberger
  6. {
  7. if ($this->_objectType !== $_objectType) {
  8. $this->_objectType = $_objectType ?? '';
  9. }