@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $data['usercount'] = get_user_count(); |
75 | 75 | |
76 | 76 | // Retrieve current plugin information |
77 | - if( ! function_exists( 'get_plugins' ) ) { |
|
77 | + if ( ! function_exists( 'get_plugins' ) ) { |
|
78 | 78 | include ABSPATH . '/wp-admin/includes/plugin.php'; |
79 | 79 | } |
80 | 80 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | foreach ( $plugins as $key => $plugin ) { |
85 | 85 | if ( in_array( $plugin, $active_plugins ) ) { |
86 | 86 | // Remove active plugins from list so we can show active and inactive separately |
87 | - unset( $plugins[ $key ] ); |
|
87 | + unset( $plugins[$key] ); |
|
88 | 88 | } |
89 | 89 | } |
90 | 90 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | return false; |
103 | 103 | } |
104 | 104 | |
105 | - if( ! $this->tracking_allowed() && ! $override ) { |
|
105 | + if ( ! $this->tracking_allowed() && ! $override ) { |
|
106 | 106 | return false; |
107 | 107 | } |
108 | 108 | |
@@ -134,15 +134,15 @@ discard block |
||
134 | 134 | public function schedule_send() { |
135 | 135 | if ( ! wp_next_scheduled( 'monsterinsights_usage_tracking_cron' ) ) { |
136 | 136 | $tracking = array(); |
137 | - $tracking['day'] = rand( 0, 6 ); |
|
137 | + $tracking['day'] = rand( 0, 6 ); |
|
138 | 138 | $tracking['hour'] = rand( 0, 23 ); |
139 | 139 | $tracking['minute'] = rand( 0, 59 ); |
140 | 140 | $tracking['second'] = rand( 0, 59 ); |
141 | - $tracking['offset'] = ( $tracking['day'] * DAY_IN_SECONDS ) + |
|
142 | - ( $tracking['hour'] * HOUR_IN_SECONDS ) + |
|
141 | + $tracking['offset'] = ( $tracking['day'] * DAY_IN_SECONDS ) + |
|
142 | + ( $tracking['hour'] * HOUR_IN_SECONDS ) + |
|
143 | 143 | ( $tracking['minute'] * MINUTE_IN_SECONDS ) + |
144 | 144 | $tracking['second']; |
145 | - $tracking['initsend'] = strtotime("next sunday") + $tracking['offset']; |
|
145 | + $tracking['initsend'] = strtotime( "next sunday" ) + $tracking['offset']; |
|
146 | 146 | |
147 | 147 | wp_schedule_event( $tracking['initsend'], 'weekly', 'monsterinsights_usage_tracking_cron' ); |
148 | 148 | update_option( 'monsterinsights_usage_tracking_config', $tracking ); |