@@ -16,7 +16,7 @@ |
||
16 | 16 | $resourceCollection |
17 | 17 | ->expects($this->once()) |
18 | 18 | ->method('addMethodCall') |
19 | - ->willReturnCallback(function ($name, $parameters) { |
|
19 | + ->willReturnCallback(function($name, $parameters) { |
|
20 | 20 | $this->assertEquals('add', $name); |
21 | 21 | $this->assertCount(1, $parameters); |
22 | 22 | $this->assertInstanceOf(Reference::class, $parameters[0]); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $eventDispatcher |
48 | 48 | ->expects($this->exactly(5)) |
49 | 49 | ->method('dispatch') |
50 | - ->willReturnCallback(function ($eventName, $event) use ($action, $form) { |
|
50 | + ->willReturnCallback(function($eventName, $event) use ($action, $form) { |
|
51 | 51 | if (AdminEvents::HANDLE_REQUEST === $eventName) { |
52 | 52 | /** @var AdminEvent $event */ |
53 | 53 | $this->assertInstanceOf(AdminEvent::class, $event); |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | ); |
113 | 113 | $request = new Request(); |
114 | 114 | |
115 | - $this->assertExceptionRaised(Exception::class, function () use ($admin, $request) { |
|
115 | + $this->assertExceptionRaised(Exception::class, function() use ($admin, $request) { |
|
116 | 116 | $admin->handleRequest($request); |
117 | 117 | }); |
118 | 118 | } |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | $eventDispatcher |
128 | 128 | ->expects($this->once()) |
129 | 129 | ->method('dispatch') |
130 | - ->willReturnCallback(function ($eventName, $event) use ($view) { |
|
130 | + ->willReturnCallback(function($eventName, $event) use ($view) { |
|
131 | 131 | $this->assertEquals(AdminEvents::VIEW, $eventName); |
132 | 132 | /** @var ViewEvent $event */ |
133 | 133 | $this->assertInstanceOf(ViewEvent::class, $event); |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | $eventDispatcher |
179 | 179 | ->expects($this->exactly(4)) |
180 | 180 | ->method('dispatch') |
181 | - ->willReturnCallback(function ($eventName, $event) use ($action, $form) { |
|
181 | + ->willReturnCallback(function($eventName, $event) use ($action, $form) { |
|
182 | 182 | if (AdminEvents::HANDLE_REQUEST === $eventName) { |
183 | 183 | /** @var AdminEvent $event */ |
184 | 184 | $this->assertInstanceOf(AdminEvent::class, $event); |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | $eventDispatcher |
209 | 209 | ->expects($this->exactly(4)) |
210 | 210 | ->method('dispatch') |
211 | - ->willReturnCallback(function ($eventName, $event) use ($action, $form) { |
|
211 | + ->willReturnCallback(function($eventName, $event) use ($action, $form) { |
|
212 | 212 | if (AdminEvents::HANDLE_REQUEST === $eventName) { |
213 | 213 | /** @var AdminEvent $event */ |
214 | 214 | $this->assertInstanceOf(AdminEvent::class, $event); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | $eventDispatcher |
35 | 35 | ->expects($this->once()) |
36 | 36 | ->method('dispatch') |
37 | - ->willReturnCallback(function ($eventName, $event) { |
|
37 | + ->willReturnCallback(function($eventName, $event) { |
|
38 | 38 | $this->assertEquals(AdminEvents::MENU, $eventName); |
39 | 39 | $this->assertInstanceOf(MenuEvent::class, $event); |
40 | 40 | }) |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $builder |
18 | 18 | ->expects($this->exactly(3)) |
19 | 19 | ->method('setParameter') |
20 | - ->willReturnCallback(function ($parameter, $value) { |
|
20 | + ->willReturnCallback(function($parameter, $value) { |
|
21 | 21 | $this->assertContains($parameter, [ |
22 | 22 | 'lag.admin.enable_extra_configuration', |
23 | 23 | 'lag.admin.application_configuration', |
@@ -69,7 +69,7 @@ |
||
69 | 69 | if ('pagerfanta' === $configuration->getParameter('pager')) { |
70 | 70 | $pageParameter = $configuration->getParameter('page_parameter'); |
71 | 71 | $request = $this->requestStack->getCurrentRequest(); |
72 | - $page = (int)$request->get($pageParameter, 1); |
|
72 | + $page = (int) $request->get($pageParameter, 1); |
|
73 | 73 | |
74 | 74 | $adapter = new DoctrineORMAdapter($queryBuilder); |
75 | 75 | $pager = new Pagerfanta($adapter); |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | |
107 | 107 | $event = new AdminEvent($admin, $request); |
108 | 108 | |
109 | - $this->assertExceptionRaised(Exception::class, function () use ($subscriber, $event) { |
|
109 | + $this->assertExceptionRaised(Exception::class, function() use ($subscriber, $event) { |
|
110 | 110 | $subscriber->handleRequest($event); |
111 | 111 | }); |
112 | 112 | } |
@@ -518,7 +518,7 @@ discard block |
||
518 | 518 | $request = new Request(); |
519 | 519 | $event = new EntityEvent($admin, $request); |
520 | 520 | |
521 | - $this->assertExceptionRaised(Exception::class, function () use ($subscriber, $event) { |
|
521 | + $this->assertExceptionRaised(Exception::class, function() use ($subscriber, $event) { |
|
522 | 522 | $subscriber->loadEntities($event); |
523 | 523 | }); |
524 | 524 | } |