@@ -752,7 +752,7 @@ discard block |
||
| 752 | 752 | } |
| 753 | 753 | } |
| 754 | 754 | // This sort works decently well to ensure widely used scripts are ranked before rare scripts. |
| 755 | -uasort($funcs['utf8_regex_joining_type']['data'], function ($a, $b) |
|
| 755 | +uasort($funcs['utf8_regex_joining_type']['data'], function($a, $b) |
|
| 756 | 756 | { |
| 757 | 757 | if ($a['stats']['age'] == $b['stats']['age']) |
| 758 | 758 | { |
@@ -828,7 +828,7 @@ discard block |
||
| 828 | 828 | } |
| 829 | 829 | } |
| 830 | 830 | // Again, sort commonly used scripts before rare scripts. |
| 831 | -uasort($funcs['utf8_regex_indic']['data'], function ($a, $b) |
|
| 831 | +uasort($funcs['utf8_regex_indic']['data'], function($a, $b) |
|
| 832 | 832 | { |
| 833 | 833 | if ($a['stats']['age'] == $b['stats']['age']) |
| 834 | 834 | { |
@@ -131,14 +131,14 @@ discard block |
||
| 131 | 131 | $class_name = $this->getImplementationClassKeyName(); |
| 132 | 132 | $class_name_txt_key = strtolower($class_name); |
| 133 | 133 | |
| 134 | - $config_vars[] = $txt['cache_'. $class_name_txt_key .'_settings']; |
|
| 134 | + $config_vars[] = $txt['cache_' . $class_name_txt_key . '_settings']; |
|
| 135 | 135 | $config_vars[] = array( |
| 136 | - 'cachedir_'. $class_name_txt_key, |
|
| 137 | - $txt['cachedir_'. $class_name_txt_key], |
|
| 136 | + 'cachedir_' . $class_name_txt_key, |
|
| 137 | + $txt['cachedir_' . $class_name_txt_key], |
|
| 138 | 138 | 'file', |
| 139 | 139 | 'text', |
| 140 | 140 | 36, |
| 141 | - 'cache_'. $class_name_txt_key .'_cachedir', |
|
| 141 | + 'cache_' . $class_name_txt_key . '_cachedir', |
|
| 142 | 142 | ); |
| 143 | 143 | |
| 144 | 144 | if (!isset($context['settings_post_javascript'])) |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | $context['settings_post_javascript'] .= ' |
| 148 | 148 | $("#cache_accelerator").change(function (e) { |
| 149 | 149 | var cache_type = e.currentTarget.value; |
| 150 | - $("#cachedir_'. $class_name_txt_key .'").prop("disabled", cache_type != "'. $class_name .'"); |
|
| 150 | + $("#cachedir_'. $class_name_txt_key . '").prop("disabled", cache_type != "' . $class_name . '"); |
|
| 151 | 151 | });'; |
| 152 | 152 | } |
| 153 | 153 | |
@@ -156,7 +156,6 @@ discard block |
||
| 156 | 156 | $diff = $cur_profile['date_registered'] - strtotime(smf_strftime('%Y-%m-%d', $cur_profile['date_registered'])); |
| 157 | 157 | $value = $value + $diff; |
| 158 | 158 | } |
| 159 | - |
|
| 160 | 159 | else |
| 161 | 160 | $value = $cur_profile['date_registered']; |
| 162 | 161 | |
@@ -507,7 +506,7 @@ discard block |
||
| 507 | 506 | log_error(sprintf($txt['smiley_set_dir_not_found'], $set_names[array_search($set, $context['smiley_sets'])])); |
| 508 | 507 | |
| 509 | 508 | $context['smiley_sets'] = array_filter($context['smiley_sets'], function($v) use ($set) |
| 510 | - { |
|
| 509 | + { |
|
| 511 | 510 | return $v != $set; |
| 512 | 511 | }); |
| 513 | 512 | } |
@@ -3518,7 +3517,6 @@ discard block |
||
| 3518 | 3517 | } |
| 3519 | 3518 | } |
| 3520 | 3519 | } |
| 3521 | - |
|
| 3522 | 3520 | elseif (($value == 'upload' && allowedTo('profile_upload_avatar')) || $downloadedExternalAvatar) |
| 3523 | 3521 | { |
| 3524 | 3522 | if ((isset($_FILES['attachment']['name']) && $_FILES['attachment']['name'] != '') || $downloadedExternalAvatar) |