@@ -39,7 +39,7 @@ |
||
| 39 | 39 | static $forms = [ |
| 40 | 40 | 'manager' => [ |
| 41 | 41 | 'map' => [ |
| 42 | - ['price', 'currency_id',], |
|
| 42 | + ['price', 'currency_id', ], |
|
| 43 | 43 | ['item_offer_price_type_id', 'item_offer_id'] |
| 44 | 44 | ] |
| 45 | 45 | ]]; |
@@ -6,8 +6,9 @@ |
||
| 6 | 6 | $systemModules = array_slice(scandir(INJI_SYSTEM_DIR . '/modules'), 2); |
| 7 | 7 | foreach ($systemModules as $module) { |
| 8 | 8 | $info = Module::getInfo($module); |
| 9 | - if (!$info || isset($modules[$module])) |
|
| 10 | - continue; |
|
| 9 | + if (!$info || isset($modules[$module])) { |
|
| 10 | + continue; |
|
| 11 | + } |
|
| 11 | 12 | ?> |
| 12 | 13 | <div class ="form-group"> |
| 13 | 14 | <div class="checkbox"> |
@@ -16,8 +16,9 @@ |
||
| 16 | 16 | if (!empty($_POST['UserForms'])) { |
| 17 | 17 | foreach ($_POST['UserForms'] as $form_id => $inputs) { |
| 18 | 18 | $form = \UserForms\Form::get((int) $form_id); |
| 19 | - if (!$form) |
|
| 20 | - continue; |
|
| 19 | + if (!$form) { |
|
| 20 | + continue; |
|
| 21 | + } |
|
| 21 | 22 | $formRecive = new \UserForms\Recive(); |
| 22 | 23 | $formRecive->user_id = (int) \Users\User::$cur->id; |
| 23 | 24 | $formRecive->form_id = (int) $form_id; |
@@ -42,10 +42,11 @@ |
||
| 42 | 42 | <select class="form-control" name = 'user_role_id'> |
| 43 | 43 | <?php |
| 44 | 44 | foreach ($roles as $role) { |
| 45 | - if ($role['role_id'] == $user->user_role_id) |
|
| 46 | - $selected = 'selected = "selected"'; |
|
| 47 | - else |
|
| 48 | - $selected = ''; |
|
| 45 | + if ($role['role_id'] == $user->user_role_id) { |
|
| 46 | + $selected = 'selected = "selected"'; |
|
| 47 | + } else { |
|
| 48 | + $selected = ''; |
|
| 49 | + } |
|
| 49 | 50 | echo "<option {$selected} value = '{$role['role_id']}'>{$role['role_name']}</option>"; |
| 50 | 51 | } |
| 51 | 52 | ?> |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | 'role_id' => ['type' => 'select', 'source' => 'relation', 'relation' => 'role'], |
| 38 | 38 | 'admin_text' => ['type' => 'html'], |
| 39 | 39 | 'activation' => ['type' => 'text'], |
| 40 | - 'blocked' => ['type' => 'bool',], |
|
| 40 | + 'blocked' => ['type' => 'bool', ], |
|
| 41 | 41 | 'date_last_active' => ['type' => 'dateTime'], |
| 42 | 42 | 'date_create' => ['type' => 'dateTime'] |
| 43 | 43 | ]; |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | ] |
| 101 | 101 | ], |
| 102 | 102 | 'map' => [ |
| 103 | - ['login', 'mail',], |
|
| 103 | + ['login', 'mail', ], |
|
| 104 | 104 | ['group_id', 'role_id'], |
| 105 | 105 | ['userSearch', 'blocked'], |
| 106 | 106 | ['pass'], |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | static $forms = [ |
| 46 | 46 | 'manager' => [ |
| 47 | 47 | 'map' => [ |
| 48 | - ['code', 'type',], |
|
| 48 | + ['code', 'type', ], |
|
| 49 | 49 | ['user_id'], |
| 50 | 50 | ['limit', 'count'], |
| 51 | 51 | ] |
@@ -83,6 +83,9 @@ |
||
| 83 | 83 | return null; |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | + /** |
|
| 87 | + * @return string |
|
| 88 | + */ |
|
| 86 | 89 | function colName() |
| 87 | 90 | { |
| 88 | 91 | return "{$this->activeForm->requestFormName}[{$this->activeForm->modelName}][{$this->colName}]"; |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -return function ($step = NULL, $params = []) { |
|
| 3 | +return function($step = NULL, $params = []) { |
|
| 4 | 4 | |
| 5 | 5 | $groups = [ |
| 6 | 6 | [ |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -return function ($step = NULL, $params = []) { |
|
| 3 | +return function ($step = null, $params = []) { |
|
| 4 | 4 | App::$cur->db->createTable('notifications_notification', [ |
| 5 | 5 | 'notification_id' => 'pk', |
| 6 | 6 | 'notification_chanel_id' => 'int(11) UNSIGNED NOT NULL', |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | * |
| 44 | 44 | * @param string $eventName |
| 45 | 45 | * @param string $listenCode |
| 46 | - * @param array|closure $callback |
|
| 46 | + * @param Closure $callback |
|
| 47 | 47 | * @param boolean $save |
| 48 | 48 | */ |
| 49 | 49 | function listen($eventName, $listenCode, $callback, $save = false) |