@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | if (!empty($options['attributes'])) { |
38 | 38 | $attributes = array_merge($attributes, $options['attributes']); |
39 | 39 | } |
40 | -if(!empty($attributes['onchange'])){ |
|
40 | +if (!empty($attributes['onchange'])) { |
|
41 | 41 | unset($attributes['onchange']); |
42 | 42 | } |
43 | 43 | echo Html::el('input', $attributes, '', null); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | <script> |
60 | 60 | inji.onLoad(function () { |
61 | 61 | setTimeout(function () { |
62 | - inji.Ui.autocomplete.bind(inji.get('#<?=$id;?>'), '<?=$options['snippet'];?>', <?=json_encode($options['snippetParams']);?>); |
|
62 | + inji.Ui.autocomplete.bind(inji.get('#<?=$id; ?>'), '<?=$options['snippet']; ?>', <?=json_encode($options['snippetParams']); ?>); |
|
63 | 63 | }, 100); |
64 | 64 | }); |
65 | 65 | </script> |
@@ -180,7 +180,7 @@ |
||
180 | 180 | call_user_func_array(['Tools', 'redirect'], $redirect); |
181 | 181 | } |
182 | 182 | |
183 | - } elseif($cart) { |
|
183 | + } elseif ($cart) { |
|
184 | 184 | $payTypes = $cart->availablePayTypes(); |
185 | 185 | } |
186 | 186 | $this->view->setTitle('Корзина'); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | ignore_user_abort(true); |
16 | 16 | set_time_limit(0); |
17 | 17 | Model::$logging = false; |
18 | - $reExchange = Exchange1c\Exchange::get((int)$_GET['item_pk']); |
|
18 | + $reExchange = Exchange1c\Exchange::get((int) $_GET['item_pk']); |
|
19 | 19 | |
20 | 20 | $exchange = new \Exchange1c\Exchange(); |
21 | 21 | $exchange->type = $reExchange->type; |
@@ -216,7 +216,7 @@ |
||
216 | 216 | |
217 | 217 | $image = self::imgToResource($imagePath); |
218 | 218 | $watermark = self::imgToResource($watermarkPath); |
219 | - if(!$image || !$watermark || !$image['res'] || !$watermark['res']){ |
|
219 | + if (!$image || !$watermark || !$image['res'] || !$watermark['res']) { |
|
220 | 220 | return false; |
221 | 221 | } |
222 | 222 |
@@ -18,15 +18,15 @@ discard block |
||
18 | 18 | |
19 | 19 | public function process() |
20 | 20 | { |
21 | - if($this->log->type=='catalog'){ |
|
21 | + if ($this->log->type == 'catalog') { |
|
22 | 22 | echo "zip=yes\n"; |
23 | 23 | echo 'file_limit=' . \Tools::toBytes(ini_get('upload_max_filesize')); |
24 | - } elseif($this->log->type=='sale'){ |
|
24 | + } elseif ($this->log->type == 'sale') { |
|
25 | 25 | echo "zip=no\n"; |
26 | 26 | } |
27 | - if(!empty($_GET["version"])) |
|
27 | + if (!empty($_GET["version"])) |
|
28 | 28 | { |
29 | - echo $this->log->exchange->session."\n"; |
|
29 | + echo $this->log->exchange->session . "\n"; |
|
30 | 30 | echo "version=2.03"; |
31 | 31 | } |
32 | 32 | $this->end(); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | $query = \App::$cur->db->newQuery(); |
38 | 38 | $query->operation = 'select'; |
39 | 39 | $query->table = \Exchange1c\Exchange::table(); |
40 | - $query->cols = \Exchange1c\Exchange::index().','.\Exchange1c\Exchange::colPrefix() . 'path'; |
|
40 | + $query->cols = \Exchange1c\Exchange::index() . ',' . \Exchange1c\Exchange::colPrefix() . 'path'; |
|
41 | 41 | $queryArr = $query->buildQuery(); |
42 | 42 | $queryArr['query'] .= ' where `' . \Exchange1c\Exchange::colPrefix() . 'cleared` = 0 AND `' . \Exchange1c\Exchange::colPrefix() . 'date_create` < NOW() - INTERVAL ' . \App::$cur->exchange1c->config['maxSaveFilesInterval']; |
43 | 43 | |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | \Tools::delDir($exchangeArr[\Exchange1c\Exchange::colPrefix() . 'path']); |
47 | 47 | $query = \App::$cur->db->newQuery(); |
48 | 48 | $query->where([\Exchange1c\Exchange::index(), $exchangeArr[\Exchange1c\Exchange::index()]]); |
49 | - $query->update(\Exchange1c\Exchange::table(),[\Exchange1c\Exchange::colPrefix() . 'cleared' => 1]); |
|
49 | + $query->update(\Exchange1c\Exchange::table(), [\Exchange1c\Exchange::colPrefix() . 'cleared' => 1]); |
|
50 | 50 | } |
51 | 51 | } |
52 | 52 | } |