Completed
Pull Request — master (#166)
by Arnaud
05:57 queued 02:08
created
tests/AdminBundle/Factory/ViewFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@
 block discarded – undo
223 223
 
224 224
     public function testCreateRedirectionWithException()
225 225
     {
226
-        list($factory, , ,) = $this->createFactory();
226
+        list($factory,,,) = $this->createFactory();
227 227
 
228 228
         $request = $this->createMock(Request::class);
229 229
         $adminConfiguration = $this->createMock(AdminConfiguration::class);
Please login to merge, or discard this patch.
tests/AdminBundle/Bridge/Doctrine/ORM/DataProvider/ORMDataProviderTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
         ]);
154 154
         $this->expectException(Exception::class);
155 155
 
156
-         $provider->get($admin, 42);
156
+            $provider->get($admin, 42);
157 157
     }
158 158
 
159 159
     public function testSaveItem()
Please login to merge, or discard this patch.
tests/AdminBundle/Admin/AdminTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $eventDispatcher
53 53
             ->expects($this->exactly(6))
54 54
             ->method('dispatch')
55
-            ->willReturnCallback(function ($event, $eventName) use ($action, $form, $entities) {
55
+            ->willReturnCallback(function($event, $eventName) use ($action, $form, $entities) {
56 56
                 if (Events::ADMIN_HANDLE_REQUEST === $eventName) {
57 57
                     /** @var AdminEvent $event */
58 58
                     $this->assertInstanceOf(AdminEvent::class, $event);
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         );
81 81
         $request = new Request();
82 82
 
83
-        $this->assertExceptionRaised(Exception::class, function () use ($admin) {
83
+        $this->assertExceptionRaised(Exception::class, function() use ($admin) {
84 84
             $admin->getRequest();
85 85
         });
86 86
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         $this->assertCount(1, $admin->getForms());
101 101
         $this->assertEquals($form, $admin->getForms()['entity']);
102 102
         $this->assertEquals($form, $admin->getForm('entity'));
103
-        $this->assertExceptionRaised(Exception::class, function () use ($admin) {
103
+        $this->assertExceptionRaised(Exception::class, function() use ($admin) {
104 104
             $admin->getForm('invalid');
105 105
         });
106 106
     }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     public function getHandleRequestProvider(): array
109 109
     {
110 110
         return [
111
-            [['test',],],
111
+            [['test', ], ],
112 112
             [[]]
113 113
         ];
114 114
     }
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         );
137 137
         $request = new Request();
138 138
 
139
-        $this->assertExceptionRaised(Exception::class, function () use ($admin, $request) {
139
+        $this->assertExceptionRaised(Exception::class, function() use ($admin, $request) {
140 140
             $admin->handleRequest($request);
141 141
         });
142 142
     }
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         $eventDispatcher
152 152
             ->expects($this->once())
153 153
             ->method('dispatch')
154
-            ->willReturnCallback(function ($event, $eventName) use ($view) {
154
+            ->willReturnCallback(function($event, $eventName) use ($view) {
155 155
                 $this->assertEquals(Events::ADMIN_VIEW, $eventName);
156 156
                 /** @var ViewEvent $event */
157 157
                 $this->assertInstanceOf(ViewEvent::class, $event);
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
         $eventDispatcher
210 210
             ->expects($this->exactly(5))
211 211
             ->method('dispatch')
212
-            ->willReturnCallback(function ($event, $eventName) use ($action) {
212
+            ->willReturnCallback(function($event, $eventName) use ($action) {
213 213
                 $this->assertContains($eventName, [
214 214
                     Events::ADMIN_HANDLE_REQUEST,
215 215
                     Events::ADMIN_FILTER,
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
         $eventDispatcher
246 246
             ->expects($this->exactly(5))
247 247
             ->method('dispatch')
248
-            ->willReturnCallback(function ($event, $eventName) use ($action, $form) {
248
+            ->willReturnCallback(function($event, $eventName) use ($action, $form) {
249 249
                 if (Events::ADMIN_HANDLE_REQUEST === $eventName) {
250 250
                     /** @var AdminEvent $event */
251 251
                     $this->assertInstanceOf(AdminEvent::class, $event);
Please login to merge, or discard this patch.