@@ -221,7 +221,8 @@ |
||
221 | 221 | if ($flattenValue) { |
222 | 222 | $value = '['.implode(', ', $value).']'; |
223 | 223 | } |
224 | - } elseif (is_array($value)) { |
|
224 | + } |
|
225 | + elseif (is_array($value)) { |
|
225 | 226 | $result = array_merge($result, $this->flattenArray($value, $flattenValue, $newKey)); |
226 | 227 | continue; |
227 | 228 | } |
@@ -33,7 +33,8 @@ |
||
33 | 33 | protected $taxonomy; |
34 | 34 | protected $welcome; |
35 | 35 | |
36 | - public function __construct(Application $app ) { |
|
36 | + public function __construct(Application $app ) |
|
37 | + { |
|
37 | 38 | $this->app = $app; |
38 | 39 | $this->admin = $app->make(AdminController::class); |
39 | 40 | $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); |
@@ -52,7 +52,8 @@ discard block |
||
52 | 52 | } |
53 | 53 | if ('F' === $rebusifyProductType && 'yes' === glsr_get_option('general.rebusify')) { |
54 | 54 | $button = $this->buildUpgradeButton(); |
55 | - } else { |
|
55 | + } |
|
56 | + else { |
|
56 | 57 | $button = $this->buildCreateButton(); |
57 | 58 | } |
58 | 59 | $context['field'].= $button; |
@@ -208,7 +209,8 @@ discard block |
||
208 | 209 | ); |
209 | 210 | if ($rebusify->success) { |
210 | 211 | update_option($this->rebusifyKey, glsr_get($rebusify->response, 'producttype')); |
211 | - } else { |
|
212 | + } |
|
213 | + else { |
|
212 | 214 | delete_option($this->rebusifyKey); |
213 | 215 | $settings = glsr(Helper::class)->dataSet($settings, $this->enabledKey, 'no'); |
214 | 216 | glsr(Notice::class)->addError(sprintf( |
@@ -55,7 +55,8 @@ |
||
55 | 55 | $review = glsr_get_review($post); |
56 | 56 | if ('publish' == $post->post_status) { |
57 | 57 | glsr(CountsManager::class)->increase($review); |
58 | - } else { |
|
58 | + } |
|
59 | + else { |
|
59 | 60 | glsr(CountsManager::class)->decrease($review); |
60 | 61 | } |
61 | 62 | } |
@@ -158,7 +158,8 @@ |
||
158 | 158 | $counts = []; |
159 | 159 | if ($this->isMixedCount($args)) { |
160 | 160 | $counts = [$this->buildCounts($args)]; // force query the database |
161 | - } else { |
|
161 | + } |
|
162 | + else { |
|
162 | 163 | foreach ($args['post_ids'] as $postId) { |
163 | 164 | $counts[] = $this->getPostCounts($postId); |
164 | 165 | } |