Passed
Pull Request — staging (#7643)
by
unknown
20:17 queued 06:02
created
plugins/MauticCrmBundle/Command/FetchPipedriveDataCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
             }
81 81
 
82 82
             $this->io->text('Pulled '.$result['processed']);
83
-            $this->io->note('Using '.memory_get_peak_usage(1) / 1000000 .' megabytes of ram.');
83
+            $this->io->note('Using '.memory_get_peak_usage(1) / 1000000.' megabytes of ram.');
84 84
 
85 85
             if (!$result['more_items_in_collection']) {
86 86
                 return;
Please login to merge, or discard this patch.
plugins/MauticCrmBundle/Api/HubspotApi.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,6 +108,6 @@
 block discarded – undo
108 108
      */
109 109
     public function createProperty($propertyName, $object = 'properties')
110 110
     {
111
-        return $this->request('v1/contacts/properties', ['name' => $propertyName,  'groupName' => 'contactinformation', 'type' => 'string'], 'POST', $object);
111
+        return $this->request('v1/contacts/properties', ['name' => $propertyName, 'groupName' => 'contactinformation', 'type' => 'string'], 'POST', $object);
112 112
     }
113 113
 }
Please login to merge, or discard this patch.
plugins/MauticCrmBundle/Integration/DynamicsIntegration.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -282,18 +282,18 @@
 block discarded – undo
282 282
                             $type      = 'string';
283 283
                             $fieldType = $field['AttributeTypeName']['Value'];
284 284
                             if (in_array($fieldType, [
285
-                                 'LookupType',
286
-                                 'OwnerType',
287
-                                 'PicklistType',
288
-                                 'StateType',
289
-                                 'StatusType',
290
-                                 'UniqueidentifierType',
285
+                                    'LookupType',
286
+                                    'OwnerType',
287
+                                    'PicklistType',
288
+                                    'StateType',
289
+                                    'StatusType',
290
+                                    'UniqueidentifierType',
291 291
                             ], true)) {
292 292
                                 continue;
293 293
                             } elseif (in_array($fieldType, [
294 294
                                 'DoubleType',
295
-                                 'IntegerType',
296
-                                 'MoneyType',
295
+                                    'IntegerType',
296
+                                    'MoneyType',
297 297
                             ], true)) {
298 298
                                 $type = 'int';
299 299
                             } elseif ('Boolean' === $fieldType) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -761,7 +761,7 @@
 block discarded – undo
761 761
         $integrationEntityRepo = $this->em->getRepository('MauticPluginBundle:IntegrationEntity');
762 762
         $fieldsToUpdateInCrm   = isset($config['update_mautic']) ? array_keys($config['update_mautic'], 0) : [];
763 763
         $leadFields            = array_unique(array_values($config['leadFields']));
764
-        $totalUpdated          = $totalCreated          = $totalErrors          = 0;
764
+        $totalUpdated          = $totalCreated = $totalErrors = 0;
765 765
 
766 766
         if ($key = array_search('mauticContactTimelineLink', $leadFields)) {
767 767
             unset($leadFields[$key]);
Please login to merge, or discard this patch.
plugins/MauticClearbitBundle/Controller/ClearbitController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -264,7 +264,7 @@
 block discarded – undo
264 264
                 return new JsonResponse(
265 265
                     [
266 266
                         'closeModal' => true,
267
-                         'flashes'   => $this->getFlashContent(),
267
+                            'flashes'   => $this->getFlashContent(),
268 268
                     ]
269 269
                 );
270 270
             }
Please login to merge, or discard this patch.
plugins/MauticClearbitBundle/Controller/PublicController.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -84,11 +84,11 @@
 block discarded – undo
84 84
                 $data = [];
85 85
 
86 86
                 foreach ([
87
-                             'facebook' => 'http://www.facebook.com/',
88
-                             'googleplus' => 'http://plus.google.com/',
89
-                             'linkedin' => 'http://www.linkedin.com/',
90
-                             'twitter' => 'http://www.twitter.com/',
91
-                         ] as $p => $u) {
87
+                                'facebook' => 'http://www.facebook.com/',
88
+                                'googleplus' => 'http://plus.google.com/',
89
+                                'linkedin' => 'http://www.linkedin.com/',
90
+                                'twitter' => 'http://www.twitter.com/',
91
+                            ] as $p => $u) {
92 92
                     foreach ($result as $type => $socialProfile) {
93 93
                         if ($type === $p && empty($currFields[$p]['value'])) {
94 94
                             $data[$p] = (array_key_exists('handle', $socialProfile) && $socialProfile['handle']) ? $u.$socialProfile['handle'] : '';
Please login to merge, or discard this patch.
plugins/MauticEmailMarketingBundle/Form/Type/MailchimpType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         ]);
101 101
 
102 102
         if (!empty($error)) {
103
-            $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($error) {
103
+            $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($error) {
104 104
                 $form = $event->getForm();
105 105
 
106 106
                 if ($error) {
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         if (isset($options['form_area']) && $options['form_area'] == 'integration') {
113 113
             $leadFields = $this->factory->getModel('plugin')->getLeadFields();
114 114
 
115
-            $formModifier = function (FormInterface $form, $data) use ($mailchimp, $leadFields) {
115
+            $formModifier = function(FormInterface $form, $data) use ($mailchimp, $leadFields) {
116 116
                 $integrationName = $mailchimp->getName();
117 117
                 $session         = $this->session;
118 118
                 $limit           = $session->get(
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
             };
163 163
 
164 164
             $builder->addEventListener(FormEvents::PRE_SET_DATA,
165
-                function (FormEvent $event) use ($formModifier) {
165
+                function(FormEvent $event) use ($formModifier) {
166 166
                     $data = $event->getData();
167 167
                     if (isset($data['leadFields']['leadFields'])) {
168 168
                         $data['leadFields'] = $data['leadFields']['leadFields'];
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
             );
173 173
 
174 174
             $builder->addEventListener(FormEvents::PRE_SUBMIT,
175
-                function (FormEvent $event) use ($formModifier) {
175
+                function(FormEvent $event) use ($formModifier) {
176 176
                     $data = $event->getData();
177 177
                     if (isset($data['leadFields']['leadFields'])) {
178 178
                         $data['leadFields'] = $data['leadFields']['leadFields'];
Please login to merge, or discard this patch.
plugins/MauticEmailMarketingBundle/Form/Type/IcontactType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
         ]);
97 97
 
98 98
         if (!empty($error)) {
99
-            $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($error) {
99
+            $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($error) {
100 100
                 $form = $event->getForm();
101 101
 
102 102
                 if ($error) {
Please login to merge, or discard this patch.
plugins/MauticEmailMarketingBundle/Integration/MailchimpIntegration.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,8 +71,7 @@
 block discarded – undo
71 71
             [
72 72
                 'username' => 'mautic.integration.keyfield.username',
73 73
                 'password' => 'mautic.integration.keyfield.api',
74
-            ] :
75
-            [
74
+            ] : [
76 75
                 'client_id'     => 'mautic.integration.keyfield.clientid',
77 76
                 'client_secret' => 'mautic.integration.keyfield.clientsecret',
78 77
             ];
Please login to merge, or discard this patch.
plugins/MauticFullContactBundle/Services/FullContact_Base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
 
159 159
         if (null !== $postData) {
160 160
             curl_setopt($connection, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
161
-            curl_setopt($connection, CURLOPT_POSTFIELDS, json_encode($postData, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
161
+            curl_setopt($connection, CURLOPT_POSTFIELDS, json_encode($postData, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES));
162 162
             curl_setopt($connection, CURLOPT_POST, 1);
163 163
         }
164 164
 
Please login to merge, or discard this patch.