@@ -22,7 +22,7 @@ |
||
| 22 | 22 | ->container |
| 23 | 23 | ->expects($this->atLeastOnce()) |
| 24 | 24 | ->method('setParameter') |
| 25 | - ->willReturnCallback(function ($parameter, $value) { |
|
| 25 | + ->willReturnCallback(function($parameter, $value) { |
|
| 26 | 26 | $this->assertContains($parameter, [ |
| 27 | 27 | 'lag_admin.application.configuration', |
| 28 | 28 | 'lag_admin.resource_paths', |
@@ -15,19 +15,19 @@ |
||
| 15 | 15 | public function __construct( |
| 16 | 16 | #[Assert\NotBlank(message: 'The operation name should not be empty')] |
| 17 | 17 | private ?string $name = null, |
| 18 | - #[Assert\NotBlank(message: 'The resource name should not be empty')] |
|
| 18 | + #[Assert\NotBlank(message : 'The resource name should not be empty')] |
|
| 19 | 19 | private ?string $resourceName = null, |
| 20 | - #[Assert\Length(max: 255, maxMessage: 'The operation title should be shorter than 255 characters')] |
|
| 20 | + #[Assert\Length(max : 255, maxMessage : 'The operation title should be shorter than 255 characters')] |
|
| 21 | 21 | private ?string $title = null, |
| 22 | 22 | private ?string $description = null, |
| 23 | - #[Assert\Length(max: 255, maxMessage: 'The operation icon should be shorter than 255 characters')] |
|
| 23 | + #[Assert\Length(max : 255, maxMessage : 'The operation icon should be shorter than 255 characters')] |
|
| 24 | 24 | private ?string $icon = null, |
| 25 | - #[Assert\NotBlank(message: 'The operation template should not be empty')] |
|
| 25 | + #[Assert\NotBlank(message : 'The operation template should not be empty')] |
|
| 26 | 26 | private ?string $template = null, |
| 27 | 27 | private ?array $permissions = [], |
| 28 | - #[Assert\NotBlank(message: 'The operation controller should not be empty')] |
|
| 28 | + #[Assert\NotBlank(message : 'The operation controller should not be empty')] |
|
| 29 | 29 | private ?string $controller = null, |
| 30 | - #[Assert\NotBlank(message: 'The operation has an empty route')] |
|
| 30 | + #[Assert\NotBlank(message : 'The operation has an empty route')] |
|
| 31 | 31 | private ?string $route = null, |
| 32 | 32 | private ?array $routeParameters = null, |
| 33 | 33 | private array $methods = [], |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | { |
| 38 | 38 | $resolver |
| 39 | 39 | ->setDefaults([ |
| 40 | - 'exclude' => [], |
|
| 40 | + 'exclude' => [], |
|
| 41 | 41 | ]) |
| 42 | 42 | ->setAllowedTypes('exclude', 'array') |
| 43 | 43 | ; |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | { |
| 16 | 16 | public function buildForm(FormBuilderInterface $builder, array $options) |
| 17 | 17 | { |
| 18 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($options) { |
|
| 18 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($options) { |
|
| 19 | 19 | $data = $event->getData(); |
| 20 | 20 | $form = $event->getForm(); |
| 21 | 21 | $accessor = PropertyAccess::createPropertyAccessor(); |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | public function buildForm(FormBuilderInterface $builder, array $options): void |
| 18 | 18 | { |
| 19 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($options) { |
|
| 19 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($options) { |
|
| 20 | 20 | $form = $event->getForm(); |
| 21 | 21 | |
| 22 | 22 | /** @var FilterInterface $filter */ |