Completed
Push — refonte ( 994918...f7c861 )
by Arnaud
02:21
created
src/Bridge/Doctrine/ORM/DataProvider/ORMDataProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
         if ('pagerfanta' === $configuration->getParameter('pager')) {
70 70
             $pageParameter = $configuration->getParameter('page_parameter');
71 71
             $request = $this->requestStack->getCurrentRequest();
72
-            $page = (int)$request->get($pageParameter, 1);
72
+            $page = (int) $request->get($pageParameter, 1);
73 73
 
74 74
             $adapter = new DoctrineORMAdapter($queryBuilder);
75 75
             $pager = new Pagerfanta($adapter);
Please login to merge, or discard this patch.
tests/AdminBundle/Event/Subscriber/AdminSubscriberTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
         $event = new AdminEvent($admin, $request);
108 108
 
109
-        $this->assertExceptionRaised(Exception::class, function () use ($subscriber, $event) {
109
+        $this->assertExceptionRaised(Exception::class, function() use ($subscriber, $event) {
110 110
             $subscriber->handleRequest($event);
111 111
         });
112 112
     }
@@ -518,7 +518,7 @@  discard block
 block discarded – undo
518 518
         $request = new Request();
519 519
         $event = new EntityEvent($admin, $request);
520 520
 
521
-        $this->assertExceptionRaised(Exception::class, function () use ($subscriber, $event) {
521
+        $this->assertExceptionRaised(Exception::class, function() use ($subscriber, $event) {
522 522
             $subscriber->loadEntities($event);
523 523
         });
524 524
     }
Please login to merge, or discard this patch.
tests/AdminBundle/Factory/ActionFactoryTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $configurationFactory
47 47
             ->expects($this->once())
48 48
             ->method('createActionConfiguration')
49
-            ->with('list',  [], 'tauntaun', $adminConfiguration)
49
+            ->with('list', [], 'tauntaun', $adminConfiguration)
50 50
             ->willReturn($actionConfiguration)
51 51
         ;
52 52
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             ])
82 82
         ;
83 83
 
84
-        $this->assertExceptionRaised(Exception::class, function () use ($factory, $adminConfiguration) {
84
+        $this->assertExceptionRaised(Exception::class, function() use ($factory, $adminConfiguration) {
85 85
             $factory->create('list', 'tauntaun', $adminConfiguration);
86 86
         });
87 87
     }
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         $configurationFactory
118 118
             ->expects($this->once())
119 119
             ->method('createActionConfiguration')
120
-            ->with('list',  [], 'tauntaun', $adminConfiguration)
120
+            ->with('list', [], 'tauntaun', $adminConfiguration)
121 121
             ->willReturn($actionConfiguration)
122 122
         ;
123 123
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
             $configurationFactory
128 128
         );
129 129
 
130
-        $this->assertExceptionRaised(Exception::class, function () use ($factory, $adminConfiguration) {
130
+        $this->assertExceptionRaised(Exception::class, function() use ($factory, $adminConfiguration) {
131 131
             $factory->create('list', 'tauntaun', $adminConfiguration);
132 132
         });
133 133
     }
Please login to merge, or discard this patch.
src/Field/ActionCollectionField.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
                 'template' => '@LAGAdmin/Field/actionCollection.html.twig',
39 39
                 'actions' => [],
40 40
             ])
41
-            ->setNormalizer('actions', function (Options $options, $value) use ($actionConfiguration, $defaultActions) {
41
+            ->setNormalizer('actions', function(Options $options, $value) use ($actionConfiguration, $defaultActions) {
42 42
                 if (!is_array($value) || 0 === count($value)) {
43 43
                     $value = $defaultActions;
44 44
                 }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
                 '_self',
110 110
                 '_blank',
111 111
             ])
112
-            ->setNormalizer('route', function (Options $options, $value) use ($actionConfiguration) {
112
+            ->setNormalizer('route', function(Options $options, $value) use ($actionConfiguration) {
113 113
                 // route or url should be defined
114 114
                 if (!$value && !$options->offsetGet('url') && !$options->offsetGet('admin')) {
115 115
                     throw new InvalidOptionsException(
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 
128 128
                 return $value;
129 129
             })
130
-            ->setNormalizer('admin', function (Options $options, $value) {
130
+            ->setNormalizer('admin', function(Options $options, $value) {
131 131
                 // if a Admin is defined, an Action should be defined too
132 132
                 if ($value && !$options->offsetGet('action')) {
133 133
                     throw new InvalidOptionsException(
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 
138 138
                 return $value;
139 139
             })
140
-            ->setNormalizer('parameters', function (Options $options, $values) {
140
+            ->setNormalizer('parameters', function(Options $options, $values) {
141 141
                 $cleanedValues = [];
142 142
 
143 143
                 foreach ($values as $name => $method) {
Please login to merge, or discard this patch.