@@ -38,7 +38,7 @@ |
||
38 | 38 | $this->assertFalse($event->hasFilter('my_filter')); |
39 | 39 | $this->assertCount(0, $event->getFilters()); |
40 | 40 | |
41 | - $this->assertExceptionRaised(FilterMissingException::class, function () use ($event) { |
|
41 | + $this->assertExceptionRaised(FilterMissingException::class, function() use ($event) { |
|
42 | 42 | $event->removeFilter('missing_filter'); |
43 | 43 | }); |
44 | 44 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | $event->removeForm('entity'); |
28 | 28 | $this->assertFalse($event->hasForm('entity')); |
29 | 29 | |
30 | - $this->assertExceptionRaised(FormMissingException::class, function () use ($event) { |
|
30 | + $this->assertExceptionRaised(FormMissingException::class, function() use ($event) { |
|
31 | 31 | $event->removeForm('missing_form'); |
32 | 32 | }); |
33 | 33 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $request = new Request(); |
18 | 18 | |
19 | 19 | $event = new RequestEvent($admin, $request); |
20 | - $this->assertExceptionRaised(MissingActionException::class, function () use ($event) { |
|
20 | + $this->assertExceptionRaised(MissingActionException::class, function() use ($event) { |
|
21 | 21 | $event->getAction(); |
22 | 22 | }); |
23 | 23 |
@@ -100,7 +100,7 @@ |
||
100 | 100 | $dataEvent |
101 | 101 | ->expects($this->once()) |
102 | 102 | ->method('addFilter') |
103 | - ->willReturnCallback(function ($value) use ($dataEvent) { |
|
103 | + ->willReturnCallback(function($value) use ($dataEvent) { |
|
104 | 104 | $this->assertInstanceOf(FilterInterface::class, $value); |
105 | 105 | |
106 | 106 | return $dataEvent; |
@@ -19,7 +19,7 @@ |
||
19 | 19 | $this->container |
20 | 20 | ->expects($this->atLeastOnce()) |
21 | 21 | ->method('setParameter') |
22 | - ->willReturnCallback(function ($parameter, $value) { |
|
22 | + ->willReturnCallback(function($parameter, $value) { |
|
23 | 23 | $this->assertContains($parameter, [ |
24 | 24 | 'lag_admin.application.configuration', |
25 | 25 | 'lag.admins', |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $this->eventDispatcher |
37 | 37 | ->expects($this->exactly(4)) |
38 | 38 | ->method('dispatch') |
39 | - ->willReturnCallback(function ($event, $eventName) use ($action, $form, $entities) { |
|
39 | + ->willReturnCallback(function($event, $eventName) use ($action, $form, $entities) { |
|
40 | 40 | if (AdminEvents::ADMIN_REQUEST === $eventName) { |
41 | 41 | $this->assertInstanceOf(RequestEvent::class, $event); |
42 | 42 | $event->setAction($action); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | |
60 | 60 | $request = new Request(); |
61 | 61 | |
62 | - $this->assertExceptionRaised(Exception::class, function () { |
|
62 | + $this->assertExceptionRaised(Exception::class, function() { |
|
63 | 63 | $this->admin->getRequest(); |
64 | 64 | }); |
65 | 65 | |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | $this->assertCount(2, $this->admin->getForms()); |
79 | 79 | $this->assertEquals($form, $this->admin->getForms()['entity']); |
80 | 80 | $this->assertEquals($form, $this->admin->getForm('entity')); |
81 | - $this->assertExceptionRaised(Exception::class, function () { |
|
81 | + $this->assertExceptionRaised(Exception::class, function() { |
|
82 | 82 | $this->admin->getForm('invalid'); |
83 | 83 | }); |
84 | 84 | } |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | ; |
100 | 100 | $request = new Request(); |
101 | 101 | |
102 | - $this->assertExceptionRaised(Exception::class, function () use ($request) { |
|
102 | + $this->assertExceptionRaised(Exception::class, function() use ($request) { |
|
103 | 103 | $this->admin->handleRequest($request); |
104 | 104 | }); |
105 | 105 | } |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | $this->eventDispatcher |
112 | 112 | ->expects($this->once()) |
113 | 113 | ->method('dispatch') |
114 | - ->willReturnCallback(function ($event, $eventName) use ($view) { |
|
114 | + ->willReturnCallback(function($event, $eventName) use ($view) { |
|
115 | 115 | $this->assertEquals(AdminEvents::ADMIN_VIEW, $eventName); |
116 | 116 | $this->assertInstanceOf(ViewEvent::class, $event); |
117 | 117 | |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | $eventDispatcher |
154 | 154 | ->expects($this->exactly(4)) |
155 | 155 | ->method('dispatch') |
156 | - ->willReturnCallback(function ($event, $eventName) use ($action) { |
|
156 | + ->willReturnCallback(function($event, $eventName) use ($action) { |
|
157 | 157 | $this->assertContains($eventName, [ |
158 | 158 | AdminEvents::ADMIN_REQUEST, |
159 | 159 | AdminEvents::ADMIN_DATA, |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | $this->eventDispatcher |
189 | 189 | ->expects($this->exactly(4)) |
190 | 190 | ->method('dispatch') |
191 | - ->willReturnCallback(function ($event, $eventName) use ($action, $form) { |
|
191 | + ->willReturnCallback(function($event, $eventName) use ($action, $form) { |
|
192 | 192 | if (AdminEvents::ADMIN_REQUEST === $eventName) { |
193 | 193 | $this->assertInstanceOf(RequestEvent::class, $event); |
194 | 194 | $event->setAction($action); |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | { |
14 | 14 | $helper = new AdminHelper(); |
15 | 15 | |
16 | - $this->assertExceptionRaised(Exception::class, function () use ($helper) { |
|
16 | + $this->assertExceptionRaised(Exception::class, function() use ($helper) { |
|
17 | 17 | $helper->getAdmin(); |
18 | 18 | }); |
19 | 19 | |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | $this->assertEquals($admin, $helper->getAdmin()); |
24 | 24 | |
25 | - $this->assertExceptionRaised(Exception::class, function () use ($helper, $admin) { |
|
25 | + $this->assertExceptionRaised(Exception::class, function() use ($helper, $admin) { |
|
26 | 26 | $helper->setAdmin($admin); |
27 | 27 | }); |
28 | 28 | } |
@@ -396,12 +396,12 @@ |
||
396 | 396 | public function filterFormDataProviderNormalizer(): array |
397 | 397 | { |
398 | 398 | return [ |
399 | - [null, 'my_action', null], |
|
400 | - [false, 'my_action', null], |
|
401 | - [null, 'create', AdminType::class], |
|
402 | - ['MyForm', 'create', 'MyForm'], |
|
403 | - [null, 'edit', AdminType::class], |
|
404 | - [null, 'delete', DeleteType::class], |
|
399 | + [null, 'my_action', null], |
|
400 | + [false, 'my_action', null], |
|
401 | + [null, 'create', AdminType::class], |
|
402 | + ['MyForm', 'create', 'MyForm'], |
|
403 | + [null, 'edit', AdminType::class], |
|
404 | + [null, 'delete', DeleteType::class], |
|
405 | 405 | ]; |
406 | 406 | } |
407 | 407 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | $metadataFactory |
20 | 20 | ->expects($this->once()) |
21 | 21 | ->method('getMetadataFor') |
22 | - ->willReturnCallback(function (string $class) { |
|
22 | + ->willReturnCallback(function(string $class) { |
|
23 | 23 | $this->assertEquals('MyLittleClass', $class); |
24 | 24 | |
25 | 25 | throw new Exception(); |