Test Setup Failed
Push — master ( 568f60...80f464 )
by
unknown
03:06
created
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/OpportunityRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             $qb->setParameter(':organization', $organization);
69 69
         }
70 70
 
71
-        return (bool) $qb->getQuery()->getSingleScalarResult();
71
+        return (bool)$qb->getQuery()->getSingleScalarResult();
72 72
     }
73 73
 
74 74
     /**
@@ -781,7 +781,7 @@  discard block
 block discarded – undo
781 781
         $alias = 'o',
782 782
         array $excludedStatuses = ['lost', 'won']
783 783
     ) {
784
-        $qb     = $this->createQueryBuilder($alias);
784
+        $qb = $this->createQueryBuilder($alias);
785 785
         $baBaseCurrencyQuery = $qbTransformer->getTransformSelectQuery('budgetAmount', $qb, $alias);
786 786
         $qb->select([
787 787
             sprintf('COUNT(%s.id) as inProgressCount', $alias),
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.
src/Oro/Bundle/SalesBundle/Autocomplete/CustomerSearchHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public function setRoutingHelper(EntityRoutingHelper $routingHelper)
72 72
     {
73
-        $this->routingHelper  = $routingHelper;
73
+        $this->routingHelper = $routingHelper;
74 74
     }
75 75
 
76 76
     /**
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
     protected function decodeTargets($targetsString)
428 428
     {
429 429
         return array_map(
430
-            function ($item) {
430
+            function($item) {
431 431
                 $item['entityClass'] = $this->routingHelper->resolveEntityClass($item['entityClass']);
432 432
 
433 433
                 return $item;
Please login to merge, or discard this patch.
src/Oro/Bundle/SalesBundle/EventListener/DefaultProbabilityListener.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
             return false;
78 78
         }
79 79
 
80
-        $restrictions = (array) $this->restrictionManager->getEntityRestrictions($opportunity);
80
+        $restrictions = (array)$this->restrictionManager->getEntityRestrictions($opportunity);
81 81
 
82 82
         return in_array('probability', array_column($restrictions, 'field'));
83 83
     }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $probabilities = $this->configManager->get(Opportunity::PROBABILITIES_CONFIG_KEY);
93 93
 
94 94
         if (isset($probabilities[$statusId])) {
95
-            return (float) $probabilities[$statusId];
95
+            return (float)$probabilities[$statusId];
96 96
         }
97 97
 
98 98
         return null;
Please login to merge, or discard this patch.
src/Oro/Bundle/SalesBundle/EventListener/B2bCustomerLifetimeListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         /** @var Opportunity[] $entities */
63 63
         $entities = array_filter(
64 64
             $entities,
65
-            function ($entity) {
65
+            function($entity) {
66 66
                 return 'Oro\\Bundle\\SalesBundle\\Entity\\Opportunity' === ClassUtils::getClass($entity);
67 67
             }
68 68
         );
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 
181 181
         if (!empty($changeSet['status'])) {
182 182
             $statusChangeSet = array_map(
183
-                function ($status = null) {
183
+                function($status = null) {
184 184
                     return $status ? $status->getId() : null;
185 185
                 },
186 186
                 $changeSet['status']
Please login to merge, or discard this patch.