@@ -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 | [ |
@@ -223,7 +223,7 @@ |
||
223 | 223 | ]; |
224 | 224 | |
225 | 225 | $selectOptions['where'][] = [ |
226 | - [Ecommerce\Item\Offer\Price\Type::index(), NULL, 'is'], |
|
226 | + [Ecommerce\Item\Offer\Price\Type::index(), null, 'is'], |
|
227 | 227 | [ |
228 | 228 | [Ecommerce\Item\Offer\Price\Type::colPrefix() . 'roles', '', '=', 'OR'], |
229 | 229 | [Ecommerce\Item\Offer\Price\Type::colPrefix() . 'roles', '%|' . \Users\User::$cur->role_id . '|%', 'LIKE', 'OR'], |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -return function ($step = NULL, $params = []) { |
|
3 | +return function ($step = null, $params = []) { |
|
4 | 4 | |
5 | 5 | }; |
@@ -13,12 +13,12 @@ |
||
13 | 13 | |
14 | 14 | class Reader extends \Object { |
15 | 15 | |
16 | - public $data = NULL; |
|
16 | + public $data = null; |
|
17 | 17 | public $source = ''; |
18 | 18 | |
19 | 19 | public function loadData($source = '') { |
20 | 20 | $this->source = $source; |
21 | - return FALSE; |
|
21 | + return false; |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | public function readPath($path = '/') { |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -return function ($step = NULL, $params = []) { |
|
3 | +return function ($step = null, $params = []) { |
|
4 | 4 | |
5 | 5 | }; |
@@ -145,7 +145,7 @@ |
||
145 | 145 | $auth_key = md5($config['appId'] . '_' . $viewer_id . '_' . $config['secret']); |
146 | 146 | |
147 | 147 | if ($auth_key !== $get_auth_key) { |
148 | - return FALSE; |
|
148 | + return false; |
|
149 | 149 | } |
150 | 150 | $userQuery = [ |
151 | 151 | 'user_id' => $viewer_id, |
@@ -138,13 +138,13 @@ |
||
138 | 138 | $userId = (int) $userId; |
139 | 139 | $result = new \Server\Result(); |
140 | 140 | if (!$userId) { |
141 | - $result->success = FALSE; |
|
141 | + $result->success = false; |
|
142 | 142 | $result->content = 'Не указан пользователь'; |
143 | 143 | $result->send(); |
144 | 144 | } |
145 | 145 | $partners = App::$cur->users->getUserPartners(Users\User::$cur, 8); |
146 | 146 | if (empty($partners['users'][$userId])) { |
147 | - $result->success = FALSE; |
|
147 | + $result->success = false; |
|
148 | 148 | $result->content = 'Этот пользователь не находится в вашей структуре'; |
149 | 149 | $result->send(); |
150 | 150 | } |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | } |
28 | 28 | |
29 | 29 | public function checkAccess($element, $user = null) { |
30 | - $access = NULL; |
|
30 | + $access = null; |
|
31 | 31 | foreach ($this->accessCheckers as $getter) { |
32 | 32 | foreach ($getter['classes'] as $className) { |
33 | 33 | if ($element instanceof $className) { |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | } elseif (!$path) { |
70 | 70 | return $array; |
71 | 71 | } else { |
72 | - return NULL; |
|
72 | + return null; |
|
73 | 73 | } |
74 | 74 | } |
75 | 75 |
@@ -17,15 +17,15 @@ |
||
17 | 17 | if (!empty($request[$this->colName]['pass']) && !empty($request[$this->colName]['pass'])) { |
18 | 18 | if (empty($request[$this->colName]['pass'])) { |
19 | 19 | \Msg::add('Вы не ввели пароль в первое поле', 'danger'); |
20 | - return FALSE; |
|
20 | + return false; |
|
21 | 21 | } |
22 | 22 | if (empty($request[$this->colName]['repeat'])) { |
23 | 23 | \Msg::add('Вы не ввели пароль во второе поле', 'danger'); |
24 | - return FALSE; |
|
24 | + return false; |
|
25 | 25 | } |
26 | 26 | if ($request[$this->colName]['pass'] != $request[$this->colName]['repeat']) { |
27 | 27 | \Msg::add('Введенные пароли не совпадают', 'danger'); |
28 | - return FALSE; |
|
28 | + return false; |
|
29 | 29 | } |
30 | 30 | $this->activeForm->model->{$this->colName} = \App::$cur->users->hashpass($request[$this->colName]['pass']); |
31 | 31 | } |