@@ -139,7 +139,8 @@ discard block |
||
139 | 139 | foreach (glsr()->addons as $addon) { |
140 | 140 | try { |
141 | 141 | glsr($addon)->updater->getPluginUpdate(true); |
142 | - } catch (\Exception $e) { |
|
142 | + } |
|
143 | + catch (\Exception $e) { |
|
143 | 144 | glsr_log()->error($e->getMessage()); |
144 | 145 | } |
145 | 146 | } |
@@ -198,7 +199,8 @@ discard block |
||
198 | 199 | unset($transient->no_update[$this->plugin]); |
199 | 200 | $updateInfo->update = true; |
200 | 201 | $transient->response[$this->plugin] = $updateInfo; |
201 | - } else { |
|
202 | + } |
|
203 | + else { |
|
202 | 204 | unset($transient->response[$this->plugin]); |
203 | 205 | $transient->no_update[$this->plugin] = $updateInfo; |
204 | 206 | } |
@@ -64,7 +64,8 @@ |
||
64 | 64 | $review = glsr_get_review($post); |
65 | 65 | if ('publish' == $post->post_status) { |
66 | 66 | glsr(CountsManager::class)->increaseAll($review); |
67 | - } else { |
|
67 | + } |
|
68 | + else { |
|
68 | 69 | glsr(CountsManager::class)->decreaseAll($review); |
69 | 70 | } |
70 | 71 | } |
@@ -15,8 +15,11 @@ discard block |
||
15 | 15 | <span class="glsr-addon-link button button-secondary" disabled> |
16 | 16 | <?= __('Installed', 'site-reviews'); ?> |
17 | 17 | </span> |
18 | - <?php else: ?> |
|
19 | - <a href="<?= wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin='.$plugin), 'activate-plugin_'.$plugin); ?>" class="glsr-addon-link button button-secondary"> |
|
18 | + <?php else { |
|
19 | + : ?> |
|
20 | + <a href="<?= wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin='.$plugin), 'activate-plugin_'.$plugin); |
|
21 | +} |
|
22 | +?>" class="glsr-addon-link button button-secondary"> |
|
20 | 23 | <?= __('Activate', 'site-reviews'); ?> |
21 | 24 | </a> |
22 | 25 | <?php endif; ?> |
@@ -24,9 +27,12 @@ discard block |
||
24 | 27 | <a href="mailto:[email protected]?subject=I%20would%20like%20to%20become%20a%20beta%20tester%20({{ slug }})" class="glsr-addon-link glsr-external button button-secondary"> |
25 | 28 | <?= __('Try the beta', 'site-reviews'); ?> |
26 | 29 | </a> |
27 | - <?php else: ?> |
|
30 | + <?php else { |
|
31 | + : ?> |
|
28 | 32 | <a href="{{ link }}" class="glsr-addon-link glsr-external button button-secondary"> |
29 | - <?= __('More Info', 'site-reviews'); ?> |
|
33 | + <?= __('More Info', 'site-reviews'); |
|
34 | +} |
|
35 | +?> |
|
30 | 36 | </a> |
31 | 37 | <?php endif; ?> |
32 | 38 | </div> |
@@ -40,7 +40,8 @@ |
||
40 | 40 | protected $trustalyze; |
41 | 41 | protected $welcome; |
42 | 42 | |
43 | - public function __construct(Application $app ) { |
|
43 | + public function __construct(Application $app ) |
|
44 | + { |
|
44 | 45 | $this->app = $app; |
45 | 46 | $this->admin = $app->make(AdminController::class); |
46 | 47 | $this->blocks = $app->make(BlocksController::class); |
@@ -101,7 +101,8 @@ |
||
101 | 101 | { |
102 | 102 | if (is_wp_error($response)) { |
103 | 103 | $this->message = $response->get_error_message(); |
104 | - } else { |
|
104 | + } |
|
105 | + else { |
|
105 | 106 | $responseBody = wp_remote_retrieve_body($response); |
106 | 107 | $responseCode = wp_remote_retrieve_response_code($response); |
107 | 108 | $responseData = (array) json_decode($responseBody, true); |
@@ -12,5 +12,6 @@ |
||
12 | 12 | class Upgrader |
13 | 13 | { |
14 | 14 | public function run() |
15 | - {} |
|
15 | + { |
|
16 | +} |
|
16 | 17 | } |
@@ -208,7 +208,8 @@ |
||
208 | 208 | ); |
209 | 209 | if ($trustalyze->success) { |
210 | 210 | update_option($this->trustalyzeKey, Arr::get($trustalyze->response, 'producttype')); |
211 | - } else { |
|
211 | + } |
|
212 | + else { |
|
212 | 213 | delete_option($this->trustalyzeKey); |
213 | 214 | $settings = Arr::set($settings, $this->enabledKey, 'no'); |
214 | 215 | glsr(Notice::class)->addError(sprintf( |