@@ -154,7 +154,7 @@ |
||
154 | 154 | ['page_parameter', 'page'], |
155 | 155 | ]); |
156 | 156 | |
157 | - $provider->get($admin, 42); |
|
157 | + $provider->get($admin, 42); |
|
158 | 158 | } |
159 | 159 | |
160 | 160 | public function testSaveItem() |
@@ -46,7 +46,7 @@ |
||
46 | 46 | public function testResolveOptionsWithMissingAction() |
47 | 47 | { |
48 | 48 | $adminConfiguration = $this->createAdminConfigurationMock([ |
49 | - ['actions', [],], |
|
49 | + ['actions', [], ], |
|
50 | 50 | ]); |
51 | 51 | |
52 | 52 | $configuration = new ActionConfiguration('my_action', 'my_admin', $adminConfiguration); |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | ); |
81 | 81 | $request = new Request(); |
82 | 82 | |
83 | - $this->assertExceptionRaised(Exception::class, function () use ($admin) { |
|
83 | + $this->assertExceptionRaised(Exception::class, function() use ($admin) { |
|
84 | 84 | $admin->getRequest(); |
85 | 85 | }); |
86 | 86 | |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | $this->assertCount(1, $admin->getForms()); |
101 | 101 | $this->assertEquals($form, $admin->getForms()['entity']); |
102 | 102 | $this->assertEquals($form, $admin->getForm('entity')); |
103 | - $this->assertExceptionRaised(Exception::class, function () use ($admin) { |
|
103 | + $this->assertExceptionRaised(Exception::class, function() use ($admin) { |
|
104 | 104 | $admin->getForm('invalid'); |
105 | 105 | }); |
106 | 106 | } |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | public function getHandleRequestProvider(): array |
109 | 109 | { |
110 | 110 | return [ |
111 | - [['test',],], |
|
111 | + [['test', ], ], |
|
112 | 112 | [[]] |
113 | 113 | ]; |
114 | 114 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | |
21 | 21 | $this->assertEquals($admin, $helper->getCurrent()); |
22 | 22 | |
23 | - $this->assertExceptionRaised(Exception::class, function () use ($helper, $admin) { |
|
23 | + $this->assertExceptionRaised(Exception::class, function() use ($helper, $admin) { |
|
24 | 24 | $helper->setCurrent($admin); |
25 | 25 | }); |
26 | 26 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | $metadata |
49 | 49 | ->expects($this->atLeastOnce()) |
50 | 50 | ->method('getFieldMapping') |
51 | - ->willReturnCallback(function (string $field) use ($fields) { |
|
51 | + ->willReturnCallback(function(string $field) use ($fields) { |
|
52 | 52 | $this->assertArrayHasKey($field, $fields); |
53 | 53 | |
54 | 54 | return [ |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $metadata |
60 | 60 | ->expects($this->atLeastOnce()) |
61 | 61 | ->method('getTypeOfField') |
62 | - ->willReturnCallback(function (string $field) use ($fields) { |
|
62 | + ->willReturnCallback(function(string $field) use ($fields) { |
|
63 | 63 | $this->assertArrayHasKey($field, $fields); |
64 | 64 | |
65 | 65 | return 'string'; |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | $metadataFactory |
100 | 100 | ->expects($this->once()) |
101 | 101 | ->method('getMetadataFor') |
102 | - ->willReturnCallback(function (string $class) { |
|
102 | + ->willReturnCallback(function(string $class) { |
|
103 | 103 | $this->assertEquals('MyLittleClass', $class); |
104 | 104 | |
105 | 105 | throw new Exception(); |
@@ -33,7 +33,7 @@ |
||
33 | 33 | 'class' => 'list-group cms-menu-'.$this->menuName, |
34 | 34 | ], |
35 | 35 | ]) |
36 | - ->setNormalizer('children', function (Options $options, $value) { |
|
36 | + ->setNormalizer('children', function(Options $options, $value) { |
|
37 | 37 | if (!is_array($value)) { |
38 | 38 | throw new Exception('The menu items should an array for menu "'.$this->menuName.'"'); |
39 | 39 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | 'text' => null, |
45 | 45 | 'children' => [], |
46 | 46 | ]) |
47 | - ->setNormalizer('admin', function (Options $options, $adminName) { |
|
47 | + ->setNormalizer('admin', function(Options $options, $adminName) { |
|
48 | 48 | // user has to defined either an admin name and an action name, or a route name with optional |
49 | 49 | // parameters, or an url |
50 | 50 | if (null === $adminName |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | return $adminName; |
58 | 58 | }) |
59 | 59 | // if an admin name is set, an action name can provided. This action will be the menu link |
60 | - ->setNormalizer('action', function (Options $options, $action) { |
|
60 | + ->setNormalizer('action', function(Options $options, $action) { |
|
61 | 61 | // if an action name is provided, an admin name should be defined too |
62 | 62 | if (null !== $action && null === $options->offsetGet('admin')) { |
63 | 63 | throw new InvalidOptionsException('You should provide an admin name for this action '.$action); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | return $action; |
72 | 72 | }) |
73 | - ->setNormalizer('children', function (Options $options, $items) { |
|
73 | + ->setNormalizer('children', function(Options $options, $items) { |
|
74 | 74 | if (!is_array($items)) { |
75 | 75 | $items = []; |
76 | 76 | } |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | |
88 | 88 | return $resolvedItems; |
89 | 89 | }) |
90 | - ->setNormalizer('text', function (Options $options, $text) { |
|
90 | + ->setNormalizer('text', function(Options $options, $text) { |
|
91 | 91 | if ($text) { |
92 | 92 | return $text; |
93 | 93 | } |