@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (App::$cur->users->config['invites']) { |
|
3 | +if (App::$cur->users->config['invites']) { |
|
4 | 4 | return [ |
5 | 5 | 'name' => 'Мои партнеры', |
6 | 6 | 'fullWidget' => 'Users\cabinet/usersTree' |
@@ -2,7 +2,7 @@ |
||
2 | 2 | <?php |
3 | 3 | $blocked = App::$cur->money->getUserBlocks(); |
4 | 4 | $wallets = App::$cur->money->getUserWallets(); |
5 | -foreach ($wallets as $wallet) { |
|
5 | +foreach ($wallets as $wallet) { |
|
6 | 6 | ?> |
7 | 7 | <b><?= $wallet->showAmount(); ?></b> <?= $wallet->currency->acronym(); ?><br /> |
8 | 8 | <?php |
@@ -1,13 +1,13 @@ discard block |
||
1 | 1 | <?php |
2 | -if (!empty($params[0])) { |
|
2 | +if (!empty($params[0])) { |
|
3 | 3 | $form_id = $params[0]; |
4 | 4 | } |
5 | -if (empty($form_id)) { |
|
5 | +if (empty($form_id)) { |
|
6 | 6 | echo('form not found'); |
7 | 7 | return; |
8 | 8 | } |
9 | 9 | $userForm = \UserForms\Form::get((int) $form_id); |
10 | -if (!$userForm) { |
|
10 | +if (!$userForm) { |
|
11 | 11 | echo('form not found'); |
12 | 12 | return; |
13 | 13 | } |
@@ -15,10 +15,10 @@ discard block |
||
15 | 15 | $form->begin(); |
16 | 16 | ?> |
17 | 17 | <?php |
18 | -if ($userForm->description) { |
|
18 | +if ($userForm->description) { |
|
19 | 19 | echo "<p class = 'text-center'>{$userForm->description}</p>"; |
20 | 20 | } |
21 | -foreach ($userForm->inputs(['order' => ['weight']]) as $input) { |
|
21 | +foreach ($userForm->inputs(['order' => ['weight']]) as $input) { |
|
22 | 22 | $form->input($input->type, 'UserForms[' . (int) $form_id . '][input' . $input->id . ']', $input->label, ['required' => $input->required]); |
23 | 23 | } |
24 | 24 | ?> |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | echo('form not found'); |
7 | 7 | return; |
8 | 8 | } |
9 | -$userForm = \UserForms\Form::get((int)$form_id); |
|
9 | +$userForm = \UserForms\Form::get((int) $form_id); |
|
10 | 10 | if (!$userForm) { |
11 | 11 | echo('form not found'); |
12 | 12 | return; |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | echo "<p class = 'text-center'>{$userForm->description}</p>"; |
20 | 20 | } |
21 | 21 | foreach ($userForm->inputs(['order' => ['weight']]) as $input) { |
22 | - $form->input($input->type, 'UserForms[' . (int)$form_id . '][input' . $input->id . ']', $input->label, ['required' => $input->required]); |
|
22 | + $form->input($input->type, 'UserForms[' . (int) $form_id . '][input' . $input->id . ']', $input->label, ['required' => $input->required]); |
|
23 | 23 | } |
24 | 24 | ?> |
25 | 25 | <button class='btn btn-success btn-block'>Отправить</button> |
@@ -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', |
@@ -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', |
@@ -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', |
@@ -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', |
@@ -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', |
@@ -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', |