Completed
Push — refonte ( 26af1d...23a748 )
by Arnaud
10:14 queued 07:27
created
AdminBundle/Tests/AdminBundle/DependencyInjection/FieldCompilerPassTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         $this->assertEquals('setConfiguration', $fieldCalls[0][0]);
50 50
 
51 51
         $this->assertInstanceOf(Reference::class, $fieldCalls[0][1][0]);
52
-        $this->assertEquals('lag.admin.application', (string)$fieldCalls[0][1][0]);
52
+        $this->assertEquals('lag.admin.application', (string) $fieldCalls[0][1][0]);
53 53
 
54 54
     }
55 55
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
         $this->assertExceptionRaised(
75 75
             InvalidConfigurationException::class,
76
-            function () use ($compilerPass, $containerBuilder) {
76
+            function() use ($compilerPass, $containerBuilder) {
77 77
                 // process the compiler pass
78 78
                 $compilerPass->process($containerBuilder);
79 79
             }
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Tests/AdminBundle/Action/Registry/RegistryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,11 +23,11 @@
 block discarded – undo
23 23
         $registry->add('my.action', $action);
24 24
 
25 25
         // an exception SHOULD be thrown if an Action with the same has already been registered
26
-        $this->assertExceptionRaised(Exception::class, function () use ($registry, $action) {
26
+        $this->assertExceptionRaised(Exception::class, function() use ($registry, $action) {
27 27
             $registry->add('my.action', $action);
28 28
         });
29 29
     
30
-        $this->assertExceptionRaised(Exception::class, function () use ($registry, $action) {
30
+        $this->assertExceptionRaised(Exception::class, function() use ($registry, $action) {
31 31
             $registry->get('badName');
32 32
         });
33 33
     
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Tests/AdminBundle/Action/Factory/ActionFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -239,13 +239,13 @@
 block discarded – undo
239 239
             $actionRegistry
240 240
         );
241 241
     
242
-        $this->assertExceptionRaised(Exception::class, function () use ($actionFactory) {
242
+        $this->assertExceptionRaised(Exception::class, function() use ($actionFactory) {
243 243
             $actionFactory->getActions('test', [
244 244
                 'lol',
245 245
             ]);
246 246
         });
247 247
     
248
-        $this->assertExceptionRaised(LogicException::class, function () use ($actionFactory) {
248
+        $this->assertExceptionRaised(LogicException::class, function() use ($actionFactory) {
249 249
             $actionFactory->getActions('test', [
250 250
                 'actions' => [
251 251
                     'my-action' => [],
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Tests/AdminBundle/Admin/Registry/RegistryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $registry->add($admin);
23 23
 
24 24
         // an exception SHOULD be thrown if an Admin with the same has already been registered
25
-        $this->assertExceptionRaised(Exception::class, function () use ($registry, $admin) {
25
+        $this->assertExceptionRaised(Exception::class, function() use ($registry, $admin) {
26 26
             $registry->add($admin);
27 27
         });
28 28
     
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Tests/AdminBundle/Admin/AdminTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -419,7 +419,7 @@
 block discarded – undo
419 419
         $authorizationChecker
420 420
             ->expects($this->exactly(2))
421 421
             ->method('isGranted')
422
-            ->willReturnCallback(function () use (&$i) {
422
+            ->willReturnCallback(function() use (&$i) {
423 423
                 $i++;
424 424
     
425 425
                 return $i <= 1;
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Tests/AdminBundle/Field/ArrayFieldTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,15 +48,15 @@
 block discarded – undo
48 48
     {
49 49
         $arrayField = new ArrayField('my-field');
50 50
         
51
-        $this->assertExceptionRaised(\Exception::class, function () use ($arrayField) {
51
+        $this->assertExceptionRaised(\Exception::class, function() use ($arrayField) {
52 52
             $arrayField->render('a string');
53 53
         });
54 54
         
55
-        $this->assertExceptionRaised(\Exception::class, function () use ($arrayField) {
55
+        $this->assertExceptionRaised(\Exception::class, function() use ($arrayField) {
56 56
             $arrayField->render(12);
57 57
         });
58 58
     
59
-        $this->assertExceptionRaised(\Exception::class, function () use ($arrayField) {
59
+        $this->assertExceptionRaised(\Exception::class, function() use ($arrayField) {
60 60
             $arrayField->render(new stdClass());
61 61
         });
62 62
     }
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Tests/AdminBundle/Field/DateTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     {
27 27
         $linkField = new Date('my-field');
28 28
     
29
-        $this->assertExceptionRaised(\Exception::class, function () use ($linkField) {
29
+        $this->assertExceptionRaised(\Exception::class, function() use ($linkField) {
30 30
             $linkField->render('2017-10-05');
31 31
         });
32 32
     }
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Tests/AdminBundle/Field/Factory/FieldFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         $configurationFactory
48 48
             ->expects($this->once())
49 49
             ->method('create')
50
-            ->willReturnCallback(function ($field, $configuration) use ($actionConfiguration, $fieldConfiguration) {
50
+            ->willReturnCallback(function($field, $configuration) use ($actionConfiguration, $fieldConfiguration) {
51 51
                 $this->assertInstanceOf(StringField::class, $field);
52 52
                 $this->assertEquals([
53 53
                     'length' => 200,
Please login to merge, or discard this patch.
Tests/AdminBundle/Doctrine/Repository/DoctrineRepositoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         
55 55
         $repository = new FakeRepository($entityManager, $metadata, TestEntity::class);
56 56
     
57
-        $this->assertExceptionRaised(\LogicException::class, function () use ($repository, $entity) {
57
+        $this->assertExceptionRaised(\LogicException::class, function() use ($repository, $entity) {
58 58
             $repository->save($entity);
59 59
         });
60 60
     }
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         
104 104
         $repository = new FakeRepository($entityManager, $metadata, TestEntity::class);
105 105
         
106
-        $this->assertExceptionRaised(\LogicException::class, function () use ($repository, $entity) {
106
+        $this->assertExceptionRaised(\LogicException::class, function() use ($repository, $entity) {
107 107
             $repository->delete($entity);
108 108
         });
109 109
     }
Please login to merge, or discard this patch.