Test Setup Failed
Push — master ( 795707...861da3 )
by
unknown
03:21
created
src/Oro/Bundle/MagentoBundle/Datagrid/MagentoDatagridHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         /**
39 39
          * @todo Remove dependency on exact magento channel type in CRM-8153
40 40
          */
41
-        return function (EntityRepository $er) {
41
+        return function(EntityRepository $er) {
42 42
             return $er->createQueryBuilder('c')
43 43
                 ->where('c.type = :type')
44 44
                 ->setParameter('type', MagentoChannelType::TYPE);
Please login to merge, or discard this patch.
Oro/Bundle/MagentoBundle/Async/SyncCartExpirationIntegrationProcessor.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -81,20 +81,20 @@  discard block
 block discarded – undo
81 81
             'integrationId' => null,
82 82
         ], $body);
83 83
 
84
-        if (! $body['integrationId']) {
84
+        if (!$body['integrationId']) {
85 85
             $this->logger->critical('The message invalid. It must have integrationId set');
86 86
 
87 87
             return self::REJECT;
88 88
         }
89 89
 
90 90
         $ownerId = $message->getMessageId();
91
-        $jobName = 'oro_magento:sync_cart_expiration_integration:'.$body['integrationId'];
91
+        $jobName = 'oro_magento:sync_cart_expiration_integration:' . $body['integrationId'];
92 92
 
93 93
         /** @var IntegrationRepository $repository */
94 94
         $repository = $this->doctrine->getRepository(Integration::class);
95 95
         $integration = $repository->getOrLoadById($body['integrationId']);
96 96
 
97
-        if (! $integration || ! $integration->isEnabled()) {
97
+        if (!$integration || !$integration->isEnabled()) {
98 98
             $this->logger->error(
99 99
                 sprintf('The integration should exist and be enabled: %s', $body['integrationId'])
100 100
             );
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             return self::REJECT;
103 103
         }
104 104
 
105
-        if (! is_array($integration->getConnectors()) || ! in_array('cart', $integration->getConnectors())) {
105
+        if (!is_array($integration->getConnectors()) || !in_array('cart', $integration->getConnectors())) {
106 106
             $this->logger->error(
107 107
                 sprintf('The integration should have cart in connectors: %s', $body['integrationId']),
108 108
                 ['integration' => $integration]
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         }
113 113
 
114 114
         try {
115
-            $result = $this->jobRunner->runUnique($ownerId, $jobName, function () use ($integration) {
115
+            $result = $this->jobRunner->runUnique($ownerId, $jobName, function() use ($integration) {
116 116
                 $this->setTemporaryIntegrationToken($integration);
117 117
                 $this->cartExpirationProcessor->process($integration);
118 118
                 return true;
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Async/SyncInitialIntegrationProcessor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
             return self::REJECT;
113 113
         }
114 114
 
115
-        $jobName = 'orocrm_magento:sync_initial_integration:'.$body['integration_id'];
115
+        $jobName = 'orocrm_magento:sync_initial_integration:' . $body['integration_id'];
116 116
         $ownerId = $message->getMessageId();
117 117
 
118 118
         /** @var EntityManagerInterface $em */
@@ -121,14 +121,14 @@  discard block
 block discarded – undo
121 121
 
122 122
         /** @var Integration $integration */
123 123
         $integration = $em->find(Integration::class, $body['integration_id']);
124
-        if (! $integration) {
124
+        if (!$integration) {
125 125
             $this->logger->error(
126 126
                 sprintf('Integration not found: %s', $body['integration_id'])
127 127
             );
128 128
 
129 129
             return self::REJECT;
130 130
         }
131
-        if (! $integration->isEnabled()) {
131
+        if (!$integration->isEnabled()) {
132 132
             $this->logger->error(
133 133
                 sprintf('Integration is not enabled: %s', $body['integration_id'])
134 134
             );
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
             return self::REJECT;
137 137
         }
138 138
 
139
-        $result = $this->jobRunner->runUnique($ownerId, $jobName, function () use ($body, $integration) {
139
+        $result = $this->jobRunner->runUnique($ownerId, $jobName, function() use ($body, $integration) {
140 140
             $enabledListeners = [
141 141
                 'oro_search.index_listener',
142 142
                 'oro_entity.event_listener.entity_modify_created_updated_properties_listener',
Please login to merge, or discard this patch.
src/Oro/Bundle/ContactUsBundle/Tests/Selenium/CreateEmbeddedFormTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function testCreateEmbeddedForm()
19 19
     {
20
-        $title = 'Form_'.mt_rand(10, 99);
20
+        $title = 'Form_' . mt_rand(10, 99);
21 21
 
22 22
         $login = $this->login();
23 23
         /** @var EmbeddedForms $login */
Please login to merge, or discard this patch.
src/Oro/Bundle/ContactUsBundle/Tests/Selenium/FlowContactRequestTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      */
47 47
     public function testFlowContactRequest($email)
48 48
     {
49
-        $feedback    = 'Test feedback_' . mt_rand(10, 99);
49
+        $feedback = 'Test feedback_' . mt_rand(10, 99);
50 50
 
51 51
         $login = $this->login();
52 52
         /** @var ContactRequests $login */
Please login to merge, or discard this patch.
src/Oro/Bundle/ContactUsBundle/Tests/Selenium/ManageEmbeddedFormTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function testCreateEmbeddedForm()
27 27
     {
28
-        $title = 'Form_'.mt_rand(10, 99);
28
+        $title = 'Form_' . mt_rand(10, 99);
29 29
 
30 30
         $login = $this->login();
31 31
         /** @var EmbeddedForms $login */
@@ -48,17 +48,17 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function testSendEmbeddedForm($title = 'asdfasdf')
50 50
     {
51
-        $email = 'Email_'.mt_rand(10, 99).'@mail.com';
51
+        $email = 'Email_' . mt_rand(10, 99) . '@mail.com';
52 52
 
53 53
         $login = $this->login();
54 54
         /** @var EmbeddedForms $login */
55 55
         $login->openEmbeddedForms('Oro\Bundle\EmbeddedFormBundle')
56 56
             ->filterBy('Title', $title)
57 57
             ->open(array($title))
58
-            ->setFirstName('First name_'.mt_rand(10, 99))
59
-            ->setLastName('Last name_'.mt_rand(10, 99))
58
+            ->setFirstName('First name_' . mt_rand(10, 99))
59
+            ->setLastName('Last name_' . mt_rand(10, 99))
60 60
             ->setEmail($email)
61
-            ->setComment('Test comment message '.mt_rand(10, 99))
61
+            ->setComment('Test comment message ' . mt_rand(10, 99))
62 62
             ->submitForm();
63 63
 
64 64
         return $email;
Please login to merge, or discard this patch.
src/Oro/Bundle/SalesBundle/Entity/B2bCustomer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -518,7 +518,7 @@
 block discarded – undo
518 518
      */
519 519
     public function __toString()
520 520
     {
521
-        return (string) $this->getName();
521
+        return (string)$this->getName();
522 522
     }
523 523
 
524 524
     /**
Please login to merge, or discard this patch.
src/Oro/Bundle/SalesBundle/Entity/Repository/LeadRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
     {
126 126
         usort(
127 127
             $rows,
128
-            function ($a, $b) {
128
+            function($a, $b) {
129 129
                 if ($a['itemCount'] === $b['itemCount']) {
130 130
                     return 0;
131 131
                 }
Please login to merge, or discard this patch.
src/Oro/Bundle/SalesBundle/Entity/Opportunity.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -898,7 +898,7 @@
 block discarded – undo
898 898
 
899 899
     public function __toString()
900 900
     {
901
-        return (string) $this->getName();
901
+        return (string)$this->getName();
902 902
     }
903 903
     /**
904 904
      * @ORM\PrePersist
Please login to merge, or discard this patch.