@@ -120,7 +120,7 @@ |
||
120 | 120 | if (isset($_POST['site_url'])) { |
121 | 121 | $url = $_POST['site_url']; |
122 | 122 | } else { |
123 | - $https = @$_SERVER['HTTPS'] ? $_SERVER['HTTPS'] !== 'off' : ( |
|
123 | + $https = @$_SERVER['HTTPS'] ? $_SERVER['HTTPS'] !== 'off' : ( |
|
124 | 124 | @$_SERVER['REQUEST_SCHEME'] === 'https' || |
125 | 125 | @$_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https' |
126 | 126 | ); |
@@ -53,7 +53,7 @@ |
||
53 | 53 | } |
54 | 54 | ) |
55 | 55 | ); |
56 | -$themes = array_values( |
|
56 | +$themes = array_values( |
|
57 | 57 | array_filter( |
58 | 58 | get_files_list(ROOT.'/themes', false, 'd'), |
59 | 59 | function ($theme) { |
@@ -27,7 +27,7 @@ |
||
27 | 27 | 'option' => 'int', |
28 | 28 | 'user' => 'int' |
29 | 29 | ]; |
30 | - protected $table = '[prefix]polls_options_answers'; |
|
30 | + protected $table = '[prefix]polls_options_answers'; |
|
31 | 31 | |
32 | 32 | protected function cdb () { |
33 | 33 | return Config::instance()->module('Polls')->db('polls'); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | return strtolower($provider); |
30 | 30 | } |
31 | 31 | }; |
32 | - $providers = []; |
|
32 | + $providers = []; |
|
33 | 33 | foreach ($Config->module('HybridAuth')->providers as $provider => $provider_settings) { |
34 | 34 | if ($provider_settings['enabled']) { |
35 | 35 | $providers[$provider] = [ |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | CRUD_helpers, |
24 | 24 | Singleton; |
25 | 25 | |
26 | - protected $data_model = [ |
|
26 | + protected $data_model = [ |
|
27 | 27 | 'id' => 'int:0', |
28 | 28 | 'parent' => 'int:0', |
29 | 29 | 'title' => 'ml:text', |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | LIMIT 1", |
196 | 196 | $section['parent'] |
197 | 197 | ) ?: $section['parent']; |
198 | - $update = $this->db_prime()->q( |
|
198 | + $update = $this->db_prime()->q( |
|
199 | 199 | [ |
200 | 200 | "UPDATE `[prefix]blogs_sections` |
201 | 201 | SET `parent` = '%2\$d' |
@@ -25,8 +25,7 @@ |
||
25 | 25 | ). |
26 | 26 | h::label($L->gallery_title). |
27 | 27 | h::{'input[is=cs-input-text][name=add[title]]'}(). |
28 | - ($Config->core['simple_admin_mode'] ? '' : |
|
29 | - h::label(h::info('photo_gallery_gallery_path')). |
|
28 | + ($Config->core['simple_admin_mode'] ? '' : h::label(h::info('photo_gallery_gallery_path')). |
|
30 | 29 | h::{'input[is=cs-input-text][name=add[path]]'}() |
31 | 30 | ). |
32 | 31 | h::label($L->gallery_description). |
@@ -27,7 +27,7 @@ |
||
27 | 27 | public function onOpen (ConnectionInterface $conn, RequestInterface $request = null) { |
28 | 28 | $L = Language::instance(); |
29 | 29 | /** @noinspection PhpUndefinedFieldInspection */ |
30 | - $ip = $this->ip( |
|
30 | + $ip = $this->ip( |
|
31 | 31 | [ |
32 | 32 | $conn->remoteAddress, |
33 | 33 | $request->getHeader('X-Forwarded-For'), |
@@ -67,7 +67,7 @@ |
||
67 | 67 | |
68 | 68 | const PAYMENT_METHOD_CASH = 'shop:cash'; |
69 | 69 | |
70 | - protected $data_model = [ |
|
70 | + protected $data_model = [ |
|
71 | 71 | 'id' => 'int', |
72 | 72 | 'user' => 'int', |
73 | 73 | 'date' => 'int', |
@@ -25,7 +25,7 @@ |
||
25 | 25 | $page = @$_GET['page'] ?: 1; |
26 | 26 | $count = @$_GET['count'] ?: Config::instance()->module('Shop')->items_per_page; |
27 | 27 | if ($Session->user()) { |
28 | - $orders = $Orders->get( |
|
28 | + $orders = $Orders->get( |
|
29 | 29 | $Orders->search( |
30 | 30 | [ |
31 | 31 | 'user' => $Session->get_user() |