Refactoring

This commit is contained in:
thanghv 2020-05-07 01:03:56 +07:00
parent ae8f7446af
commit 033145bc47
28 changed files with 171 additions and 214 deletions

View file

@ -21,7 +21,7 @@ class MainWP_Child_Pagespeed {
public static function instance() {
if ( null === self::$instance ) {
self::$instance = new MainWP_Child_Pagespeed();
self::$instance = new self();
}
return self::$instance;
@ -279,7 +279,7 @@ class MainWP_Child_Pagespeed {
if ( isset( $data['syncPageSpeedData'] ) && $data['syncPageSpeedData'] ) {
try {
$information['syncPageSpeedData'] = $this->get_sync_data();
} catch ( Exception $e ) {
} catch ( \Exception $e ) {
// ok!
}
}