Completed
Push — master ( 31f2a9...b2a8c8 )
by Maxim
12s
created
examples/companySet.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/');
@@ -48,4 +48,4 @@  discard block
 block discarded – undo
48 48
 
49 49
 $result = $amoCRMClient->exec($leadSet);
50 50
 
51
-echo 'LeadSet result: ' . print_r($result, true);
51
+echo 'LeadSet result: '.print_r($result, true);
Please login to merge, or discard this patch.
src/SessionStorage/FileSessionStorage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function save(Session $session, UserInterface $user)
38 38
     {
39
-        $filename = $this->sessionPath . $user->getAmoCRMLogin();
39
+        $filename = $this->sessionPath.$user->getAmoCRMLogin();
40 40
         if (is_dir($this->sessionPath)) {
41 41
             if (file_put_contents($filename, $session->getId())) {
42 42
                 return;
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public function getActive(UserInterface $user)
55 55
     {
56
-        $filename = $this->sessionPath . $user->getAmoCRMLogin();
56
+        $filename = $this->sessionPath.$user->getAmoCRMLogin();
57 57
         if (file_exists($filename)) {
58 58
             $fileUpdatedDate = new \DateTime(date("F d Y H:i:s.", filemtime($filename)));
59 59
             $currentDate = new \DateTime();
Please login to merge, or discard this patch.
src/Entity/Lead.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@
 block discarded – undo
190 190
             'responsible_user_id' => $this->responsibleUserID,
191 191
             'request_id' => $this->requestID,
192 192
             'custom_fields' => array_map(
193
-                function (AmoEntityInterface $customField) {
193
+                function(AmoEntityInterface $customField) {
194 194
                     return $customField->toAmoArray();
195 195
                 },
196 196
                 $this->customFields
Please login to merge, or discard this patch.
src/Entity/Company.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
             'responsible_user_id' => $this->responsibleUserID,
155 155
             'linked_leads_id' => $this->linkedLeadsID,
156 156
             'custom_fields' => array_map(
157
-                function (AmoEntityInterface $customField) {
157
+                function(AmoEntityInterface $customField) {
158 158
                     return $customField->toAmoArray();
159 159
                 },
160 160
                 $this->customFields
Please login to merge, or discard this patch.