Skip to content

Commit

Permalink
OP-326: PHPStan anc ECS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jkindly committed Jul 8, 2024
1 parent 5f2c35e commit b794f8b
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/Form/Type/ContentElements/HeadingContentElementType.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
'empty_data' => 'h1',
])
->add(self::TYPE, TextType::class, [
'label' => 'bitbag_sylius_cms_plugin.ui.content_elements.type.'.self::TYPE,
'label' => 'bitbag_sylius_cms_plugin.ui.content_elements.type.' . self::TYPE,
])
;
}

public function getBlockPrefix(): string
{
return 'bitbag_sylius_cms_plugin_content_elements_'.self::TYPE;
return 'bitbag_sylius_cms_plugin_content_elements_' . self::TYPE;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career
*/


declare(strict_types=1);

namespace BitBag\SyliusCmsPlugin\Form\Type\ContentElements;
Expand All @@ -28,7 +27,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
{
$builder
->add(self::TYPE, MediaAutocompleteChoiceType::class, [
'label' => 'bitbag_sylius_cms_plugin.ui.content_elements.type.'.self::TYPE,
'label' => 'bitbag_sylius_cms_plugin.ui.content_elements.type.' . self::TYPE,
'multiple' => true,
])
;
Expand All @@ -38,6 +37,6 @@ public function buildForm(FormBuilderInterface $builder, array $options): void

public function getBlockPrefix(): string
{
return 'bitbag_sylius_cms_plugin_content_elements_'.self::TYPE;
return 'bitbag_sylius_cms_plugin_content_elements_' . self::TYPE;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ public function buildForm(FormBuilderInterface $builder, array $options): void

public function getBlockPrefix(): string
{
return 'bitbag_sylius_cms_plugin_content_elements_'.self::TYPE;
return 'bitbag_sylius_cms_plugin_content_elements_' . self::TYPE;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ public function buildForm(FormBuilderInterface $builder, array $options): void

public function getBlockPrefix(): string
{
return 'bitbag_sylius_cms_plugin_content_elements_'.self::TYPE;
return 'bitbag_sylius_cms_plugin_content_elements_' . self::TYPE;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career
*/


declare(strict_types=1);

namespace BitBag\SyliusCmsPlugin\Form\Type\ContentElements;
Expand All @@ -30,7 +29,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
{
$builder
->add(self::TYPE, MediaAutocompleteChoiceType::class, [
'label' => 'bitbag_sylius_cms_plugin.ui.content_elements.type.'.self::TYPE,
'label' => 'bitbag_sylius_cms_plugin.ui.content_elements.type.' . self::TYPE,
])
;

Expand All @@ -41,6 +40,6 @@ public function buildForm(FormBuilderInterface $builder, array $options): void

public function getBlockPrefix(): string
{
return 'bitbag_sylius_cms_plugin_content_elements_'.self::TYPE;
return 'bitbag_sylius_cms_plugin_content_elements_' . self::TYPE;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ public function buildForm(FormBuilderInterface $builder, array $options): void

public function getBlockPrefix(): string
{
return 'bitbag_sylius_cms_plugin_content_elements_'.self::TYPE;
return 'bitbag_sylius_cms_plugin_content_elements_' . self::TYPE;
}
}
4 changes: 2 additions & 2 deletions src/Form/Type/ContentElements/TextareaContentElementType.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
{
$builder
->add(self::TYPE, WysiwygType::class, [
'label' => 'bitbag_sylius_cms_plugin.ui.content_elements.type.'.self::TYPE,
'label' => 'bitbag_sylius_cms_plugin.ui.content_elements.type.' . self::TYPE,
])
;
}

public function getBlockPrefix(): string
{
return 'bitbag_sylius_cms_plugin_content_elements_'.self::TYPE;
return 'bitbag_sylius_cms_plugin_content_elements_' . self::TYPE;
}
}
2 changes: 1 addition & 1 deletion src/Repository/MediaRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@ public function findByNamePart(string $phrase): array
->setParameter('name', '%' . $phrase . '%')
->getQuery()
->getResult()
;
;
}
}

0 comments on commit b794f8b

Please sign in to comment.