@@ -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 | } |
@@ -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 | } |
@@ -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; |