| @@ -16,11 +16,11 @@ | ||
| 16 | 16 | * Should we load the integration logic. |
| 17 | 17 | * |
| 18 | 18 | * @return bool Should we load. |
| 19 | 19 | */ |
| 20 | - function should_load() { | |
| 20 | + public function should_load() { | |
| 21 | 21 | |
| 22 | - include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); | |
| 22 | + include_once ABSPATH . 'wp-admin/includes/plugin.php'; | |
| 23 | 23 | |
| 24 | 24 | $load = false; |
| 25 | 25 | $selectors_array = []; |
| 26 | 26 | if ( $this->isShareaholic() ) { |
| @@ -30,9 +30,9 @@ | ||
| 30 | 30 | if ( $this->isSassySocialShare() ) { |
| 31 | 31 | $selectors_array[] = '.heateorSssSharing.heateorSssPinterestBackground'; |
| 32 | 32 | $load = true; |
| 33 | 33 | } |
| 34 | - $this->selectors = implode( ', ', array_filter( $selectors_array ) ); | |
| 34 | + $this->selectors = implode( ', ', $selectors_array ); | |
| 35 | 35 | return $load; |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
| @@ -80,11 +80,11 @@ | ||
| 80 | 80 | } |
| 81 | 81 | ); |
| 82 | 82 | } |
| 83 | 83 | /** |
| 84 | - Check if plugin is active. | |
| 84 | + Check if plugin is active. | |
| 85 | 85 | |
| 86 | - @return bool | |
| 86 | + @return bool | |
| 87 | 87 | */ |
| 88 | 88 | private function isShareaholic() { |
| 89 | 89 | |
| 90 | 90 | if ( ! is_plugin_active( 'shareaholic/shareaholic.php' ) ) { |
| @@ -90,9 +90,8 @@ | ||
| 90 | 90 | if ( ! is_plugin_active( 'shareaholic/shareaholic.php' ) ) { |
| 91 | 91 | return false; |
| 92 | 92 | } |
| 93 | 93 | return true; |
| 94 | - | |
| 95 | 94 | } |
| 96 | 95 | /** |
| 97 | 96 | * Check if plugin is active. |
| 98 | 97 | * |
| @@ -103,9 +102,9 @@ | ||
| 103 | 102 | if ( ! is_plugin_active( 'sassy-social-share/sassy-social-share.php' ) ) { |
| 104 | 103 | return false; |
| 105 | 104 | } |
| 106 | 105 | $ss_options = get_option( 'heateor_sss' ); |
| 107 | - $ss_bars = ['vertical_re_providers', 'horizontal_re_providers']; | |
| 106 | + $ss_bars = [ 'vertical_re_providers', 'horizontal_re_providers' ]; | |
| 108 | 107 | if ( ! is_array( $ss_options ) ) { |
| 109 | 108 | return false; |
| 110 | 109 | } |
| 111 | 110 | foreach ( $ss_bars as $key => $bar ) { |