Test Setup Failed
Push — master ( f7d5f4...1c10a6 )
by
unknown
11:44 queued 07:40
created
src/Oro/Bundle/TranslationBundle/Tests/Unit/Translation/TranslatorTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
         $loader = $this->createMock(LoaderInterface::class);
205 205
         $loader->expects($this->any())
206 206
             ->method('load')
207
-            ->willReturnCallback(function ($resource, $locale, $domain) use ($messages) {
207
+            ->willReturnCallback(function($resource, $locale, $domain) use ($messages) {
208 208
                 return $this->getCatalogue($locale, $messages[$locale]);
209 209
             });
210 210
 
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
             ->willReturn($strategy);
227 227
         $strategyProvider->expects($this->any())
228 228
             ->method('getFallbackLocales')
229
-            ->willReturnCallback(function ($strategy, $loc) use ($locale, $fallbackLocales) {
229
+            ->willReturnCallback(function($strategy, $loc) use ($locale, $fallbackLocales) {
230 230
                 if ($loc === $locale) {
231 231
                     return $fallbackLocales;
232 232
                 }
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
         $strategyProvider->expects($this->any())
413 413
             ->method('getFallbackLocales')
414 414
             ->with($strategy)
415
-            ->willReturnCallback(function ($strategy, $loc) use ($locale, $fallbackLocales) {
415
+            ->willReturnCallback(function($strategy, $loc) use ($locale, $fallbackLocales) {
416 416
                 if ($loc === $locale) {
417 417
                     return $fallbackLocales;
418 418
                 }
Please login to merge, or discard this patch.
src/Oro/Bundle/TranslationBundle/Translation/Translator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -236,7 +236,7 @@
 block discarded – undo
236 236
             [
237 237
                 'cache_dir' => $tmpDir,
238 238
                 'resource_files' => array_map(
239
-                    function (array $localeResources) {
239
+                    function(array $localeResources) {
240 240
                         return array_unique($localeResources);
241 241
                     },
242 242
                     $this->resourceFiles
Please login to merge, or discard this patch.
EntityExtendBundle/Migrations/Schema/v1_3/ChangeEnumIdentityQuery.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
             return;
46 46
         }
47 47
 
48
-        $enumEntities  = $this->getEnumEntitiesWithFields($logger, $enumEntityIds);
48
+        $enumEntities = $this->getEnumEntitiesWithFields($logger, $enumEntityIds);
49 49
 
50 50
         $this->processChange($logger, $enumEntities, $dryRun);
51 51
     }
Please login to merge, or discard this patch.
Migrations/Schema/v1_1/AdjustRelationKeyAndIsExtendForFieldQuery.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     {
56 56
         $classNames = $this->getAllConfigurableEntities($logger);
57 57
         foreach ($classNames as $className) {
58
-            $fieldConfigs        = $this->loadFieldConfigs($logger, $className);
58
+            $fieldConfigs = $this->loadFieldConfigs($logger, $className);
59 59
             foreach ($fieldConfigs as $fieldConfig) {
60 60
                 $data = $fieldConfig['data'];
61 61
                 if (!isset($data['extend'])) {
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      */
119 119
     protected function loadFieldConfigs(LoggerInterface $logger, $className)
120 120
     {
121
-        $sql    = 'SELECT fc.id, fc.type, fc.field_name, fc.data'
121
+        $sql = 'SELECT fc.id, fc.type, fc.field_name, fc.data'
122 122
             . ' FROM oro_entity_config ec'
123 123
             . ' INNER JOIN oro_entity_config_field fc ON fc.entity_id = ec.id'
124 124
             . ' WHERE ec.class_name = :class';
Please login to merge, or discard this patch.
EntityExtendBundle/Migrations/Schema/v1_5/FixAssociationLabelsQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@
 block discarded – undo
220 220
      */
221 221
     protected function loadAssociationFieldConfigs(LoggerInterface $logger)
222 222
     {
223
-        $sql    = 'SELECT fc.id, ec.class_name, fc.field_name, fc.type, fc.data'
223
+        $sql = 'SELECT fc.id, ec.class_name, fc.field_name, fc.type, fc.data'
224 224
             . ' FROM oro_entity_config ec'
225 225
             . ' INNER JOIN oro_entity_config_field fc ON fc.entity_id = ec.id'
226 226
             . ' WHERE fc.type IN (:types)';
Please login to merge, or discard this patch.
src/Oro/Bundle/SearchBundle/Engine/ObjectMapper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
         return array_filter(
91 91
             $entities,
92
-            function ($entityName) use ($modeFilter, $self) {
92
+            function($entityName) use ($modeFilter, $self) {
93 93
                 $mode = $self->getEntityModeConfig($entityName);
94 94
 
95 95
                 return is_array($modeFilter) ? in_array($mode, $modeFilter, true) : $mode === $modeFilter;
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         if ($mode !== Mode::NORMAL) {
144 144
             return array_filter(
145 145
                 $this->getEntities(),
146
-                function ($className) use ($entityName) {
146
+                function($className) use ($entityName) {
147 147
                     return is_subclass_of($className, $entityName);
148 148
                 }
149 149
             );
Please login to merge, or discard this patch.
src/Oro/Bundle/SearchBundle/Engine/Orm/PdoPgsql.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -269,7 +269,7 @@
 block discarded – undo
269 269
         $joinAlias = $this->getJoinAlias(Query::TYPE_TEXT, $index);
270 270
 
271 271
         $qb->addSelect(sprintf('TsRank(%s.value, :quotedValue%s) as rankField%s', $joinAlias, $index, $index))
272
-           ->addOrderBy(sprintf('rankField%s', $index), Criteria::DESC);
272
+            ->addOrderBy(sprintf('rankField%s', $index), Criteria::DESC);
273 273
 
274 274
         $parameter = $qb->getParameter(sprintf('value%s', $index));
275 275
         $quotedValue = sprintf('\'%s\'', $parameter->getValue());
Please login to merge, or discard this patch.
src/Oro/Bundle/SearchBundle/Datagrid/Filter/SearchEntityFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         /** @var Collection $values */
77 77
         $values = $data['value'];
78 78
         $values = $values->map(
79
-            function ($entity) {
79
+            function($entity) {
80 80
                 return $this->doctrineHelper->getSingleEntityIdentifier($entity, false);
81 81
             }
82 82
         );
Please login to merge, or discard this patch.
src/Oro/Bundle/SearchBundle/Tests/Unit/Engine/ObjectMapperTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
                     'name'            => 'products',
56 56
                     'relation_type'   => 'one-to-many',
57 57
                     'relation_fields' => [
58
-                        [   // test that 'target_fields' is set to ['products']
58
+                        [// test that 'target_fields' is set to ['products']
59 59
                             'name'        => 'name',
60 60
                             'target_type' => 'text',
61 61
                         ],
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                             'name'            => 'categories',
64 64
                             'relation_type'   => 'one-to-many',
65 65
                             'relation_fields' => [
66
-                                [   // test that 'target_fields' is set to ['categories']
66
+                                [// test that 'target_fields' is set to ['categories']
67 67
                                     'name'        => 'name',
68 68
                                     'target_type' => 'text',
69 69
                                 ],
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                     'target_type'   => 'decimal',
112 112
                     'target_fields' => ['price']
113 113
                 ],
114
-                [   // test that 'target_fields' is set to ['count']
114
+                [// test that 'target_fields' is set to ['count']
115 115
                     'name'        => 'count',
116 116
                     'target_type' => 'integer',
117 117
                 ],
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
                     'name'            => 'products',
140 140
                     'relation_type'   => 'many-to-many',
141 141
                     'relation_fields' => [
142
-                        [   // test that 'target_fields' is set to ['products']
142
+                        [// test that 'target_fields' is set to ['products']
143 143
                             'name'        => 'name',
144 144
                             'target_type' => 'text',
145 145
                         ],
@@ -189,14 +189,14 @@  discard block
 block discarded – undo
189 189
 
190 190
         $this->dispatcher = $this->createMock(EventDispatcherInterface::class);
191 191
 
192
-        $this->mapperProvider  = new SearchMappingProvider($this->dispatcher);
192
+        $this->mapperProvider = new SearchMappingProvider($this->dispatcher);
193 193
         $this->mapperProvider->setMappingConfig($this->mappingConfig);
194 194
 
195 195
         $this->htmlTagHelper = $this->createMock(HtmlTagHelper::class);
196 196
         $this->htmlTagHelper->expects($this->any())
197 197
             ->method('stripTags')
198 198
             ->willReturnCallback(
199
-                function ($value) {
199
+                function($value) {
200 200
                     return trim(strip_tags($value));
201 201
                 }
202 202
             );
Please login to merge, or discard this patch.