Test Setup Failed
Push — master ( f7d5f4...1c10a6 )
by
unknown
11:44 queued 07:40
created
Unit/DependencyInjection/Compiler/EntityRepositoryCompilerPassTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -288,28 +288,28 @@
 block discarded – undo
288 288
         $container->expects($this->any())
289 289
             ->method('hasDefinition')
290 290
             ->willReturnCallback(
291
-                function ($id) use ($definitions) {
291
+                function($id) use ($definitions) {
292 292
                     return !empty($definitions[$id]);
293 293
                 }
294 294
             );
295 295
         $container->expects($this->any())
296 296
             ->method('getDefinition')
297 297
             ->willReturnCallback(
298
-                function ($id) use ($definitions) {
298
+                function($id) use ($definitions) {
299 299
                     return $definitions[$id];
300 300
                 }
301 301
             );
302 302
         $container->expects($this->any())
303 303
             ->method('hasParameter')
304 304
             ->willReturnCallback(
305
-                function ($id) use ($parameters) {
305
+                function($id) use ($parameters) {
306 306
                     return !empty($parameters[$id]);
307 307
                 }
308 308
             );
309 309
         $container->expects($this->any())
310 310
             ->method('getParameter')
311 311
             ->willReturnCallback(
312
-                function ($id) use ($parameters) {
312
+                function($id) use ($parameters) {
313 313
                     return $parameters[$id];
314 314
                 }
315 315
             );
Please login to merge, or discard this patch.
EntityBundle/Tests/Unit/Form/Type/EntityFieldFallbackValueTypeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@
 block discarded – undo
160 160
             ->method('isFallbackSupported')
161 161
             ->will(
162 162
                 $this->returnCallback(
163
-                    function ($object, $fieldName, $fallbackId) {
163
+                    function($object, $fieldName, $fallbackId) {
164 164
                         switch ($fallbackId) {
165 165
                             case 'testFallback1':
166 166
                                 return false;
Please login to merge, or discard this patch.
Tests/Unit/EventListener/EntityAliasStructureOptionsListenerTest.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
     {
37 37
         $alias = 'ALIAS';
38 38
         $pluralAlias = 'PLURAL_ALIAS';
39
-        $entityStructure = $this->getEntity(EntityStructure::class, ['className' => \stdClass::class,]);
39
+        $entityStructure = $this->getEntity(EntityStructure::class, ['className' => \stdClass::class, ]);
40 40
 
41 41
         $this->entityAliasResolver
42 42
             ->expects($this->once())
Please login to merge, or discard this patch.
EntityBundle/Tests/Unit/EventListener/ORM/PartialIndexListenerTest.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -98,14 +98,14 @@
 block discarded – undo
98 98
         $classInfo = $this->createMock(ClassMetadataInfo::class);
99 99
         $classInfo->method('getTableName')->willReturn($table);
100 100
         $classInfo->table = [
101
-           'indexes' => [
102
-               $index => [
103
-                   'options' => [
104
-                       'where' => 'some condition',
105
-                       'option2' => 'some value'
106
-                   ]
107
-               ]
108
-           ]
101
+            'indexes' => [
102
+                $index => [
103
+                    'options' => [
104
+                        'where' => 'some condition',
105
+                        'option2' => 'some value'
106
+                    ]
107
+                ]
108
+            ]
109 109
         ];
110 110
 
111 111
         return $classInfo;
Please login to merge, or discard this patch.
src/Oro/Bundle/EntityBundle/Entity/Manager/DictionaryApiEntityManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@
 block discarded – undo
177 177
             if ($representationField !== null) {
178 178
                 $text = $this->propertyAccessor->getValue($result, $representationField);
179 179
             } else {
180
-                $text = implode(' ', array_map(function ($field) use ($result) {
180
+                $text = implode(' ', array_map(function($field) use ($result) {
181 181
                     return $this->propertyAccessor->getValue($result, $field);
182 182
                 }, $searchFields));
183 183
             }
Please login to merge, or discard this patch.
src/Oro/Bundle/EntityBundle/Form/Type/EntityFieldFallbackValueType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
 
84 84
         $builder->addEventListener(
85 85
             FormEvents::PRE_SET_DATA,
86
-            function (FormEvent $event) {
86
+            function(FormEvent $event) {
87 87
                 $form = $event->getForm();
88 88
                 $fallbackId = $event->getData() ? $event->getData()->getFallback() : null;
89 89
 
Please login to merge, or discard this patch.
src/Oro/Bundle/EntityBundle/ORM/OroEntityManager.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
         }
35 35
 
36 36
         if (is_array($conn)) {
37
-            $conn = \Doctrine\DBAL\DriverManager::getConnection($conn, $config, ($eventManager ? : new EventManager()));
37
+            $conn = \Doctrine\DBAL\DriverManager::getConnection($conn, $config, ($eventManager ?: new EventManager()));
38 38
         } elseif ($conn instanceof Connection) {
39 39
             if ($eventManager !== null && $conn->getEventManager() !== $eventManager) {
40 40
                 throw ORMException::mismatchedEventManager();
Please login to merge, or discard this patch.
src/Oro/Bundle/EntityBundle/EventListener/EntityRelationGridListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             $extendFieldConfig->get('target_title'),
68 68
             $extendFieldConfig->get('target_detailed')
69 69
         );
70
-        $targetIdField    = $this->doctrineHelper->getSingleEntityIdentifierFieldName($targetEntityName);
70
+        $targetIdField = $this->doctrineHelper->getSingleEntityIdentifierFieldName($targetEntityName);
71 71
         // build 'assigned' field expression
72 72
         if ($entityId) {
73 73
             $extendEntityConfig = $extendConfigProvider->getConfig($entityClassName);
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             $relationHasInverseSide = $relation['target_field_id'] !== false;
79 79
             if ($relationHasInverseSide) {
80 80
                 $targetFieldName = $relation['target_field_id']->getFieldName();
81
-                $whenExpr       = sprintf(
81
+                $whenExpr = sprintf(
82 82
                     '(:relation %s o.%s OR o.%s IN (:data_in)) AND o.%s NOT IN (:data_not_in)',
83 83
                     $operator,
84 84
                     $targetFieldName,
Please login to merge, or discard this patch.
src/Oro/Bundle/EntityBundle/EventListener/CustomEntityGridListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         $router = $this->router;
56 56
         $route  = $node['route'];
57 57
 
58
-        return function (ResultRecord $record) use ($gridName, $router, $route) {
58
+        return function(ResultRecord $record) use ($gridName, $router, $route) {
59 59
             $datagrid  = $this->getVisitedDatagrid($gridName);
60 60
             $className = $datagrid->getParameters()->get('class_name');
61 61
             return $router->generate(
Please login to merge, or discard this patch.