From f046caabe51abffc338c0a3fe3ef11b31e398259 Mon Sep 17 00:00:00 2001 From: RobinDev Date: Mon, 25 Sep 2023 15:03:13 +0200 Subject: [PATCH] ... --- .../src/FormField/PageMainContentField.php | 17 ----------------- packages/docs/content/roadmap.md | 2 +- rector.php | 5 +---- 3 files changed, 2 insertions(+), 22 deletions(-) diff --git a/packages/admin/src/FormField/PageMainContentField.php b/packages/admin/src/FormField/PageMainContentField.php index 9e21bb7d0..15fd9db4f 100755 --- a/packages/admin/src/FormField/PageMainContentField.php +++ b/packages/admin/src/FormField/PageMainContentField.php @@ -4,7 +4,6 @@ use Pushword\Core\Entity\PageInterface; use Sonata\AdminBundle\Form\FormMapper; -use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Symfony\Component\Form\Extension\Core\Type\TextareaType; /** @@ -31,20 +30,4 @@ public function formField(FormMapper $form): FormMapper 'help' => 'admin.page.mainContent.help', ]); } - - /* TODO : keep it to integrate editorJs - protected function configureFormFieldMainContentContentType(FormMapper $form): FormMapper - { - return $form->add('mainContentType', ChoiceType::class, [ - 'choices' => [ - 'admin.page.mainContentType.choice.defaultAppValue' => '0', - 'admin.page.mainContentType.choice.raw' => '1', - 'admin.page.mainContentType.choice.editorjs' => '2', - ], - 'label' => 'admin.page.mainContentType.label', - 'required' => false, - 'help_html' => true, - 'help' => 'admin.page.markdown.help', - ]); - }*/ } diff --git a/packages/docs/content/roadmap.md b/packages/docs/content/roadmap.md index 07fd44698..c599204de 100755 --- a/packages/docs/content/roadmap.md +++ b/packages/docs/content/roadmap.md @@ -16,7 +16,7 @@ parent: contribute - Switch image block to use media.id moroever image.uri - event listener on load to update json -- Rectorize with all List + - Implement ESlint - https://github.com/jolicode/JoliTypo diff --git a/rector.php b/rector.php index 655f1e0cc..67e0d1224 100755 --- a/rector.php +++ b/rector.php @@ -45,10 +45,7 @@ function ($path) { return __DIR__.'/'.$path; }, SetList::TYPE_DECLARATION, // SetList::DEAD_CODE, PHPUnitSetList::PHPUNIT_CODE_QUALITY, - /* - SetList::NAMING, - SetList::PRIVATIZATION, - */ + // SetList::NAMING, SetList::CODE_QUALITY, SetList::PHP_82, SetList::CODING_STYLE,