mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-06 11:10:43 +08:00
Merge pull request #136 from mainwp/bogdan01-cf-autofix
Apply fixes from CodeFactor
This commit is contained in:
commit
c8c8d8afa7
2 changed files with 23 additions and 23 deletions
|
@ -580,16 +580,16 @@ class MainWP_Client_Report {
|
||||||
public function get_section_loop_data( $records, $tokens, $section, $skip_records = array() ) {
|
public function get_section_loop_data( $records, $tokens, $section, $skip_records = array() ) {
|
||||||
|
|
||||||
$maintenance_details = array(
|
$maintenance_details = array(
|
||||||
'revisions' => __( 'Delete all post revisions', 'mainwp-child' ),
|
'revisions' => __( 'Delete all post revisions', 'mainwp-child' ),
|
||||||
'revisions_max' => __( 'Delete all post revisions, except for the last:', 'mainwp-child' ),
|
'revisions_max' => __( 'Delete all post revisions, except for the last:', 'mainwp-child' ),
|
||||||
'autodraft' => __( 'Delete all auto draft posts', 'mainwp-child' ),
|
'autodraft' => __( 'Delete all auto draft posts', 'mainwp-child' ),
|
||||||
'trashpost' => __( 'Delete trash posts', 'mainwp-child' ),
|
'trashpost' => __( 'Delete trash posts', 'mainwp-child' ),
|
||||||
'spam' => __( 'Delete spam comments', 'mainwp-child' ),
|
'spam' => __( 'Delete spam comments', 'mainwp-child' ),
|
||||||
'pending' => __( 'Delete pending comments', 'mainwp-child' ),
|
'pending' => __( 'Delete pending comments', 'mainwp-child' ),
|
||||||
'trashcomment' => __( 'Delete trash comments', 'mainwp-child' ),
|
'trashcomment' => __( 'Delete trash comments', 'mainwp-child' ),
|
||||||
'tags' => __( 'Delete tags with 0 posts associated', 'mainwp-child' ),
|
'tags' => __( 'Delete tags with 0 posts associated', 'mainwp-child' ),
|
||||||
'categories' => __( 'Delete categories with 0 posts associated', 'mainwp-child' ),
|
'categories' => __( 'Delete categories with 0 posts associated', 'mainwp-child' ),
|
||||||
'optimize' => __( 'Optimize database tables', 'mainwp-child' ),
|
'optimize' => __( 'Optimize database tables', 'mainwp-child' ),
|
||||||
);
|
);
|
||||||
|
|
||||||
$context = '';
|
$context = '';
|
||||||
|
@ -813,9 +813,9 @@ class MainWP_Client_Report {
|
||||||
if ( isset( $maintenance_details[ $mt ] ) ) {
|
if ( isset( $maintenance_details[ $mt ] ) ) {
|
||||||
if ( 'revisions_max' == $mt ) {
|
if ( 'revisions_max' == $mt ) {
|
||||||
$max_revisions = $this->get_stream_meta_data( $record, 'revisions' );
|
$max_revisions = $this->get_stream_meta_data( $record, 'revisions' );
|
||||||
$dtl = $maintenance_details['revisions_max'] . ' ' . $max_revisions;
|
$dtl = $maintenance_details['revisions_max'] . ' ' . $max_revisions;
|
||||||
} else {
|
} else {
|
||||||
$dtl = $maintenance_details[$mt];
|
$dtl = $maintenance_details[ $mt ];
|
||||||
}
|
}
|
||||||
$details[] = $dtl;
|
$details[] = $dtl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue