Test Setup Failed
Branch master (44bb91)
by Dima
03:54
created
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/Lead.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -907,7 +907,7 @@
 block discarded – undo
907 907
      */
908 908
     public function __toString()
909 909
     {
910
-        return (string) $this->getName();
910
+        return (string)$this->getName();
911 911
     }
912 912
 
913 913
     /**
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.
src/Oro/Bundle/SalesBundle/Provider/Opportunity/ForecastProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -49,11 +49,11 @@  discard block
 block discarded – undo
49 49
 
50 50
     /** @var array */
51 51
     protected static $fieldsAuditMap = [
52
-        'status'       => ['old' => 'oldText',       'new' => 'newText'    ],
53
-        'owner'        => ['old' => 'oldText',       'new' => 'newText'    ],
54
-        'closeDate'    => ['old' => 'oldDatetime',   'new' => 'newDatetime'],
55
-        'probability'  => ['old' => 'oldFloat',      'new' => 'newFloat'   ],
56
-        'budgetAmount' => ['old' => 'oldFloat',      'new' => 'newFloat'   ],
52
+        'status'       => ['old' => 'oldText', 'new' => 'newText'],
53
+        'owner'        => ['old' => 'oldText', 'new' => 'newText'],
54
+        'closeDate'    => ['old' => 'oldDatetime', 'new' => 'newDatetime'],
55
+        'probability'  => ['old' => 'oldFloat', 'new' => 'newFloat'],
56
+        'budgetAmount' => ['old' => 'oldFloat', 'new' => 'newFloat'],
57 57
     ];
58 58
 
59 59
     /**
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
     {
356 356
         return array_reduce(
357 357
             $result,
358
-            function ($result, $row) {
358
+            function($result, $row) {
359 359
                 $result['inProgressCount']++;
360 360
                 $result['budgetAmount'] += $row['budgetAmount'];
361 361
                 $result['weightedForecast'] += $row['budgetAmount'] * $row['probability'];
Please login to merge, or discard this patch.
Bundle/SalesBundle/Provider/Opportunity/DisplaySettingsConfigProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,6 +24,6 @@
 block discarded – undo
24 24
      */
25 25
     public function isFeatureEnabled()
26 26
     {
27
-        return (bool) $this->configManager->get(self::CONFIG_DISPLAY_RELEVANT_DATA);
27
+        return (bool)$this->configManager->get(self::CONFIG_DISPLAY_RELEVANT_DATA);
28 28
     }
29 29
 }
Please login to merge, or discard this patch.