@@ -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', |
@@ -2,17 +2,17 @@ discard block |
||
| 2 | 2 | <?php |
| 3 | 3 | $currency_id = !empty($_GET['currency_id']) ? (int) $_GET['currency_id'] : 0; |
| 4 | 4 | $wallets = App::$cur->money->getUserWallets(); |
| 5 | -if ($currency_id && empty($wallets[$currency_id])) {
|
|
| 5 | +if ($currency_id && empty($wallets[$currency_id])) { |
|
| 6 | 6 | Msg::add('У вас нет такого кошелька');
|
| 7 | 7 | Msg::show(); |
| 8 | 8 | return; |
| 9 | 9 | } |
| 10 | 10 | |
| 11 | -if ($currency_id) {
|
|
| 11 | +if ($currency_id) { |
|
| 12 | 12 | $ids = $wallets[$currency_id]->id; |
| 13 | -} else {
|
|
| 13 | +} else { |
|
| 14 | 14 | $ids = []; |
| 15 | - foreach ($wallets as $wallet) {
|
|
| 15 | + foreach ($wallets as $wallet) { |
|
| 16 | 16 | $ids[] = $wallet->id; |
| 17 | 17 | } |
| 18 | 18 | $ids = implode(',', $ids);
|
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | 'start' => $pages->params['start'], |
| 34 | 34 | 'limit' => $pages->params['limit'], |
| 35 | 35 | ]); |
| 36 | -foreach ($histories as $history) {
|
|
| 36 | +foreach ($histories as $history) { |
|
| 37 | 37 | $amount = $history->amount ? $history->amount : $history->new - $history->old; |
| 38 | 38 | $table->addRow([ |
| 39 | 39 | $history->id, |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <h3>История счета</h3> |
| 2 | 2 | <?php |
| 3 | -$currency_id = !empty($_GET['currency_id']) ? (int)$_GET['currency_id'] : 0; |
|
| 3 | +$currency_id = !empty($_GET['currency_id']) ? (int) $_GET['currency_id'] : 0; |
|
| 4 | 4 | $wallets = App::$cur->money->getUserWallets(); |
| 5 | 5 | if ($currency_id && empty($wallets[$currency_id])) {
|
| 6 | 6 | Msg::add('У вас нет такого кошелька');
|
@@ -2,17 +2,17 @@ discard block |
||
| 2 | 2 | <?php |
| 3 | 3 | $currency_id = !empty($_GET['currency_id']) ? (int) $_GET['currency_id'] : 0; |
| 4 | 4 | $wallets = App::$cur->money->getUserWallets(); |
| 5 | -if ($currency_id && empty($wallets[$currency_id])) {
|
|
| 5 | +if ($currency_id && empty($wallets[$currency_id])) { |
|
| 6 | 6 | Msg::add('У вас нет такого кошелька');
|
| 7 | 7 | Msg::show(); |
| 8 | 8 | return; |
| 9 | 9 | } |
| 10 | 10 | |
| 11 | -if ($currency_id) {
|
|
| 11 | +if ($currency_id) { |
|
| 12 | 12 | $ids = $wallets[$currency_id]->id; |
| 13 | -} else {
|
|
| 13 | +} else { |
|
| 14 | 14 | $ids = []; |
| 15 | - foreach ($wallets as $wallet) {
|
|
| 15 | + foreach ($wallets as $wallet) { |
|
| 16 | 16 | $ids[] = $wallet->id; |
| 17 | 17 | } |
| 18 | 18 | $ids = implode(',', $ids);
|
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | 'start' => $pages->params['start'], |
| 34 | 34 | 'limit' => $pages->params['limit'], |
| 35 | 35 | ]); |
| 36 | -foreach ($histories as $history) {
|
|
| 36 | +foreach ($histories as $history) { |
|
| 37 | 37 | $amount = $history->amount ? $history->amount : $history->new - $history->old; |
| 38 | 38 | $table->addRow([ |
| 39 | 39 | $history->id, |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <h3>История счета</h3> |
| 2 | 2 | <?php |
| 3 | -$currency_id = !empty($_GET['currency_id']) ? (int)$_GET['currency_id'] : 0; |
|
| 3 | +$currency_id = !empty($_GET['currency_id']) ? (int) $_GET['currency_id'] : 0; |
|
| 4 | 4 | $wallets = App::$cur->money->getUserWallets(); |
| 5 | 5 | if ($currency_id && empty($wallets[$currency_id])) {
|
| 6 | 6 | Msg::add('У вас нет такого кошелька');
|
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | $concatenation = ''; |
| 185 | 185 | } |
| 186 | 186 | |
| 187 | - if ($this->whereString == NULL) { |
|
| 187 | + if ($this->whereString == null) { |
|
| 188 | 188 | $this->whereString = ' WHERE '; |
| 189 | 189 | } |
| 190 | 190 | |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | $this->whereString .= "{$concatenation} "; |
| 233 | 233 | } |
| 234 | 234 | |
| 235 | - if ($this->whereString != NULL) { |
|
| 235 | + if ($this->whereString != null) { |
|
| 236 | 236 | $this->whereString .= '('; |
| 237 | 237 | } else { |
| 238 | 238 | $this->whereString = 'WHERE ('; |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | $concatenation = ''; |
| 272 | 272 | } |
| 273 | 273 | |
| 274 | - if ($this->havingString == NULL) { |
|
| 274 | + if ($this->havingString == null) { |
|
| 275 | 275 | $this->havingString = ' HAVING '; |
| 276 | 276 | } |
| 277 | 277 | |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | $this->havingString .= "{$concatenation} "; |
| 320 | 320 | } |
| 321 | 321 | |
| 322 | - if ($this->havingString != NULL) { |
|
| 322 | + if ($this->havingString != null) { |
|
| 323 | 323 | $this->havingString .= '('; |
| 324 | 324 | } else { |
| 325 | 325 | $this->havingString = 'HAVING ('; |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | public $distinct = false; |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | - * @param $instance |
|
| 35 | + * @param $instance |
|
| 36 | 36 | */ |
| 37 | 37 | public function __construct($instance = null) { |
| 38 | 38 | if (!$instance) { |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -return function($step = NULL, $params = []) { |
|
| 3 | +return function($step = null, $params = []) { |
|
| 4 | 4 | $options = ['max_height' => 1200, 'max_width' => 1200]; |
| 5 | 5 | $types = [ |
| 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 | |
| 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 | $options = ['max_height' => 1200, 'max_width' => 1200]; |
| 5 | 5 | $types = [ |
| 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 | |
| 5 | 5 | $groups = [ |
| 6 | 6 | [ |