Passed
Pull Request — master (#341)
by Arnaud
05:00
created
tests/phpunit/DependencyInjection/LAGExtensionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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',
Please login to merge, or discard this patch.
src/Metadata/Operation.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,19 +15,19 @@
 block discarded – undo
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 = [],
Please login to merge, or discard this patch.
src/Form/Type/OperationDataType.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     {
38 38
         $resolver
39 39
             ->setDefaults([
40
-               'exclude' => [],
40
+                'exclude' => [],
41 41
             ])
42 42
             ->setAllowedTypes('exclude', 'array')
43 43
         ;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Form/Type/ResourceFilterType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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 */
Please login to merge, or discard this patch.