Test Setup Failed
Push — master ( 795707...861da3 )
by
unknown
03:21
created
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.
src/Oro/Bundle/SalesBundle/Form/Type/OpportunityStatusSelectType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,13 +38,13 @@
 block discarded – undo
38 38
         $probabilities = $this->configManager->get(Opportunity::PROBABILITIES_CONFIG_KEY);
39 39
 
40 40
         // filter out statuses without probability
41
-        $probabilities = array_filter($probabilities, function ($probability) {
41
+        $probabilities = array_filter($probabilities, function($probability) {
42 42
             return null !== $probability;
43 43
         });
44 44
 
45 45
         // expose as percents
46 46
         $probabilities = array_map(
47
-            function ($probability) {
47
+            function($probability) {
48 48
                 return round($probability * 100);
49 49
             },
50 50
             $probabilities
Please login to merge, or discard this patch.
src/Oro/Bundle/SalesBundle/Form/Type/CustomerType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -95,9 +95,9 @@  discard block
 block discarded – undo
95 95
             $this->getCreateCustomersData()
96 96
         );
97 97
 
98
-        $view->vars['parentClass']         = $options['parent_class'];
98
+        $view->vars['parentClass'] = $options['parent_class'];
99 99
         $view->vars['configs']['allowCreateNew'] = ArrayUtil::some(
100
-            function (array $customer) {
100
+            function(array $customer) {
101 101
                 return $customer['className'] === Account::class;
102 102
             },
103 103
             $view->vars['createCustomersData']
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 
151 151
         $resolver->setDefaults(
152 152
             [
153
-                'configs' => function (Options $options, $value) {
153
+                'configs' => function(Options $options, $value) {
154 154
                     return [
155 155
                         'component'               => 'sales-customer',
156 156
                         'renderedPropertyName'    => 'text',
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 
227 227
         $result = [
228 228
             'createCustomersData' => [],
229
-            'hasGridData' => (bool) $this->multiGridProvider->getEntitiesData($customerClasses),
229
+            'hasGridData' => (bool)$this->multiGridProvider->getEntitiesData($customerClasses),
230 230
         ];
231 231
 
232 232
         foreach ($customerClasses as $class) {
Please login to merge, or discard this patch.
src/Oro/Bundle/SalesBundle/Controller/Api/Rest/LeadEmailController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 
61 61
             return new JsonResponse(["id" => ""]);
62 62
         } catch (\Exception $e) {
63
-            return new JsonResponse(["code" => $e->getCode(), "message"=>$e->getMessage() ], $e->getCode());
63
+            return new JsonResponse(["code" => $e->getCode(), "message"=>$e->getMessage()], $e->getCode());
64 64
         }
65 65
     }
66 66
 
Please login to merge, or discard this patch.
Oro/Bundle/SalesBundle/Controller/Api/Rest/B2bCustomerPhoneController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 
124 124
             return new JsonResponse(["id" => ""]);
125 125
         } catch (\Exception $e) {
126
-            return new JsonResponse(["code" => $e->getCode(), "message"=>$e->getMessage() ], $e->getCode());
126
+            return new JsonResponse(["code" => $e->getCode(), "message"=>$e->getMessage()], $e->getCode());
127 127
         }
128 128
     }
129 129
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     protected function getPreparedItem($entity, $resultFields = [])
147 147
     {
148 148
         $result['id']      = $entity->getId();
149
-        $result['owner']   = (string) $entity->getOwner();
149
+        $result['owner']   = (string)$entity->getOwner();
150 150
         $result['phone']   = $entity->getPhone();
151 151
         $result['primary'] = $entity->isPrimary();
152 152
 
Please login to merge, or discard this patch.
src/Oro/Bundle/SalesBundle/Controller/Api/Rest/LeadAddressController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     {
41 41
         /** @var Lead $lead */
42 42
         $lead = $this->getLeadManager()->find($leadId);
43
-        $result  = [];
43
+        $result = [];
44 44
 
45 45
         if (!empty($lead)) {
46 46
             $items = $lead->getAddresses();
Please login to merge, or discard this patch.