Test Setup Failed
Push — master ( 795707...861da3 )
by
unknown
03:21
created
SalesBundle/Tests/Functional/Fixture/LoadCampaignLeadsWidgetFixture.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     public function createLead($createdAt, $id)
36 36
     {
37 37
         $lead = new Lead();
38
-        $lead->setName('name '.$id);
38
+        $lead->setName('name ' . $id);
39 39
         $lead->setOrganization($this->organization);
40 40
         $lead->setCampaign($this->getReference('default_campaign'));
41 41
         $this->em->persist($lead);
Please login to merge, or discard this patch.
Oro/Bundle/SalesBundle/Tests/Unit/Form/Type/LeadToOpportunityTypeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@
 block discarded – undo
178 178
         $probabilityProvider = new ProbabilityProvider($configManager);
179 179
 
180 180
         $defaultStatuses = array_map(
181
-            function ($id) {
181
+            function($id) {
182 182
                 return $this->getOpportunityStatus($id);
183 183
             },
184 184
             $defaultStatuses
Please login to merge, or discard this patch.
src/Oro/Bundle/SalesBundle/Tests/Unit/Form/Type/OpportunityTypeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
 
107 107
         $probabilityProvider = new ProbabilityProvider($configManager);
108 108
 
109
-        $defaultStatuses = array_map(function ($id) {
109
+        $defaultStatuses = array_map(function($id) {
110 110
             return $this->getOpportunityStatus($id);
111 111
         }, $defaultStatuses);
112 112
 
Please login to merge, or discard this patch.
SalesBundle/Tests/Behat/Element/OpportunityProbabilitiesConfigRaw.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
         $this->probability = $row->find('css', 'input[data-name="field__probability"]');
46 46
         self::assertTrue($this->probability->isValid());
47
-        $this->probabilityValue = (int) $this->probability->getValue();
47
+        $this->probabilityValue = (int)$this->probability->getValue();
48 48
         $this->isProbabilityReadOnly = $this->probability->hasAttribute('readonly');
49 49
 
50 50
         $this->default = $row->find('css', 'input[data-name="field__is-default"]');
Please login to merge, or discard this patch.
src/Oro/Bundle/SalesBundle/Migrations/Schema/v1_25/AddLeadAddressTable.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -87,13 +87,13 @@
 block discarded – undo
87 87
     protected function addMigrationQueries(QueryBag $queries)
88 88
     {
89 89
         $sql = 'INSERT INTO orocrm_sales_lead_address(owner_id, region_code, country_code, is_primary, label, street,' .
90
-               ' street2, city, postal_code, organization, region_text, name_prefix, first_name, middle_name,' .
91
-               ' last_name, name_suffix, created, updated)' .
92
-               'SELECT lead.id, addr.region_code, addr.country_code,' .
93
-               ' \'1\', addr.label, addr.street, addr.street2, addr.city, addr.postal_code, addr.organization,' .
94
-               ' addr.region_text, addr.name_prefix, addr.first_name, addr.middle_name, addr.last_name,' .
95
-               ' addr.name_suffix, addr.created, addr.updated FROM oro_address as addr' .
96
-               ' INNER JOIN orocrm_sales_lead as lead on lead.address_id = addr.id';
90
+                ' street2, city, postal_code, organization, region_text, name_prefix, first_name, middle_name,' .
91
+                ' last_name, name_suffix, created, updated)' .
92
+                'SELECT lead.id, addr.region_code, addr.country_code,' .
93
+                ' \'1\', addr.label, addr.street, addr.street2, addr.city, addr.postal_code, addr.organization,' .
94
+                ' addr.region_text, addr.name_prefix, addr.first_name, addr.middle_name, addr.last_name,' .
95
+                ' addr.name_suffix, addr.created, addr.updated FROM oro_address as addr' .
96
+                ' INNER JOIN orocrm_sales_lead as lead on lead.address_id = addr.id';
97 97
 
98 98
         $queries->addPostQuery(new SqlMigrationQuery($sql));
99 99
     }
Please login to merge, or discard this patch.
src/Oro/Bundle/SalesBundle/Migrations/Schema/v1_25_2/FillClosedAtField.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,12 +81,12 @@  discard block
 block discarded – undo
81 81
 ) af1 ON af1.id = af.id
82 82
 GROUP BY object_id, a.id, af.new_text
83 83
 SQL;
84
-        $params         = [
84
+        $params = [
85 85
             'field'       => 'status',
86 86
             'statuses'    => ['Closed Lost', 'Closed Won', 'Lost', 'Won'],
87 87
             'objectClass' => 'Oro\Bundle\SalesBundle\Entity\Opportunity'
88 88
         ];
89
-        $types          = [
89
+        $types = [
90 90
             'field'       => Type::STRING,
91 91
             'statuses'    => Connection::PARAM_STR_ARRAY,
92 92
             'objectClass' => Type::STRING
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
             'objectClass' => 'Oro\Bundle\SalesBundle\Entity\Opportunity',
160 160
             'status_ids'  => [Opportunity::STATUS_WON, Opportunity::STATUS_LOST]
161 161
         ];
162
-        $types  = [
162
+        $types = [
163 163
             'field'       => Type::STRING,
164 164
             'statuses'    => Connection::PARAM_STR_ARRAY,
165 165
             'objectClass' => Type::STRING,
Please login to merge, or discard this patch.
SalesBundle/Migrations/Schema/v1_31/Query/MigrateB2bCustomersQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      */
52 52
     protected function doExecute(LoggerInterface $logger, $dryRun = false)
53 53
     {
54
-        $query = 'SELECT id, name, user_owner_id, organization_id, name, createdAt, updatedAt '.
54
+        $query = 'SELECT id, name, user_owner_id, organization_id, name, createdAt, updatedAt ' .
55 55
             'FROM orocrm_sales_b2bcustomer WHERE account_id IS NULL';
56 56
         $customersWithoutAccount = $this->connection->fetchAll($query);
57 57
         $serializedDataColumnExists = $this->schema->getTable('orocrm_account')->hasColumn('serialized_data');
Please login to merge, or discard this patch.
SalesBundle/Migrations/Schema/v1_31/UpdateInheritanceActivityTargets.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 
70 70
         $newValue = array_filter(
71 71
             $inheritanceTargets,
72
-            function ($inheritanceTarget) {
72
+            function($inheritanceTarget) {
73 73
                 return $inheritanceTarget['target'] !== Opportunity::class;
74 74
             }
75 75
         );
Please login to merge, or discard this patch.
src/Oro/Bundle/SalesBundle/Migrations/Schema/v1_25_4/FixReportsQuery.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
             $isChanged = true;
227 227
             $value = $this->filterValue($filter);
228 228
             $stringType = isset($filter['criterion']['data']['type'])
229
-                ? (int) $filter['criterion']['data']['type']
229
+                ? (int)$filter['criterion']['data']['type']
230 230
                 : null;
231 231
             // If string operator expects operand to be array
232 232
             // parse value off the db representation
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
         }
271 271
 
272 272
         $search = ArrayUtil::find(
273
-            function ($column) use ($config, $key) {
273
+            function($column) use ($config, $key) {
274 274
                 return preg_match(sprintf('/%s$/', preg_quote($column)), $config[$key]);
275 275
             },
276 276
             array_keys($this->fixes['removedFields'])
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
         }
334 334
 
335 335
         return ArrayUtil::some(
336
-            function ($column) use ($filter) {
336
+            function($column) use ($filter) {
337 337
                 return preg_match(sprintf('/%s$/', preg_quote($column)), $filter['columnName']);
338 338
             },
339 339
             $this->fixes['chainFilters']
Please login to merge, or discard this patch.