@@ -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 | |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | ->eventDispatcher |
| 66 | 66 | ->expects($this->once()) |
| 67 | 67 | ->method('dispatch') |
| 68 | - ->willReturn(function ($actionEvent, $eventName) { |
|
| 68 | + ->willReturn(function($actionEvent, $eventName) { |
|
| 69 | 69 | $this->assertInstanceOf(ActionEvent::class, $actionEvent); |
| 70 | 70 | $this->assertEquals(AdminEvents::ACTION_CREATE, $eventName); |
| 71 | 71 | }) |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | ->eventDispatcher |
| 25 | 25 | ->expects($this->exactly(3)) |
| 26 | 26 | ->method('dispatch') |
| 27 | - ->willReturnCallback(function ($event) { |
|
| 27 | + ->willReturnCallback(function($event) { |
|
| 28 | 28 | if ($event instanceof FieldEvent) { |
| 29 | 29 | $this->assertEquals([ |
| 30 | 30 | 'template' => 'string.html.twig', |