@@ -16,11 +16,11 @@ |
||
| 16 | 16 | public static $cols = [ |
| 17 | 17 | 'name' => ['type' => 'text'], |
| 18 | 18 | 'code' => ['type' => 'text'], |
| 19 | - 'message' => ['type' => 'dataManager','relation'=>'messages'], |
|
| 19 | + 'message' => ['type' => 'dataManager', 'relation'=>'messages'], |
|
| 20 | 20 | ]; |
| 21 | 21 | public static $dataManagers = [ |
| 22 | 22 | 'manager' => [ |
| 23 | - 'cols' => ['name', 'code','message'] |
|
| 23 | + 'cols' => ['name', 'code', 'message'] |
|
| 24 | 24 | ] |
| 25 | 25 | ]; |
| 26 | 26 | public static $forms = [ |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | if (!empty($alias)) { |
| 9 | 9 | $slider = Sliders\Slider::get($alias, 'alias'); |
| 10 | 10 | } |
| 11 | -if(empty($slider)){ |
|
| 11 | +if (empty($slider)) { |
|
| 12 | 12 | echo 'Slider not found'; |
| 13 | 13 | return; |
| 14 | 14 | } |
@@ -14,13 +14,13 @@ |
||
| 14 | 14 | \App::$cur->view->customAsset('js', '/static/moduleAsset/UserForms/js/formCatcher.js'); |
| 15 | 15 | if (!empty($_POST['UserForms'])) { |
| 16 | 16 | foreach ($_POST['UserForms'] as $form_id => $inputs) { |
| 17 | - $form = \UserForms\Form::get((int)$form_id); |
|
| 17 | + $form = \UserForms\Form::get((int) $form_id); |
|
| 18 | 18 | if (!$form) { |
| 19 | 19 | continue; |
| 20 | 20 | } |
| 21 | 21 | $formRecive = new \UserForms\Recive(); |
| 22 | - $formRecive->user_id = (int)\Users\User::$cur->id; |
|
| 23 | - $formRecive->form_id = (int)$form_id; |
|
| 22 | + $formRecive->user_id = (int) \Users\User::$cur->id; |
|
| 23 | + $formRecive->form_id = (int) $form_id; |
|
| 24 | 24 | $data = []; |
| 25 | 25 | $error = false; |
| 26 | 26 | foreach ($form->inputs as $input) { |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | $query = \App::$cur->db->newQuery(); |
| 29 | 29 | $query->operation = 'select'; |
| 30 | 30 | $query->table = \Exchange1c\Exchange::table(); |
| 31 | - $query->cols = \Exchange1c\Exchange::index().','.\Exchange1c\Exchange::colPrefix() . 'path'; |
|
| 31 | + $query->cols = \Exchange1c\Exchange::index() . ',' . \Exchange1c\Exchange::colPrefix() . 'path'; |
|
| 32 | 32 | $queryArr = $query->buildQuery(); |
| 33 | 33 | $queryArr['query'] .= ' where `' . \Exchange1c\Exchange::colPrefix() . 'cleared` = 0 AND `' . \Exchange1c\Exchange::colPrefix() . 'date_create` < NOW() - INTERVAL ' . \App::$cur->exchange1c->config['maxSaveFilesInterval']; |
| 34 | 34 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | \Tools::delDir($exchangeArr[\Exchange1c\Exchange::colPrefix() . 'path']); |
| 38 | 38 | $query = \App::$cur->db->newQuery(); |
| 39 | 39 | $query->where([\Exchange1c\Exchange::index(), $exchangeArr[\Exchange1c\Exchange::index()]]); |
| 40 | - $query->update(\Exchange1c\Exchange::table(),[\Exchange1c\Exchange::colPrefix() . 'cleared' => 1]); |
|
| 40 | + $query->update(\Exchange1c\Exchange::table(), [\Exchange1c\Exchange::colPrefix() . 'cleared' => 1]); |
|
| 41 | 41 | } |
| 42 | 42 | } |
| 43 | 43 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | $type = !empty($colInfo['colParams']['type']) ? $colInfo['colParams']['type'] : 'string'; |
| 20 | 20 | if ($type != 'dataManager') { |
| 21 | 21 | $table->addRow([ |
| 22 | - str_replace(' ',' ',!empty($modelName::$labels[$colName]) ? $modelName::$labels[$colName] : $colName), |
|
| 22 | + str_replace(' ', ' ', !empty($modelName::$labels[$colName]) ? $modelName::$labels[$colName] : $colName), |
|
| 23 | 23 | \Model::resloveTypeValue($item, $colName, true) |
| 24 | 24 | ]); |
| 25 | 25 | } |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | 4 | 'up' => function () { |
| 5 | - \Ecommerce\Delivery\Field\Item::get(1,'data'); |
|
| 5 | + \Ecommerce\Delivery\Field\Item::get(1, 'data'); |
|
| 6 | 6 | $field = new \Ecommerce\Delivery\Field( |
| 7 | 7 | [ |
| 8 | 8 | 'name' => 'Город', |
@@ -513,13 +513,13 @@ |
||
| 513 | 513 | case 'to': |
| 514 | 514 | $relCol = $relations[$rel]['col']; |
| 515 | 515 | static::fixPrefix($relCol); |
| 516 | - $rootModel::$relJoins[$joinName] = [$relations[$rel]['model']::table(), $relations[$rel]['model']::index() . ' = ' . $relCol, 'left','']; |
|
| 516 | + $rootModel::$relJoins[$joinName] = [$relations[$rel]['model']::table(), $relations[$rel]['model']::index() . ' = ' . $relCol, 'left', '']; |
|
| 517 | 517 | break; |
| 518 | 518 | case 'one': |
| 519 | 519 | case 'many': |
| 520 | 520 | $relCol = $relations[$rel]['col']; |
| 521 | 521 | $relations[$rel]['model']::fixPrefix($relCol); |
| 522 | - $rootModel::$relJoins[$joinName] = [$relations[$rel]['model']::table(), static::index() . ' = ' . $relCol, 'left','']; |
|
| 522 | + $rootModel::$relJoins[$joinName] = [$relations[$rel]['model']::table(), static::index() . ' = ' . $relCol, 'left', '']; |
|
| 523 | 523 | break; |
| 524 | 524 | } |
| 525 | 525 | $relations[$rel]['model']::fixPrefix($col, 'key', $rootModel); |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | $form->end('Выбрать'); |
| 15 | 15 | foreach ($rates as $rate) { |
| 16 | 16 | $form = new Ui\Form(); |
| 17 | - $form->id = 'form_'.Tools::randomString(); |
|
| 17 | + $form->id = 'form_' . Tools::randomString(); |
|
| 18 | 18 | $form->method = "GET"; |
| 19 | 19 | $form->begin(); |
| 20 | 20 | ?> |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | <div class="col-md-4"> |
| 3 | 3 | <ul class="nav nav-pills nav-stacked"> |
| 4 | 4 | <?php |
| 5 | - $hiddenId = 'paytype_'.Tools::randomString(); |
|
| 5 | + $hiddenId = 'paytype_' . Tools::randomString(); |
|
| 6 | 6 | foreach ($payTypes as $payType) { |
| 7 | 7 | if ((!empty($_POST['payType']) && $_POST['payType'] == $payType->id) || ($cart->payType && $payType->id == $cart->payType->id)) { |
| 8 | 8 | $checked = 'checked'; |