Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 7d3f05f

Browse files
committed
Syntax and CS fixes
1 parent a8ecf06 commit 7d3f05f

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/Admin/Block/Extension/BlockCacheExtension.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,14 @@ public function __construct($formGroup = 'form.group_metadata', $formTab = 'form
3838
*/
3939
public function configureFormFields(FormMapper $formMapper)
4040
{
41+
if ($formMapper->hasOpenTab()) {
42+
$formMapper->end();
43+
}
44+
4145
$formMapper
4246
->tab($this->formTab, 'form.tab_general' === $this->formtab
4347
? ['translation_domain' => 'CmfSonataAdminIntegrationBundle'
44-
? []
48+
: []
4549
)
4650
->with($this->formGroup, 'form.group_metadata' === $this->formGroup
4751
? ['translation_domain' => 'CmfSonataAdminIntegrationBundle']

src/Admin/Block/Imagine/SlideshowBlockAdmin.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\SlideshowBlock;
1818
use Symfony\Component\Form\Extension\Core\Type\TextType;
1919
use Sonata\CoreBundle\Form\Type\CollectionType;
20-
use Sonata\DoctrinePHPCRAdminBundle\Form\Type\TreeModelType;
2120

2221
/**
2322
* @author Horner

src/Admin/Menu/Extension/MenuOptionsExtension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public function configureFormFields(FormMapper $formMapper)
7171
)
7272
->add('display', CheckboxType::class, ['required' => false], ['help' => 'form.help_display'])
7373
->add('displayChildren', CheckboxType::class, ['required' => false], ['help' => 'form.help_display_children'])
74+
;
7475

7576
if (!$this->advanced) {
7677
$formMapper->end()->end();

0 commit comments

Comments
 (0)