Test Setup Failed
Branch master (44bb91)
by Dima
03:54
created
src/Oro/Bundle/AnalyticsBundle/Async/CalculateChannelAnalyticsProcessor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,14 +71,14 @@  discard block
 block discarded – undo
71 71
             return self::REJECT;
72 72
         }
73 73
 
74
-        $jobName = 'oro_analytics:calculate_channel_analytics:'.$body['channel_id'];
74
+        $jobName = 'oro_analytics:calculate_channel_analytics:' . $body['channel_id'];
75 75
         $ownerId = $message->getMessageId();
76 76
 
77 77
         $em = $this->doctrineHelper->getEntityManager(Channel::class);
78 78
 
79 79
         /** @var Channel $channel */
80 80
         $channel = $em->find(Channel::class, $body['channel_id']);
81
-        if (! $channel) {
81
+        if (!$channel) {
82 82
             $this->logger->error(sprintf('Channel not found: %s', $body['channel_id']));
83 83
 
84 84
             return self::REJECT;
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 
99 99
         $em->getConnection()->getConfiguration()->setSQLLogger(null);
100 100
 
101
-        $result = $this->jobRunner->runUnique($ownerId, $jobName, function () use ($channel, $body) {
101
+        $result = $this->jobRunner->runUnique($ownerId, $jobName, function() use ($channel, $body) {
102 102
             $this->analyticsBuilder->build($channel, $body['customer_ids']);
103 103
 
104 104
             return true;
Please login to merge, or discard this patch.
Oro/Bundle/ChannelBundle/Entity/Repository/ChannelRepositoryAbstract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
             ->setParameter('dateStart', $start)
58 58
             ->setParameter('dateEnd', $end);
59 59
 
60
-        return (int) $aclHelper->apply($qb)->getSingleScalarResult();
60
+        return (int)$aclHelper->apply($qb)->getSingleScalarResult();
61 61
     }
62 62
 
63 63
     /**
Please login to merge, or discard this patch.
Oro/Bundle/ChannelBundle/Entity/Repository/LifetimeHistoryRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 
55 55
         $qb->select(sprintf('(%s)', implode(' + ', $selectFields)));
56 56
 
57
-        return (float) $qb->getQuery()->getSingleScalarResult();
57
+        return (float)$qb->getQuery()->getSingleScalarResult();
58 58
     }
59 59
 
60 60
     /**
Please login to merge, or discard this patch.
Entity/Repository/LifetimeValueAverageAggregationRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
         $sqlNames = $this->getSQLColumnNamesArray();
169 169
         $sql      = preg_replace_callback(
170 170
             '/{(\w+)}/',
171
-            function ($matches) use ($sqlNames) {
171
+            function($matches) use ($sqlNames) {
172 172
                 $fieldName = trim(end($matches));
173 173
                 if (isset($sqlNames[$fieldName])) {
174 174
                     return $sqlNames[$fieldName];
Please login to merge, or discard this patch.
src/Oro/Bundle/ChannelBundle/Provider/MetadataProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     protected function getChannelEntities()
78 78
     {
79 79
         $customEntities = $this->configManager->getProvider('extend')->map(
80
-            function (ConfigInterface $extendConfig) {
80
+            function(ConfigInterface $extendConfig) {
81 81
                 $isCustom
82 82
                     = $extendConfig->is('is_extend')
83 83
                     && $extendConfig->get('owner') === ExtendScope::OWNER_CUSTOM
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         $customEntities = array_filter($customEntities);
90 90
 
91 91
         $entities = array_map(
92
-            function ($setting) {
92
+            function($setting) {
93 93
                 return $setting['name'];
94 94
             },
95 95
             $this->settings->getSettings(SettingsProvider::DATA_PATH)
Please login to merge, or discard this patch.
src/Oro/Bundle/ChannelBundle/Provider/StateProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
 
135 135
             $assignedEntityNames = $this->aclHelper->apply($qb)->getArrayResult();
136 136
             $assignedEntityNames = array_map(
137
-                function ($result) {
137
+                function($result) {
138 138
                     return $result['name'];
139 139
                 },
140 140
                 $assignedEntityNames
Please login to merge, or discard this patch.
src/Oro/Bundle/ChannelBundle/Tests/Unit/Form/Type/ChannelTypeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
         $this->builder->expects($this->exactly(4))->method('add')
53 53
             ->will(
54 54
                 $this->returnCallback(
55
-                    function ($filedName, $fieldType) use (&$fields) {
55
+                    function($filedName, $fieldType) use (&$fields) {
56 56
                         $fields[$filedName] = $fieldType;
57 57
                     }
58 58
                 )
Please login to merge, or discard this patch.
Oro/Bundle/ChannelBundle/Tests/Unit/Form/Type/ChannelDatasourceTypeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
             ->method('getLabel')
86 86
             ->willReturn($transportName);
87 87
 
88
-        $registry        = new TypesRegistry();
88
+        $registry = new TypesRegistry();
89 89
         $registry->addChannelType(self::TEST_TYPE, $integrationType);
90 90
         $registry->addTransportType($transportName, self::TEST_TYPE, $transportType);
91 91
 
Please login to merge, or discard this patch.
Bundle/ChannelBundle/Tests/Unit/ImportExport/Helper/ChannelHelperTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
             ->method('query')
71 71
             ->will(
72 72
                 $this->returnCallback(
73
-                    function () use ($integrationId, $expected, $existingIntegrationId, $existingChannelId) {
73
+                    function() use ($integrationId, $expected, $existingIntegrationId, $existingChannelId) {
74 74
                         return $this->createFetchStatementMock(
75 75
                             [['id_0' => $existingChannelId, 'id_1' => $existingIntegrationId]]
76 76
                         );
Please login to merge, or discard this patch.