Completed
Push — refonte ( 64e01a...7173e3 )
by Arnaud
03:31
created
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.
src/LAG/AdminBundle/Tests/AdminBundle/Form/Factory/FormFactoryTest.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
     protected function invalidEntityTest(FormFactory $formFactory, AdminInterface $admin)
47 47
     {
48
-        $this->assertExceptionRaised(Exception::class, function () use ($formFactory, $admin) {
48
+        $this->assertExceptionRaised(Exception::class, function() use ($formFactory, $admin) {
49 49
             $formFactory->create(
50 50
                 TestFormType::class,
51 51
                 [],
Please login to merge, or discard this patch.
Tests/AdminBundle/DataProvider/Factory/DataProviderFactoryTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $factory = new DataProviderFactory($entityManager);
43 43
         $factory->add('a_data_provider', $dataProvider);
44 44
 
45
-        $this->assertExceptionRaised(Exception::class, function () use ($factory, $dataProvider) {
45
+        $this->assertExceptionRaised(Exception::class, function() use ($factory, $dataProvider) {
46 46
             $factory->add('a_data_provider', $dataProvider);
47 47
         });
48 48
     }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
         $factory = new DataProviderFactory($entityManager);
96 96
 
97
-        $this->assertExceptionRaised(Exception::class, function () use ($factory) {
97
+        $this->assertExceptionRaised(Exception::class, function() use ($factory) {
98 98
             $factory->create('MyEntityClass');
99 99
         });
100 100
     }
@@ -108,10 +108,10 @@  discard block
 block discarded – undo
108 108
         $factory->add('a_data_provider', $dataProvider);
109 109
 
110 110
         $this->assertEquals($dataProvider, $factory->get('a_data_provider'));
111
-        $this->assertExceptionRaised(Exception::class, function () use ($factory) {
111
+        $this->assertExceptionRaised(Exception::class, function() use ($factory) {
112 112
             $factory->get('wrong_data_provider');
113 113
         });
114
-        $this->assertExceptionRaised(Exception::class, function () use ($factory) {
114
+        $this->assertExceptionRaised(Exception::class, function() use ($factory) {
115 115
             $factory->get(null, null);
116 116
         });
117 117
     }
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Tests/AdminBundle/Configuration/ConfigurationTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
             'title' => 'Planet Application',
37 37
         ]);
38 38
     
39
-        $this->assertExceptionRaised(LogicException::class, function () use ($configuration) {
39
+        $this->assertExceptionRaised(LogicException::class, function() use ($configuration) {
40 40
             $configuration->setParameters([
41 41
                 'an_other_configuration' => 'value',
42 42
             ]);
Please login to merge, or discard this patch.