Passed
Push — main ( aaef5c...e4c121 )
by TARIQ
71:39
created
wp/wp-includes/Requests/IDNAEncoder.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -294,11 +294,9 @@
 block discarded – undo
294 294
 						//     tmax if k >= bias + tmax, or k - bias otherwise
295 295
 						if ($k <= ($bias + self::BOOTSTRAP_TMIN)) {
296 296
 							$t = self::BOOTSTRAP_TMIN;
297
-						}
298
-						elseif ($k >= ($bias + self::BOOTSTRAP_TMAX)) {
297
+						} elseif ($k >= ($bias + self::BOOTSTRAP_TMAX)) {
299 298
 							$t = self::BOOTSTRAP_TMAX;
300
-						}
301
-						else {
299
+						} else {
302 300
 							$t = $k - $bias;
303 301
 						}
304 302
 						// if q < t then break
Please login to merge, or discard this patch.
wp/wp-includes/Requests/Proxy/HTTP.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -57,16 +57,13 @@
 block discarded – undo
57 57
 	public function __construct($args = null) {
58 58
 		if (is_string($args)) {
59 59
 			$this->proxy = $args;
60
-		}
61
-		elseif (is_array($args)) {
60
+		} elseif (is_array($args)) {
62 61
 			if (count($args) === 1) {
63 62
 				list($this->proxy) = $args;
64
-			}
65
-			elseif (count($args) === 3) {
63
+			} elseif (count($args) === 3) {
66 64
 				list($this->proxy, $this->user, $this->pass) = $args;
67 65
 				$this->use_authentication                    = true;
68
-			}
69
-			else {
66
+			} else {
70 67
 				throw new Requests_Exception('Invalid number of arguments', 'proxyhttpbadargs');
71 68
 			}
72 69
 		}
Please login to merge, or discard this patch.
wp/wp-includes/Requests/Response.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,8 +113,7 @@
 block discarded – undo
113 113
 			if (!$allow_redirects) {
114 114
 				throw new Requests_Exception('Redirection not allowed', 'response.no_redirects', $this);
115 115
 			}
116
-		}
117
-		elseif (!$this->success) {
116
+		} elseif (!$this->success) {
118 117
 			$exception = Requests_Exception_HTTP::get_class($this->status_code);
119 118
 			throw new $exception(null, $this);
120 119
 		}
Please login to merge, or discard this patch.
wp/wp-includes/Requests/Transport/fsockopen.php 1 patch
Braces   +10 added lines, -20 removed lines patch added patch discarded remove patch
@@ -94,8 +94,7 @@  discard block
 block discarded – undo
94 94
 					$context_options['verify_peer']      = false;
95 95
 					$context_options['verify_peer_name'] = false;
96 96
 					$verifyname                          = false;
97
-				}
98
-				elseif (is_string($options['verify'])) {
97
+				} elseif (is_string($options['verify'])) {
99 98
 					$context_options['cafile'] = $options['verify'];
100 99
 				}
101 100
 			}
@@ -106,8 +105,7 @@  discard block
 block discarded – undo
106 105
 			}
107 106
 
108 107
 			stream_context_set_option($context, array('ssl' => $context_options));
109
-		}
110
-		else {
108
+		} else {
111 109
 			$remote_socket = 'tcp://' . $host;
112 110
 		}
113 111
 
@@ -145,8 +143,7 @@  discard block
 block discarded – undo
145 143
 		if ($data_format === 'query') {
146 144
 			$path = self::format_get($url_parts, $data);
147 145
 			$data = '';
148
-		}
149
-		else {
146
+		} else {
150 147
 			$path = self::format_get($url_parts, array());
151 148
 		}
152 149
 
@@ -158,8 +155,7 @@  discard block
 block discarded – undo
158 155
 		if ($options['type'] !== Requests::TRACE) {
159 156
 			if (is_array($data)) {
160 157
 				$request_body = http_build_query($data, '', '&');
161
-			}
162
-			else {
158
+			} else {
163 159
 				$request_body = $data;
164 160
 			}
165 161
 
@@ -227,8 +223,7 @@  discard block
 block discarded – undo
227 223
 		$timeout_sec = (int) floor($options['timeout']);
228 224
 		if ($timeout_sec === $options['timeout']) {
229 225
 			$timeout_msec = 0;
230
-		}
231
-		else {
226
+		} else {
232 227
 			$timeout_msec = self::SECOND_IN_MICROSECONDS * $options['timeout'] % self::SECOND_IN_MICROSECONDS;
233 228
 		}
234 229
 		stream_set_timeout($socket, $timeout_sec, $timeout_msec);
@@ -278,8 +273,7 @@  discard block
 block discarded – undo
278 273
 				$size += strlen($block);
279 274
 				if ($download) {
280 275
 					fwrite($download, $block);
281
-				}
282
-				else {
276
+				} else {
283 277
 					$body .= $block;
284 278
 				}
285 279
 			}
@@ -288,8 +282,7 @@  discard block
 block discarded – undo
288 282
 
289 283
 		if ($download) {
290 284
 			fclose($download);
291
-		}
292
-		else {
285
+		} else {
293 286
 			$this->headers .= "\r\n\r\n" . $body;
294 287
 		}
295 288
 		fclose($socket);
@@ -314,8 +307,7 @@  discard block
 block discarded – undo
314 307
 				$responses[$id] = $handler->request($request['url'], $request['headers'], $request['data'], $request['options']);
315 308
 
316 309
 				$request['options']['hooks']->dispatch('transport.internal.parse_response', array(&$responses[$id], $request));
317
-			}
318
-			catch (Requests_Exception $e) {
310
+			} catch (Requests_Exception $e) {
319 311
 				$responses[$id] = $e;
320 312
 			}
321 313
 
@@ -366,12 +358,10 @@  discard block
 block discarded – undo
366 358
 		if (isset($url_parts['path'])) {
367 359
 			if (isset($url_parts['query'])) {
368 360
 				$get = $url_parts['path'] . '?' . $url_parts['query'];
369
-			}
370
-			else {
361
+			} else {
371 362
 				$get = $url_parts['path'];
372 363
 			}
373
-		}
374
-		else {
364
+		} else {
375 365
 			$get = '/';
376 366
 		}
377 367
 		return $get;
Please login to merge, or discard this patch.
wp/wp-includes/Requests/Transport/cURL.php 1 patch
Braces   +10 added lines, -20 removed lines patch added patch discarded remove patch
@@ -151,8 +151,7 @@  discard block
 block discarded – undo
151 151
 			if ($options['verify'] === false) {
152 152
 				curl_setopt($this->handle, CURLOPT_SSL_VERIFYHOST, 0);
153 153
 				curl_setopt($this->handle, CURLOPT_SSL_VERIFYPEER, 0);
154
-			}
155
-			elseif (is_string($options['verify'])) {
154
+			} elseif (is_string($options['verify'])) {
156 155
 				curl_setopt($this->handle, CURLOPT_CAINFO, $options['verify']);
157 156
 			}
158 157
 		}
@@ -249,8 +248,7 @@  discard block
 block discarded – undo
249 248
 					);
250 249
 					$responses[$key] = $exception;
251 250
 					$options['hooks']->dispatch('transport.internal.parse_error', array(&$responses[$key], $requests[$key]));
252
-				}
253
-				else {
251
+				} else {
254 252
 					$responses[$key] = $subrequests[$key]->process_response($subrequests[$key]->response_data, $options);
255 253
 
256 254
 					$options['hooks']->dispatch('transport.internal.parse_response', array(&$responses[$key], $requests[$key]));
@@ -340,8 +338,7 @@  discard block
 block discarded – undo
340 338
 			if ($data_format === 'query') {
341 339
 				$url  = self::format_get($url, $data);
342 340
 				$data = '';
343
-			}
344
-			elseif (!is_string($data)) {
341
+			} elseif (!is_string($data)) {
345 342
 				$data = http_build_query($data, null, '&');
346 343
 			}
347 344
 		}
@@ -379,16 +376,14 @@  discard block
 block discarded – undo
379 376
 
380 377
 		if (is_int($timeout) || $this->version < self::CURL_7_16_2) {
381 378
 			curl_setopt($this->handle, CURLOPT_TIMEOUT, ceil($timeout));
382
-		}
383
-		else {
379
+		} else {
384 380
 			// phpcs:ignore PHPCompatibility.Constants.NewConstants.curlopt_timeout_msFound
385 381
 			curl_setopt($this->handle, CURLOPT_TIMEOUT_MS, round($timeout * 1000));
386 382
 		}
387 383
 
388 384
 		if (is_int($options['connect_timeout']) || $this->version < self::CURL_7_16_2) {
389 385
 			curl_setopt($this->handle, CURLOPT_CONNECTTIMEOUT, ceil($options['connect_timeout']));
390
-		}
391
-		else {
386
+		} else {
392 387
 			// phpcs:ignore PHPCompatibility.Constants.NewConstants.curlopt_connecttimeout_msFound
393 388
 			curl_setopt($this->handle, CURLOPT_CONNECTTIMEOUT_MS, round($options['connect_timeout'] * 1000));
394 389
 		}
@@ -400,8 +395,7 @@  discard block
 block discarded – undo
400 395
 		}
401 396
 		if ($options['protocol_version'] === 1.1) {
402 397
 			curl_setopt($this->handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
403
-		}
404
-		else {
398
+		} else {
405 399
 			curl_setopt($this->handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
406 400
 		}
407 401
 
@@ -429,8 +423,7 @@  discard block
 block discarded – undo
429 423
 		if ($options['filename'] !== false && $this->stream_handle) {
430 424
 			fclose($this->stream_handle);
431 425
 			$this->headers = trim($this->headers);
432
-		}
433
-		else {
426
+		} else {
434 427
 			$this->headers .= $response;
435 428
 		}
436 429
 
@@ -500,8 +493,7 @@  discard block
 block discarded – undo
500 493
 
501 494
 		if ($this->stream_handle) {
502 495
 			fwrite($this->stream_handle, $data);
503
-		}
504
-		else {
496
+		} else {
505 497
 			$this->response_data .= $data;
506 498
 		}
507 499
 
@@ -522,8 +514,7 @@  discard block
 block discarded – undo
522 514
 			$url_parts = parse_url($url);
523 515
 			if (empty($url_parts['query'])) {
524 516
 				$url_parts['query'] = '';
525
-			}
526
-			else {
517
+			} else {
527 518
 				$query = $url_parts['query'];
528 519
 			}
529 520
 
@@ -532,8 +523,7 @@  discard block
 block discarded – undo
532 523
 
533 524
 			if (empty($url_parts['query'])) {
534 525
 				$url .= '?' . $query;
535
-			}
536
-			else {
526
+			} else {
537 527
 				$url = str_replace($url_parts['query'], $query, $url);
538 528
 			}
539 529
 		}
Please login to merge, or discard this patch.
wp/wp-includes/Requests/IRI.php 1 patch
Braces   +30 added lines, -60 removed lines patch added patch discarded remove patch
@@ -157,8 +157,7 @@  discard block
 block discarded – undo
157 157
 	public function __set($name, $value) {
158 158
 		if (method_exists($this, 'set_' . $name)) {
159 159
 			call_user_func(array($this, 'set_' . $name), $value);
160
-		}
161
-		elseif (
160
+		} elseif (
162 161
 			   $name === 'iauthority'
163 162
 			|| $name === 'iuserinfo'
164 163
 			|| $name === 'ihost'
@@ -189,8 +188,7 @@  discard block
 block discarded – undo
189 188
 		) {
190 189
 			$method = 'get_' . $name;
191 190
 			$return = $this->$method();
192
-		}
193
-		elseif (array_key_exists($name, $props)) {
191
+		} elseif (array_key_exists($name, $props)) {
194 192
 			$return = $this->$name;
195 193
 		}
196 194
 		// host -> ihost
@@ -202,16 +200,14 @@  discard block
 block discarded – undo
202 200
 		elseif (($prop = substr($name, 1)) && array_key_exists($prop, $props)) {
203 201
 			$name = $prop;
204 202
 			$return = $this->$prop;
205
-		}
206
-		else {
203
+		} else {
207 204
 			trigger_error('Undefined property: ' . get_class($this) . '::' . $name, E_USER_NOTICE);
208 205
 			$return = null;
209 206
 		}
210 207
 
211 208
 		if ($return === null && isset($this->normalization[$this->scheme][$name])) {
212 209
 			return $this->normalization[$this->scheme][$name];
213
-		}
214
-		else {
210
+		} else {
215 211
 			return $return;
216 212
 		}
217 213
 	}
@@ -261,8 +257,7 @@  discard block
 block discarded – undo
261 257
 		}
262 258
 		if (!$relative->is_valid()) {
263 259
 			return false;
264
-		}
265
-		elseif ($relative->scheme !== null) {
260
+		} elseif ($relative->scheme !== null) {
266 261
 			return clone $relative;
267 262
 		}
268 263
 
@@ -277,8 +272,7 @@  discard block
 block discarded – undo
277 272
 			if ($relative->iuserinfo !== null || $relative->ihost !== null || $relative->port !== null) {
278 273
 				$target = clone $relative;
279 274
 				$target->scheme = $base->scheme;
280
-			}
281
-			else {
275
+			} else {
282 276
 				$target = new Requests_IRI;
283 277
 				$target->scheme = $base->scheme;
284 278
 				$target->iuserinfo = $base->iuserinfo;
@@ -287,32 +281,26 @@  discard block
 block discarded – undo
287 281
 				if ($relative->ipath !== '') {
288 282
 					if ($relative->ipath[0] === '/') {
289 283
 						$target->ipath = $relative->ipath;
290
-					}
291
-					elseif (($base->iuserinfo !== null || $base->ihost !== null || $base->port !== null) && $base->ipath === '') {
284
+					} elseif (($base->iuserinfo !== null || $base->ihost !== null || $base->port !== null) && $base->ipath === '') {
292 285
 						$target->ipath = '/' . $relative->ipath;
293
-					}
294
-					elseif (($last_segment = strrpos($base->ipath, '/')) !== false) {
286
+					} elseif (($last_segment = strrpos($base->ipath, '/')) !== false) {
295 287
 						$target->ipath = substr($base->ipath, 0, $last_segment + 1) . $relative->ipath;
296
-					}
297
-					else {
288
+					} else {
298 289
 						$target->ipath = $relative->ipath;
299 290
 					}
300 291
 					$target->ipath = $target->remove_dot_segments($target->ipath);
301 292
 					$target->iquery = $relative->iquery;
302
-				}
303
-				else {
293
+				} else {
304 294
 					$target->ipath = $base->ipath;
305 295
 					if ($relative->iquery !== null) {
306 296
 						$target->iquery = $relative->iquery;
307
-					}
308
-					elseif ($base->iquery !== null) {
297
+					} elseif ($base->iquery !== null) {
309 298
 						$target->iquery = $base->iquery;
310 299
 					}
311 300
 				}
312 301
 				$target->ifragment = $relative->ifragment;
313 302
 			}
314
-		}
315
-		else {
303
+		} else {
316 304
 			$target = clone $base;
317 305
 			$target->ifragment = null;
318 306
 		}
@@ -364,8 +352,7 @@  discard block
 block discarded – undo
364 352
 			// then remove that prefix from the input buffer; otherwise,
365 353
 			if (strpos($input, '../') === 0) {
366 354
 				$input = substr($input, 3);
367
-			}
368
-			elseif (strpos($input, './') === 0) {
355
+			} elseif (strpos($input, './') === 0) {
369 356
 				$input = substr($input, 2);
370 357
 			}
371 358
 			// B: if the input buffer begins with a prefix of "/./" or "/.",
@@ -373,8 +360,7 @@  discard block
 block discarded – undo
373 360
 			// with "/" in the input buffer; otherwise,
374 361
 			elseif (strpos($input, '/./') === 0) {
375 362
 				$input = substr($input, 2);
376
-			}
377
-			elseif ($input === '/.') {
363
+			} elseif ($input === '/.') {
378 364
 				$input = '/';
379 365
 			}
380 366
 			// C: if the input buffer begins with a prefix of "/../" or "/..",
@@ -384,8 +370,7 @@  discard block
 block discarded – undo
384 370
 			elseif (strpos($input, '/../') === 0) {
385 371
 				$input = substr($input, 3);
386 372
 				$output = substr_replace($output, '', strrpos($output, '/'));
387
-			}
388
-			elseif ($input === '/..') {
373
+			} elseif ($input === '/..') {
389 374
 				$input = '/';
390 375
 				$output = substr_replace($output, '', strrpos($output, '/'));
391 376
 			}
@@ -401,8 +386,7 @@  discard block
 block discarded – undo
401 386
 			elseif (($pos = strpos($input, '/', 1)) !== false) {
402 387
 				$output .= substr($input, 0, $pos);
403 388
 				$input = substr_replace($input, '', 0, $pos);
404
-			}
405
-			else {
389
+			} else {
406 390
 				$output .= $input;
407 391
 				$input = '';
408 392
 			}
@@ -484,8 +468,7 @@  discard block
 block discarded – undo
484 468
 							break;
485 469
 						}
486 470
 					}
487
-				}
488
-				else {
471
+				} else {
489 472
 					$position = $strlen - 1;
490 473
 					$valid = false;
491 474
 				}
@@ -636,8 +619,7 @@  discard block
 block discarded – undo
636 619
 					for ($j = $start; $j <= $i; $j++) {
637 620
 						$string .= '%' . strtoupper($bytes[$j]);
638 621
 					}
639
-				}
640
-				else {
622
+				} else {
641 623
 					for ($j = $start; $j <= $i; $j++) {
642 624
 						$string .= chr(hexdec($bytes[$j]));
643 625
 					}
@@ -762,12 +744,10 @@  discard block
 block discarded – undo
762 744
 	protected function set_scheme($scheme) {
763 745
 		if ($scheme === null) {
764 746
 			$this->scheme = null;
765
-		}
766
-		elseif (!preg_match('/^[A-Za-z][0-9A-Za-z+\-.]*$/', $scheme)) {
747
+		} elseif (!preg_match('/^[A-Za-z][0-9A-Za-z+\-.]*$/', $scheme)) {
767 748
 			$this->scheme = null;
768 749
 			return false;
769
-		}
770
-		else {
750
+		} else {
771 751
 			$this->scheme = strtolower($scheme);
772 752
 		}
773 753
 		return true;
@@ -805,8 +785,7 @@  discard block
 block discarded – undo
805 785
 		if (($iuserinfo_end = strrpos($remaining, '@')) !== false) {
806 786
 			$iuserinfo = substr($remaining, 0, $iuserinfo_end);
807 787
 			$remaining = substr($remaining, $iuserinfo_end + 1);
808
-		}
809
-		else {
788
+		} else {
810 789
 			$iuserinfo = null;
811 790
 		}
812 791
 		if (($port_start = strpos($remaining, ':', strpos($remaining, ']'))) !== false) {
@@ -815,8 +794,7 @@  discard block
 block discarded – undo
815 794
 				$port = null;
816 795
 			}
817 796
 			$remaining = substr($remaining, 0, $port_start);
818
-		}
819
-		else {
797
+		} else {
820 798
 			$port = null;
821 799
 		}
822 800
 
@@ -841,8 +819,7 @@  discard block
 block discarded – undo
841 819
 	protected function set_userinfo($iuserinfo) {
842 820
 		if ($iuserinfo === null) {
843 821
 			$this->iuserinfo = null;
844
-		}
845
-		else {
822
+		} else {
846 823
 			$this->iuserinfo = $this->replace_invalid_with_pct_encoding($iuserinfo, '!$&\'()*+,;=:');
847 824
 			$this->scheme_normalization();
848 825
 		}
@@ -865,13 +842,11 @@  discard block
 block discarded – undo
865 842
 		if (substr($ihost, 0, 1) === '[' && substr($ihost, -1) === ']') {
866 843
 			if (Requests_IPv6::check_ipv6(substr($ihost, 1, -1))) {
867 844
 				$this->ihost = '[' . Requests_IPv6::compress(substr($ihost, 1, -1)) . ']';
868
-			}
869
-			else {
845
+			} else {
870 846
 				$this->ihost = null;
871 847
 				return false;
872 848
 			}
873
-		}
874
-		else {
849
+		} else {
875 850
 			$ihost = $this->replace_invalid_with_pct_encoding($ihost, '!$&\'()*+,;=');
876 851
 
877 852
 			// Lowercase, but ignore pct-encoded sections (as they should
@@ -882,8 +857,7 @@  discard block
 block discarded – undo
882 857
 			while (($position += strcspn($ihost, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ%', $position)) < $strlen) {
883 858
 				if ($ihost[$position] === '%') {
884 859
 					$position += 3;
885
-				}
886
-				else {
860
+				} else {
887 861
 					$ihost[$position] = strtolower($ihost[$position]);
888 862
 					$position++;
889 863
 				}
@@ -936,8 +910,7 @@  discard block
 block discarded – undo
936 910
 
937 911
 		if (isset($cache[$ipath])) {
938 912
 			$this->ipath = $cache[$ipath][(int) ($this->scheme !== null)];
939
-		}
940
-		else {
913
+		} else {
941 914
 			$valid = $this->replace_invalid_with_pct_encoding($ipath, '!$&\'()*+,;=@:/');
942 915
 			$removed = $this->remove_dot_segments($valid);
943 916
 
@@ -957,8 +930,7 @@  discard block
 block discarded – undo
957 930
 	protected function set_query($iquery) {
958 931
 		if ($iquery === null) {
959 932
 			$this->iquery = null;
960
-		}
961
-		else {
933
+		} else {
962 934
 			$this->iquery = $this->replace_invalid_with_pct_encoding($iquery, '!$&\'()*+,;=:@/?', true);
963 935
 			$this->scheme_normalization();
964 936
 		}
@@ -974,8 +946,7 @@  discard block
 block discarded – undo
974 946
 	protected function set_fragment($ifragment) {
975 947
 		if ($ifragment === null) {
976 948
 			$this->ifragment = null;
977
-		}
978
-		else {
949
+		} else {
979 950
 			$this->ifragment = $this->replace_invalid_with_pct_encoding($ifragment, '!$&\'()*+,;=:@/?');
980 951
 			$this->scheme_normalization();
981 952
 		}
@@ -1078,8 +1049,7 @@  discard block
 block discarded – undo
1078 1049
 		$iauthority = $this->get_iauthority();
1079 1050
 		if (is_string($iauthority)) {
1080 1051
 			return $this->to_uri($iauthority);
1081
-		}
1082
-		else {
1052
+		} else {
1083 1053
 			return $iauthority;
1084 1054
 		}
1085 1055
 	}
Please login to merge, or discard this patch.
wp/wp-includes/Requests/IPv6.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -106,8 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
 		if ($ip_parts[1] !== '') {
108 108
 			return implode(':', $ip_parts);
109
-		}
110
-		else {
109
+		} else {
111 110
 			return $ip_parts[0];
112 111
 		}
113 112
 	}
@@ -130,8 +129,7 @@  discard block
 block discarded – undo
130 129
 			$ipv6_part = substr($ip, 0, $pos);
131 130
 			$ipv4_part = substr($ip, $pos + 1);
132 131
 			return array($ipv6_part, $ipv4_part);
133
-		}
134
-		else {
132
+		} else {
135 133
 			return array($ip, '');
136 134
 		}
137 135
 	}
@@ -182,8 +180,7 @@  discard block
 block discarded – undo
182 180
 				}
183 181
 			}
184 182
 			return true;
185
-		}
186
-		else {
183
+		} else {
187 184
 			return false;
188 185
 		}
189 186
 	}
Please login to merge, or discard this patch.
wp/wp-includes/Requests/Session.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -251,8 +251,7 @@
 block discarded – undo
251 251
 			if (is_array($this->data)) {
252 252
 				$request['data'] = $this->data;
253 253
 			}
254
-		}
255
-		elseif (is_array($request['data']) && is_array($this->data)) {
254
+		} elseif (is_array($request['data']) && is_array($this->data)) {
256 255
 			$request['data'] = array_merge($this->data, $request['data']);
257 256
 		}
258 257
 
Please login to merge, or discard this patch.
wp/wp-includes/widgets/class-wp-widget-text.php 1 patch
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -486,8 +486,11 @@  discard block
 block discarded – undo
486 486
 			<textarea id="<?php echo $this->get_field_id( 'text' ); ?>" name="<?php echo $this->get_field_name( 'text' ); ?>" class="text sync-input" hidden><?php echo $escaped_text; ?></textarea>
487 487
 			<input id="<?php echo $this->get_field_id( 'filter' ); ?>" name="<?php echo $this->get_field_name( 'filter' ); ?>" class="filter sync-input" type="hidden" value="on">
488 488
 			<input id="<?php echo $this->get_field_id( 'visual' ); ?>" name="<?php echo $this->get_field_name( 'visual' ); ?>" class="visual sync-input" type="hidden" value="on">
489
-		<?php else : ?>
490
-			<input id="<?php echo $this->get_field_id( 'visual' ); ?>" name="<?php echo $this->get_field_name( 'visual' ); ?>" class="visual" type="hidden" value="">
489
+		<?php else {
490
+    : ?>
491
+			<input id="<?php echo $this->get_field_id( 'visual' );
492
+}
493
+?>" name="<?php echo $this->get_field_name( 'visual' ); ?>" class="visual" type="hidden" value="">
491 494
 			<p>
492 495
 				<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label>
493 496
 				<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $instance['title'] ); ?>" />
@@ -495,8 +498,11 @@  discard block
 block discarded – undo
495 498
 			<div class="notice inline notice-info notice-alt">
496 499
 				<?php if ( ! isset( $instance['visual'] ) ) : ?>
497 500
 					<p><?php _e( 'This widget may contain code that may work better in the &#8220;Custom HTML&#8221; widget. How about trying that widget instead?' ); ?></p>
498
-				<?php else : ?>
499
-					<p><?php _e( 'This widget may have contained code that may work better in the &#8220;Custom HTML&#8221; widget. If you have not yet, how about trying that widget instead?' ); ?></p>
501
+				<?php else {
502
+    : ?>
503
+					<p><?php _e( 'This widget may have contained code that may work better in the &#8220;Custom HTML&#8221; widget. If you have not yet, how about trying that widget instead?' );
504
+}
505
+?></p>
500 506
 				<?php endif; ?>
501 507
 			</div>
502 508
 			<p>
@@ -532,8 +538,11 @@  discard block
 block discarded – undo
532 538
 						<h3><?php _e( 'New Custom HTML Widget' ); ?></h3>
533 539
 						<?php if ( is_customize_preview() ) : ?>
534 540
 							<p><?php _e( 'Did you know there is a &#8220;Custom HTML&#8221; widget now? You can find it by pressing the &#8220;<a class="add-widget" href="#">Add a Widget</a>&#8221; button and searching for &#8220;HTML&#8221;. Check it out to add some custom code to your site!' ); ?></p>
535
-						<?php else : ?>
536
-							<p><?php _e( 'Did you know there is a &#8220;Custom HTML&#8221; widget now? You can find it by scanning the list of available widgets on this screen. Check it out to add some custom code to your site!' ); ?></p>
541
+						<?php else {
542
+    : ?>
543
+							<p><?php _e( 'Did you know there is a &#8220;Custom HTML&#8221; widget now? You can find it by scanning the list of available widgets on this screen. Check it out to add some custom code to your site!' );
544
+}
545
+?></p>
537 546
 						<?php endif; ?>
538 547
 						<div class="wp-pointer-buttons">
539 548
 							<a class="close" href="#"><?php _e( 'Dismiss' ); ?></a>
Please login to merge, or discard this patch.