@@ -11,7 +11,7 @@ |
||
11 | 11 | /** |
12 | 12 | * @param string $class |
13 | 13 | */ |
14 | - function ($class) { |
|
14 | + function($class) { |
|
15 | 15 | $prefixes = array( |
16 | 16 | 'DrillCoder\AmoCRM_Wrap\\' => array( |
17 | 17 | __DIR__ . '/src', |
@@ -1023,7 +1023,7 @@ |
||
1023 | 1023 | ); |
1024 | 1024 | } |
1025 | 1025 | $url = "/private/notes/upload.php?ACTION=ADD_NOTE&ELEMENT_ID={$this->id}&ELEMENT_TYPE={$elementType}&fileapi" . |
1026 | - str_replace('.', '', microtime(true)); |
|
1026 | + str_replace('.', '', microtime(true)); |
|
1027 | 1027 | $res = AmoCRM::cUrl($url, $post, null, true); |
1028 | 1028 | if ($res !== null && isset($res->status) && $res->status === 'fail') { |
1029 | 1029 | throw new AmoWrapException('Не удалось добавить файл'); |
@@ -88,7 +88,7 @@ |
||
88 | 88 | |
89 | 89 | $pathToCert = Config::getPathToPeerVerificationCert(); |
90 | 90 | |
91 | - if(!empty($pathToCert)) { |
|
91 | + if (!empty($pathToCert)) { |
|
92 | 92 | curl_setopt($curl, CURLOPT_CAINFO, $pathToCert); |
93 | 93 | } |
94 | 94 |