Skip to content

Commit f1ecc9d

Browse files
committed
Fix. Code. Code style fixed.
1 parent 934f37d commit f1ecc9d

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

cleantalk.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2140,12 +2140,12 @@ function apbct_rc__install_plugin($_wp = null, $plugin = null)
21402140
))
21412141
);
21422142
} else {
2143-
die(
2144-
'FAIL ' . json_encode(array(
2145-
'error' => 'FAIL_TO_GET_LATEST_VERSION',
2146-
'details' => 'Unknown error',
2147-
))
2148-
);
2143+
die(
2144+
'FAIL ' . json_encode(array(
2145+
'error' => 'FAIL_TO_GET_LATEST_VERSION',
2146+
'details' => 'Unknown error',
2147+
))
2148+
);
21492149
}
21502150
} else {
21512151
die('FAIL ' . json_encode(array('error' => 'PLUGIN_SLUG_INCORRECT')));
@@ -2177,12 +2177,12 @@ function apbct_rc__activate_plugin($plugin)
21772177
$result = activate_plugins($plugin);
21782178

21792179
$result_array = array('success' => true);
2180-
$error_msg = '';
2180+
$error_msg = '';
21812181

21822182
if ( ! $result || is_wp_error($result) ) {
2183-
if ( $result instanceof \WP_Error ) {
2184-
$error_msg = ' ' . $result->get_error_message();
2185-
}
2183+
if ( $result instanceof \WP_Error ) {
2184+
$error_msg = ' ' . $result->get_error_message();
2185+
}
21862186
$result_array = array(
21872187
'error' => 'FAIL_TO_ACTIVATE',
21882188
'details' => $error_msg

0 commit comments

Comments
 (0)