@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | public function testInvokeWithStrategyUnique(): void |
| 57 | 57 | { |
| 58 | - [$event,$admin,,$adminConfiguration,$actionConfiguration,$request] = $this->createDataEvent(); |
|
| 58 | + [$event, $admin,,$adminConfiguration, $actionConfiguration, $request] = $this->createDataEvent(); |
|
| 59 | 59 | $request->query->set('id', 666); |
| 60 | 60 | |
| 61 | 61 | $dataProvider = $this->createMock(AdminAwareDataProviderInterface::class); |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | |
| 109 | 109 | public function testInvokeWithStrategyUniqueWithoutIdentifier(): void |
| 110 | 110 | { |
| 111 | - [$event,$admin,$action,$adminConfiguration,$actionConfiguration,] = $this->createDataEvent(); |
|
| 111 | + [$event, $admin, $action, $adminConfiguration, $actionConfiguration, ] = $this->createDataEvent(); |
|
| 112 | 112 | |
| 113 | 113 | $dataProvider = $this->createMock(AdminAwareDataProviderInterface::class); |
| 114 | 114 | $admin |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | |
| 165 | 165 | public function testInvokeWithStrategyMultiple(): void |
| 166 | 166 | { |
| 167 | - [$event,$admin,$action,$adminConfiguration,$actionConfiguration,] = $this->createDataEvent(); |
|
| 167 | + [$event, $admin, $action, $adminConfiguration, $actionConfiguration, ] = $this->createDataEvent(); |
|
| 168 | 168 | |
| 169 | 169 | $dataProvider = $this->createMock(AdminAwareDataProviderInterface::class); |
| 170 | 170 | |
@@ -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; |
@@ -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 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $request = new Request(); |
| 18 | 18 | |
| 19 | 19 | $event = new ViewEvent($admin, $request); |
| 20 | - $this->assertExceptionRaised(MissingViewException::class, function () use ($event) { |
|
| 20 | + $this->assertExceptionRaised(MissingViewException::class, function() use ($event) { |
|
| 21 | 21 | $event->getView(); |
| 22 | 22 | }); |
| 23 | 23 | |
@@ -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 | |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | { |
| 19 | 19 | // Several methods are tested in this test as testing some methods as getData() or reset() without data is |
| 20 | 20 | // useless |
| 21 | - [$collector, $registry, $storage,] = $this->createCollector(); |
|
| 21 | + [$collector, $registry, $storage, ] = $this->createCollector(); |
|
| 22 | 22 | |
| 23 | 23 | $this->assertEquals('admin.data_collector', $collector->getName()); |
| 24 | 24 | $this->assertEquals([], $collector->getData()); |
@@ -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', |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | ->eventDispatcher |
| 47 | 47 | ->expects($this->once()) |
| 48 | 48 | ->method('dispatch') |
| 49 | - ->willReturnCallback(function ($event, $eventName) { |
|
| 49 | + ->willReturnCallback(function($event, $eventName) { |
|
| 50 | 50 | $this->assertInstanceOf(AdminEvent::class, $event); |
| 51 | 51 | $this->assertEquals(AdminEvents::ADMIN_CREATE, $eventName); |
| 52 | 52 | |