Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Sep 25, 2023
1 parent 3f6c4cd commit f046caa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 22 deletions.
17 changes: 0 additions & 17 deletions packages/admin/src/FormField/PageMainContentField.php
Expand Up @@ -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;

/**
Expand All @@ -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',
]);
}*/
}
2 changes: 1 addition & 1 deletion packages/docs/content/roadmap.md
Expand Up @@ -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

Expand Down
5 changes: 1 addition & 4 deletions rector.php
Expand Up @@ -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,
Expand Down

0 comments on commit f046caa

Please sign in to comment.