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