@@ -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); |