@@ -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 |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | $cart->warehouse_block = 0; |
71 | 71 | foreach ($cart->cartItems as $cci) { |
72 | 72 | if ($cci->price && $cci->price->offer) { |
73 | - $cci->price->offer->changeWarehouse('-' . (float) $cci->count); |
|
73 | + $cci->price->offer->changeWarehouse('-'.(float) $cci->count); |
|
74 | 74 | } |
75 | 75 | } |
76 | 76 | } |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | foreach ($cart->cartItems as $cartItem) { |
134 | 134 | $isset = false; |
135 | 135 | foreach ($cItems as $key => $cItem) { |
136 | - if (!($cItem['item_id'] == $cartItem->item_id )) { |
|
136 | + if (!($cItem['item_id'] == $cartItem->item_id)) { |
|
137 | 137 | continue; |
138 | 138 | } |
139 | 139 | $isset = true; |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | addToXml($xml, $shop, 'name', \App::$cur->config['site']['name']); |
38 | 38 | addToXml($xml, $shop, 'company', \App::$cur->config['site']['company_name']); |
39 | - addToXml($xml, $shop, 'url', 'http://' . INJI_DOMAIN_NAME); |
|
39 | + addToXml($xml, $shop, 'url', 'http://'.INJI_DOMAIN_NAME); |
|
40 | 40 | |
41 | 41 | $currencies = $xml->createElement('currencies'); |
42 | 42 | $currency = $currencies->appendChild($xml->createElement('currency')); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $offers = $xml->createElement('offers'); |
61 | 61 | foreach (App::$cur->ecommerce->getItems() as $item) { |
62 | 62 | $offer = $offers->appendChild($xml->createElement('offer')); |
63 | - addToXml($xml, $offer, 'url', 'http://' . INJI_DOMAIN_NAME . '/ecommerce/view/' . $item->id); |
|
63 | + addToXml($xml, $offer, 'url', 'http://'.INJI_DOMAIN_NAME.'/ecommerce/view/'.$item->id); |
|
64 | 64 | addToXml($xml, $offer, 'price', $item->getPrice()->price); |
65 | 65 | addToXml($xml, $offer, 'currencyId', 'RUR'); |
66 | 66 | addToXml($xml, $offer, 'categoryId', $item->category_id); |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | header("Content-Type: text/xml"); |
88 | 88 | header("Expires: Thu, 19 Feb 1998 13:24:18 GMT"); |
89 | - header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); |
|
89 | + header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); |
|
90 | 90 | header("Cache-Control: no-cache, must-revalidate"); |
91 | 91 | header("Cache-Control: post-check=0,pre-check=0"); |
92 | 92 | header("Cache-Control: max-age=0"); |
@@ -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 | } |