@@ -71,7 +71,7 @@ |
||
71 | 71 | $where[] = ['data', $_GET['data']]; |
72 | 72 | } |
73 | 73 | $pays = Money\Pay::getList(['where' => $where, 'order' => ['date_create', 'DESC']]); |
74 | - if(count($pays)===1){ |
|
74 | + if(count($pays)===1) { |
|
75 | 75 | Tools::redirect('/money/merchants/pay/'.current($pays)->id); |
76 | 76 | } |
77 | 77 | $this->view->page(['content' => 'pays', 'data' => compact('bread', 'pays')]); |
@@ -236,17 +236,20 @@ |
||
236 | 236 | * @return boolean|\Users\User |
237 | 237 | */ |
238 | 238 | public function get($idn, $ltype = 'id') { |
239 | - if (!$idn) |
|
240 | - return false; |
|
239 | + if (!$idn) { |
|
240 | + return false; |
|
241 | + } |
|
241 | 242 | |
242 | - if (is_numeric($idn) && $ltype != 'login') |
|
243 | - $user = Users\User::get($idn, 'id'); |
|
244 | - elseif ($ltype == 'login') |
|
245 | - $user = Users\User::get($idn, 'login'); |
|
246 | - else |
|
247 | - $user = Users\User::get($idn, 'mail'); |
|
248 | - if (!$user) |
|
249 | - return []; |
|
243 | + if (is_numeric($idn) && $ltype != 'login') { |
|
244 | + $user = Users\User::get($idn, 'id'); |
|
245 | + } elseif ($ltype == 'login') { |
|
246 | + $user = Users\User::get($idn, 'login'); |
|
247 | + } else { |
|
248 | + $user = Users\User::get($idn, 'mail'); |
|
249 | + } |
|
250 | + if (!$user) { |
|
251 | + return []; |
|
252 | + } |
|
250 | 253 | |
251 | 254 | return $user; |
252 | 255 | } |
@@ -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 | } |
@@ -13,11 +13,9 @@ |
||
13 | 13 | |
14 | 14 | use Exchange1c\Exchange; |
15 | 15 | |
16 | -class Init extends \Exchange1c\Mode |
|
17 | -{ |
|
16 | +class Init extends \Exchange1c\Mode { |
|
18 | 17 | |
19 | - public function process() |
|
20 | - { |
|
18 | + public function process() { |
|
21 | 19 | echo "zip=yes\n"; |
22 | 20 | echo 'file_limit=' . \Tools::toBytes(ini_get('upload_max_filesize')); |
23 | 21 | $this->end(); |
@@ -36,8 +36,11 @@ |
||
36 | 36 | $contents = curl_exec($c); |
37 | 37 | curl_close($c); |
38 | 38 | |
39 | - if ($contents) return $contents; |
|
40 | - else return FALSE; |
|
39 | + if ($contents) { |
|
40 | + return $contents; |
|
41 | + } else { |
|
42 | + return FALSE; |
|
43 | + } |
|
41 | 44 | } |
42 | 45 | |
43 | 46 | /** |