Your project should not use unstable versions of dependencies
- Read doc
- Reliability
- Major
More information: https://insight.symfony.com/what-we-analyse/composer.unfixed_dependency_version
Your project should not contain duplicated code 4
- Read doc
- Productivity
- Minor
More information: https://insight.symfony.com/what-we-analyse/php.duplicated_code
- use Zikula\StaticContentModule\Block\Form\Type\FincludeBlockType;
- /**
- * Block to display the contents of a file given a path.
- */
- class FincludeBlock extends AbstractBlockHandler
- {
- public const FILETYPE_HTML = 0;
- public const FILETYPE_TEXT = 1;
- use Symfony\Component\Validator\Context\ExecutionContextInterface;
- use Symfony\Contracts\Translation\TranslatorInterface;
- use Zikula\Bundle\CoreBundle\Translation\TranslatorTrait;
- use Zikula\StaticContentModule\Block\FincludeBlock;
- class FincludeBlockType extends AbstractType
- {
- use TranslatorTrait;
- public function __construct(TranslatorInterface $translator)
- {
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- namespace Zikula\StaticContentModule\Block\Form\Type;
- use Symfony\Component\Form\AbstractType;
- use Symfony\Component\Form\Extension\Core\Type\TextareaType;
- use Symfony\Component\Form\Extension\Core\Type\TextType;
- use Symfony\Component\Form\FormBuilderInterface;
- use Zikula\StaticContentModule\Block\Form\Type\XsltBlockType;
- /**
- * Block to display a parsed xml document.
- */
- class XsltBlock extends AbstractBlockHandler
- {
- public function display(array $properties): string
- {
- if (!$this->hasPermission('xsltblock::', $properties['title'] . '::', ACCESS_OVERVIEW)) {
- return '';
The code of your project must follow PSR-1 basic coding standard
- Read doc
- Productivity
- Minor
More information: https://insight.symfony.com/what-we-analyse/php.psr1
- public function get_objectType(): string
- {
- return $this->_objectType;
- }
- public function set_objectType(string $_objectType): self
- {
- if ($this->_objectType !== $_objectType) {
- $this->_objectType = $_objectType ?? '';
- }