@@ -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' |
@@ -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', |
@@ -109,8 +109,7 @@ |
||
| 109 | 109 | ) |
| 110 | 110 | ], |
| 111 | 111 | [ |
| 112 | - 'class' => $item['listed'] ? 'cs-block-success cs-text-success' : |
|
| 113 | - ($item['in_stock'] || $item['soon'] ? 'cs-block-warning cs-text-warning' : 'cs-block-error cs-text-error') |
|
| 112 | + 'class' => $item['listed'] ? 'cs-block-success cs-text-success' : ($item['in_stock'] || $item['soon'] ? 'cs-block-warning cs-text-warning' : 'cs-block-error cs-text-error') |
|
| 114 | 113 | ] |
| 115 | 114 | ]; |
| 116 | 115 | }, |
@@ -113,7 +113,7 @@ |
||
| 113 | 113 | if (!$items) { |
| 114 | 114 | return; |
| 115 | 115 | } |
| 116 | -$items_total = $Items->search( |
|
| 116 | +$items_total = $Items->search( |
|
| 117 | 117 | [ |
| 118 | 118 | 'listed' => 1, |
| 119 | 119 | 'category' => $current_category, |