Passed
Pull Request — master (#300)
by Arnaud
15:59
created
tests/phpunit/Event/Listener/Data/LoadDataListenerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/phpunit/Event/Listener/Data/FilterDataListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
tests/phpunit/Event/Events/DataEventTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/phpunit/Event/Events/ViewEventTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/phpunit/Event/Events/FormEventTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
tests/phpunit/Event/Events/RequestEventTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/phpunit/Debug/Collector/DebugCollectorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
tests/phpunit/DependencyInjection/LAGExtensionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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',
Please login to merge, or discard this patch.
tests/phpunit/Factory/AdminFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.