@@ -10,7 +10,7 @@ discard block |
||
| 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 |
||
| 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); |
|
@@ -36,7 +36,7 @@ discard block |
||
| 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 |
||
| 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(); |
@@ -190,7 +190,7 @@ |
||
| 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 |
@@ -154,7 +154,7 @@ |
||
| 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 |