Passed
Push — master ( ee15b2...de8ec8 )
by Arnaud
259:49 queued 216:10
created
tests/phpunit/Admin/AdminTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Event/Listener/Data/CreateDataFilterListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
                 }
46 46
 
47 47
                 if (\is_array($data[$name])) {
48
-                    $check = array_filter($data[$name], function ($value) {
48
+                    $check = array_filter($data[$name], function($value) {
49 49
                         return $value !== null;
50 50
                     });
51 51
 
Please login to merge, or discard this patch.