Completed
Push — master ( ad5736...6d78ae )
by Maxim
03:06
created
src/Method/ContactSet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
         );
53 53
 
54 54
         $request = new Request(
55
-            'POST', $this->getUser()->getAmoCRMDomain() . 'private/api/v2/json/contacts/set', [], $body
55
+            'POST', $this->getUser()->getAmoCRMDomain().'private/api/v2/json/contacts/set', [], $body
56 56
         );
57 57
 
58 58
         return $request;
Please login to merge, or discard this patch.
src/Entity/Contact.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
194 194
             'linked_leads_id' => $this->linkedLeadsID,
195 195
             'company_name' => $this->companyName,
196 196
             'custom_fields' => array_map(
197
-                function (AmoEntityInterface $customField) {
197
+                function(AmoEntityInterface $customField) {
198 198
                     return $customField->toAmoArray();
199 199
                 },
200 200
                 $this->customFields
Please login to merge, or discard this patch.
examples/accounts.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 use mb24dev\AmoCRM\SessionStorage\FileSessionStorage;
9 9
 use mb24dev\AmoCRM\User\User;
10 10
 
11
-require_once __DIR__ . '/../vendor/autoload.php';
11
+require_once __DIR__.'/../vendor/autoload.php';
12 12
 
13 13
 // store strategy for sessions
14 14
 $fileStorage = new FileSessionStorage('/tmp/amocrm/');
@@ -27,4 +27,4 @@  discard block
 block discarded – undo
27 27
     new Method\CurrentAccount($user, new ArrayResponseTransformer())
28 28
 );
29 29
 
30
-echo 'Account: ' . print_r($result, true);
30
+echo 'Account: '.print_r($result, true);
Please login to merge, or discard this patch.
examples/contactSet.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 use mb24dev\AmoCRM\SessionStorage\FileSessionStorage;
11 11
 use mb24dev\AmoCRM\User\User;
12 12
 
13
-require_once __DIR__ . '/../vendor/autoload.php';
13
+require_once __DIR__.'/../vendor/autoload.php';
14 14
 
15 15
 // store strategy for sessions
16 16
 $fileStorage = new FileSessionStorage('/tmp/amocrm/');
@@ -49,4 +49,4 @@  discard block
 block discarded – undo
49 49
 
50 50
 $result = $amoCRMClient->exec($contactSet);
51 51
 
52
-echo 'ContactSet result: ' . print_r($result, true);
52
+echo 'ContactSet result: '.print_r($result, true);
Please login to merge, or discard this patch.