Completed
Pull Request — master (#95)
by Arnaud
07:08
created
src/Event/Subscriber/AdminSubscriber.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -135,12 +135,10 @@
 block discarded – undo
135 135
 
136 136
         if (LAGAdminBundle::LOAD_STRATEGY_NONE === $strategy) {
137 137
             return;
138
-        }
139
-        else if (LAGAdminBundle::LOAD_STRATEGY_MULTIPLE === $strategy) {
138
+        } else if (LAGAdminBundle::LOAD_STRATEGY_MULTIPLE === $strategy) {
140 139
             $entities = $dataProvider->getCollection($admin, $event->getFilters());
141 140
             $event->setEntities($entities);
142
-        }
143
-        else if (LAGAdminBundle::LOAD_STRATEGY_UNIQUE === $strategy) {
141
+        } else if (LAGAdminBundle::LOAD_STRATEGY_UNIQUE === $strategy) {
144 142
             $requirements = $actionConfiguration->getParameter('route_requirements');
145 143
             $identifier = null;
146 144
 
Please login to merge, or discard this patch.
AdminBundle/DependencyInjection/CompilerPass/ResourceCompilerPassTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
         $resourceCollection
17 17
             ->expects($this->once())
18 18
             ->method('addMethodCall')
19
-            ->willReturnCallback(function ($name, $parameters) {
19
+            ->willReturnCallback(function($name, $parameters) {
20 20
                 $this->assertEquals('add', $name);
21 21
                 $this->assertCount(1, $parameters);
22 22
                 $this->assertInstanceOf(Reference::class, $parameters[0]);
Please login to merge, or discard this patch.
tests/AdminBundle/Admin/AdminTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $eventDispatcher
48 48
             ->expects($this->exactly(5))
49 49
             ->method('dispatch')
50
-            ->willReturnCallback(function ($eventName, $event) use ($action, $form) {
50
+            ->willReturnCallback(function($eventName, $event) use ($action, $form) {
51 51
                 if (AdminEvents::HANDLE_REQUEST === $eventName) {
52 52
                     /** @var AdminEvent $event */
53 53
                     $this->assertInstanceOf(AdminEvent::class, $event);
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         );
113 113
         $request = new Request();
114 114
 
115
-        $this->assertExceptionRaised(Exception::class, function () use ($admin, $request) {
115
+        $this->assertExceptionRaised(Exception::class, function() use ($admin, $request) {
116 116
             $admin->handleRequest($request);
117 117
         });
118 118
     }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         $eventDispatcher
128 128
             ->expects($this->once())
129 129
             ->method('dispatch')
130
-            ->willReturnCallback(function ($eventName, $event) use ($view) {
130
+            ->willReturnCallback(function($eventName, $event) use ($view) {
131 131
                 $this->assertEquals(AdminEvents::VIEW, $eventName);
132 132
                 /** @var ViewEvent $event */
133 133
                 $this->assertInstanceOf(ViewEvent::class, $event);
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
         $eventDispatcher
179 179
             ->expects($this->exactly(4))
180 180
             ->method('dispatch')
181
-            ->willReturnCallback(function ($eventName, $event) use ($action, $form) {
181
+            ->willReturnCallback(function($eventName, $event) use ($action, $form) {
182 182
                 if (AdminEvents::HANDLE_REQUEST === $eventName) {
183 183
                     /** @var AdminEvent $event */
184 184
                     $this->assertInstanceOf(AdminEvent::class, $event);
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
         $eventDispatcher
209 209
             ->expects($this->exactly(4))
210 210
             ->method('dispatch')
211
-            ->willReturnCallback(function ($eventName, $event) use ($action, $form) {
211
+            ->willReturnCallback(function($eventName, $event) use ($action, $form) {
212 212
                 if (AdminEvents::HANDLE_REQUEST === $eventName) {
213 213
                     /** @var AdminEvent $event */
214 214
                     $this->assertInstanceOf(AdminEvent::class, $event);
Please login to merge, or discard this patch.
tests/AdminBundle/Controller/HomeActionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         $eventDispatcher
35 35
             ->expects($this->once())
36 36
             ->method('dispatch')
37
-            ->willReturnCallback(function ($eventName, $event) {
37
+            ->willReturnCallback(function($eventName, $event) {
38 38
                 $this->assertEquals(AdminEvents::MENU, $eventName);
39 39
                 $this->assertInstanceOf(MenuEvent::class, $event);
40 40
             })
Please login to merge, or discard this patch.