@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | $exchange->type = $_GET['type']; |
35 | 35 | $exchange->session = session_id(); |
36 | 36 | $exchange->save(); |
37 | - $exchange->path = App::$cur->path . '/tmp/Exchange1c/' . date('Y-m-d') . '/' . $exchange->id; |
|
37 | + $exchange->path = App::$cur->path.'/tmp/Exchange1c/'.date('Y-m-d').'/'.$exchange->id; |
|
38 | 38 | $exchange->save(); |
39 | 39 | } |
40 | 40 | |
@@ -45,10 +45,10 @@ discard block |
||
45 | 45 | $log->status = 'process'; |
46 | 46 | $log->query = json_encode($_GET); |
47 | 47 | $log->save(); |
48 | - $modeClass = 'Exchange1c\Mode\\' . ucfirst(strtolower($_GET['mode'])); |
|
48 | + $modeClass = 'Exchange1c\Mode\\'.ucfirst(strtolower($_GET['mode'])); |
|
49 | 49 | if (!class_exists($modeClass)) { |
50 | 50 | $log->status = 'failure'; |
51 | - $log->info = 'mode class ' . $modeClass . ' not found'; |
|
51 | + $log->info = 'mode class '.$modeClass.' not found'; |
|
52 | 52 | $log->date_end = date('Y-m-d H:i:s'); |
53 | 53 | $log->save(); |
54 | 54 | } |
@@ -24,16 +24,16 @@ |
||
24 | 24 | |
25 | 25 | if (strpos($_GET['filename'], '/') !== false) { |
26 | 26 | $subDir = substr($_GET['filename'], 0, strrpos($_GET['filename'], "/") + 1); |
27 | - \Tools::createDir($dir . '/' . $subDir); |
|
27 | + \Tools::createDir($dir.'/'.$subDir); |
|
28 | 28 | } |
29 | 29 | $status = 'success'; |
30 | 30 | $text = ''; |
31 | - if (false === file_put_contents($dir . '/' . $_GET['filename'], file_get_contents("php://input"))) { |
|
31 | + if (false === file_put_contents($dir.'/'.$_GET['filename'], file_get_contents("php://input"))) { |
|
32 | 32 | $status = 'failure'; |
33 | - $text = 'Fail on save file: ' . $_GET['filename']; |
|
33 | + $text = 'Fail on save file: '.$_GET['filename']; |
|
34 | 34 | } |
35 | 35 | if (strpos($_GET['filename'], '1cbitrix') !== false) { |
36 | - $data = new \SimpleXMLElement(file_get_contents($dir . '/' . $_GET['filename'])); |
|
36 | + $data = new \SimpleXMLElement(file_get_contents($dir.'/'.$_GET['filename'])); |
|
37 | 37 | $orders = new \Exchange1c\Parser\Orders($data); |
38 | 38 | $orders->process(); |
39 | 39 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | public function process() |
17 | 17 | { |
18 | 18 | $_SESSION['auth'] = true; |
19 | - \App::$cur->exchange1c->response('success', session_name() . "\n" . session_id(), false); |
|
19 | + \App::$cur->exchange1c->response('success', session_name()."\n".session_id(), false); |
|
20 | 20 | $this->end(); |
21 | 21 | } |
22 | 22 |
@@ -25,7 +25,7 @@ |
||
25 | 25 | |
26 | 26 | header("Content-Type: text/xml"); |
27 | 27 | header("Expires: Thu, 19 Feb 1998 13:24:18 GMT"); |
28 | - header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); |
|
28 | + header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); |
|
29 | 29 | header("Cache-Control: no-cache, must-revalidate"); |
30 | 30 | header("Cache-Control: post-check=0,pre-check=0"); |
31 | 31 | header("Cache-Control: max-age=0"); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | { |
16 | 16 | public function process() |
17 | 17 | { |
18 | - \App::$cur->Migrations->startMigration(1, strpos($_GET['filename'], 'import') !== false ? 1 : 2, $this->exchange->path . '/' . $_GET['filename']); |
|
18 | + \App::$cur->Migrations->startMigration(1, strpos($_GET['filename'], 'import') !== false ? 1 : 2, $this->exchange->path.'/'.$_GET['filename']); |
|
19 | 19 | echo 'success'; |
20 | 20 | $this->end(); |
21 | 21 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | public function process() |
17 | 17 | { |
18 | 18 | echo "zip=no\n"; |
19 | - echo 'file_limit=' . \Tools::toBytes(ini_get('post_max_size')); |
|
19 | + echo 'file_limit='.\Tools::toBytes(ini_get('post_max_size')); |
|
20 | 20 | $this->end(); |
21 | 21 | } |
22 | 22 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | $modelName = $item->model; |
16 | 16 | $relItem = $modelName::get($item->$col); |
17 | 17 | if ($relItem) { |
18 | - return "<a href='/admin/" . str_replace('\\', '/view/', $modelName) . "/" . $item->$col . "'>" . $relItem->name() . "</a>"; |
|
18 | + return "<a href='/admin/".str_replace('\\', '/view/', $modelName)."/".$item->$col."'>".$relItem->name()."</a>"; |
|
19 | 19 | } |
20 | 20 | return 'Ресурс удален'; |
21 | 21 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | echo 'Чат не найден'; |
12 | 12 | return; |
13 | 13 | } |
14 | -$id = 'chat-' . Tools::randomString(); |
|
14 | +$id = 'chat-'.Tools::randomString(); |
|
15 | 15 | $msgTemplate = '<div class="chats-chat-message"><b title="message-date_create user-fullName">user-firstName</b>: message-text</div>'; |
16 | 16 | $events = $chat->events(['order' => ['date_create', 'DESC'], 'key' => false]); |
17 | 17 | $lastDate = $events ? $events[0]->date_create : 0; |
@@ -28,7 +28,7 @@ |
||
28 | 28 | { |
29 | 29 | $data['secret'] = $this->config['secret']; |
30 | 30 | $data['response'] = $gResponse; |
31 | - $response = file_get_contents('https://www.google.com/recaptcha/api/siteverify?' . http_build_query($data)); |
|
31 | + $response = file_get_contents('https://www.google.com/recaptcha/api/siteverify?'.http_build_query($data)); |
|
32 | 32 | if ($response) { |
33 | 33 | return json_decode($response); |
34 | 34 | } |