Passed
Push — main ( aaef5c...e4c121 )
by TARIQ
71:39
created
wp/wp-includes/ID3/module.audio.flac.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -181,8 +181,7 @@  discard block
 block discarded – undo
181 181
 
182 182
 			if ($info['flac']['STREAMINFO']['audio_signature'] === str_repeat("\x00", 16)) {
183 183
 				$this->warning('FLAC STREAMINFO.audio_signature is null (known issue with libOggFLAC)');
184
-			}
185
-			else {
184
+			} else {
186 185
 				$info['md5_data_source'] = '';
187 186
 				$md5 = $info['flac']['STREAMINFO']['audio_signature'];
188 187
 				for ($i = 0; $i < strlen($md5); $i++) {
@@ -251,8 +250,7 @@  discard block
 block discarded – undo
251 250
 			if ($info['playtime_seconds'] > 0) {
252 251
 				if (!$this->isDependencyFor('matroska')) {
253 252
 					$info['audio']['bitrate'] = (($info['avdataend'] - $info['avdataoffset']) * 8) / $info['playtime_seconds'];
254
-				}
255
-				else {
253
+				} else {
256 254
 					$this->warning('Cannot determine audio bitrate because total stream size is unknown');
257 255
 				}
258 256
 			}
Please login to merge, or discard this patch.
wp/wp-includes/ID3/module.audio.mp3.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -952,11 +952,9 @@
 block discarded – undo
952 952
 			if ($ExpectedNumberOfAudioBytes > ($info['avdataend'] - $info['avdataoffset'])) {
953 953
 				if ($this->isDependencyFor('matroska') || $this->isDependencyFor('riff')) {
954 954
 					// ignore, audio data is broken into chunks so will always be data "missing"
955
-				}
956
-				elseif (($ExpectedNumberOfAudioBytes - ($info['avdataend'] - $info['avdataoffset'])) == 1) {
955
+				} elseif (($ExpectedNumberOfAudioBytes - ($info['avdataend'] - $info['avdataoffset'])) == 1) {
957 956
 					$this->warning('Last byte of data truncated (this is a known bug in Meracl ID3 Tag Writer before v1.3.5)');
958
-				}
959
-				else {
957
+				} else {
960 958
 					$this->warning('Probable truncated file: expecting '.$ExpectedNumberOfAudioBytes.' bytes of audio data, only found '.($info['avdataend'] - $info['avdataoffset']).' (short by '.($ExpectedNumberOfAudioBytes - ($info['avdataend'] - $info['avdataoffset'])).' bytes)');
961 959
 				}
962 960
 			} else {
Please login to merge, or discard this patch.
wp/wp-includes/ID3/module.audio-video.matroska.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -378,8 +378,7 @@  discard block
 block discarded – undo
378 378
 								$getid3_audio = new $class($getid3_temp, __CLASS__);
379 379
 								if ($track_info['dataformat'] == 'flac') {
380 380
 									$getid3_audio->AnalyzeString($trackarray['CodecPrivate']);
381
-								}
382
-								else {
381
+								} else {
383 382
 									$getid3_audio->Analyze();
384 383
 								}
385 384
 								if (!empty($getid3_temp->info[$header_data_key])) {
@@ -389,8 +388,7 @@  discard block
 block discarded – undo
389 388
 											$track_info[$sub_key] = $value;
390 389
 										}
391 390
 									}
392
-								}
393
-								else {
391
+								} else {
394 392
 									$this->warning('Unable to parse audio data ['.basename(__FILE__).':'.__LINE__.'] because '.$class.'::Analyze() failed at offset '.$getid3_temp->info['avdataoffset']);
395 393
 								}
396 394
 
@@ -1486,16 +1484,14 @@  discard block
 block discarded – undo
1486 1484
 		if ($block_type == EBML_ID_CLUSTERSIMPLEBLOCK) {
1487 1485
 			$block_data['flags']['keyframe']  = (($block_data['flags_raw'] & 0x80) >> 7);
1488 1486
 			//$block_data['flags']['reserved1'] = (($block_data['flags_raw'] & 0x70) >> 4);
1489
-		}
1490
-		else {
1487
+		} else {
1491 1488
 			//$block_data['flags']['reserved1'] = (($block_data['flags_raw'] & 0xF0) >> 4);
1492 1489
 		}
1493 1490
 		$block_data['flags']['invisible'] = (bool)(($block_data['flags_raw'] & 0x08) >> 3);
1494 1491
 		$block_data['flags']['lacing']    =       (($block_data['flags_raw'] & 0x06) >> 1);  // 00=no lacing; 01=Xiph lacing; 11=EBML lacing; 10=fixed-size lacing
1495 1492
 		if ($block_type == EBML_ID_CLUSTERSIMPLEBLOCK) {
1496 1493
 			$block_data['flags']['discardable'] = (($block_data['flags_raw'] & 0x01));
1497
-		}
1498
-		else {
1494
+		} else {
1499 1495
 			//$block_data['flags']['reserved2'] = (($block_data['flags_raw'] & 0x01) >> 0);
1500 1496
 		}
1501 1497
 		$block_data['flags']['lacing_type'] = self::BlockLacingType($block_data['flags']['lacing']);
@@ -1507,8 +1503,7 @@  discard block
 block discarded – undo
1507 1503
 				for ($i = 1; $i < $block_data['lace_frames']; $i ++) { // Lace-coded size of each frame of the lace, except for the last one (multiple uint8). *This is not used with Fixed-size lacing as it is calculated automatically from (total size of lace) / (number of frames in lace).
1508 1504
 					if ($block_data['flags']['lacing'] == 0x03) { // EBML lacing
1509 1505
 						$block_data['lace_frames_size'][$i] = $this->readEBMLint(); // TODO: read size correctly, calc size for the last frame. For now offsets are deteminded OK with readEBMLint() and that's the most important thing.
1510
-					}
1511
-					else { // Xiph lacing
1506
+					} else { // Xiph lacing
1512 1507
 						$block_data['lace_frames_size'][$i] = 0;
1513 1508
 						do {
1514 1509
 							$size = getid3_lib::BigEndian2Int($this->readEBMLelementData(1));
Please login to merge, or discard this patch.
wp/wp-includes/comment-template.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2560,7 +2560,8 @@  discard block
 block discarded – undo
2560 2560
 			 */
2561 2561
 			do_action( 'comment_form_must_log_in_after' );
2562 2562
 
2563
-		else :
2563
+		else {
2564
+		    :
2564 2565
 
2565 2566
 			printf(
2566 2567
 				'<form action="%s" method="post" id="%s" class="%s"%s>',
@@ -2569,6 +2570,7 @@  discard block
 block discarded – undo
2569 2570
 				esc_attr( $args['class_form'] ),
2570 2571
 				( $html5 ? ' novalidate' : '' )
2571 2572
 			);
2573
+		}
2572 2574
 
2573 2575
 			/**
2574 2576
 			 * Fires at the top of the comment form, inside the form tag.
@@ -2604,9 +2606,11 @@  discard block
 block discarded – undo
2604 2606
 				 */
2605 2607
 				do_action( 'comment_form_logged_in_after', $commenter, $user_identity );
2606 2608
 
2607
-			else :
2609
+			else {
2610
+			    :
2608 2611
 
2609 2612
 				echo $args['comment_notes_before'];
2613
+			}
2610 2614
 
2611 2615
 			endif;
2612 2616
 
Please login to merge, or discard this patch.
wp/wp-includes/IXR/class-IXR-server.php 1 patch
Braces   +10 added lines, -8 removed lines patch added patch discarded remove patch
@@ -136,16 +136,18 @@
 block discarded – undo
136 136
     function output($xml)
137 137
     {
138 138
         $charset = function_exists('get_option') ? get_option('blog_charset') : '';
139
-        if ($charset)
140
-            $xml = '<?xml version="1.0" encoding="'.$charset.'"?>'."\n".$xml;
141
-        else
142
-            $xml = '<?xml version="1.0"?>'."\n".$xml;
139
+        if ($charset) {
140
+                    $xml = '<?xml version="1.0" encoding="'.$charset.'"?>'."\n".$xml;
141
+        } else {
142
+                    $xml = '<?xml version="1.0"?>'."\n".$xml;
143
+        }
143 144
         $length = strlen($xml);
144 145
         header('Connection: close');
145
-        if ($charset)
146
-            header('Content-Type: text/xml; charset='.$charset);
147
-        else
148
-            header('Content-Type: text/xml');
146
+        if ($charset) {
147
+                    header('Content-Type: text/xml; charset='.$charset);
148
+        } else {
149
+                    header('Content-Type: text/xml');
150
+        }
149 151
         header('Date: '.gmdate('r'));
150 152
         echo $xml;
151 153
         exit;
Please login to merge, or discard this patch.
wp/wp-includes/SimplePie/XML/Declaration/Parser.php 1 patch
Braces   +13 added lines, -26 removed lines patch added patch discarded remove patch
@@ -191,8 +191,7 @@  discard block
 block discarded – undo
191 191
 		if ($this->skip_whitespace())
192 192
 		{
193 193
 			$this->state = 'version_name';
194
-		}
195
-		else
194
+		} else
196 195
 		{
197 196
 			$this->state = false;
198 197
 		}
@@ -205,8 +204,7 @@  discard block
 block discarded – undo
205 204
 			$this->position += 7;
206 205
 			$this->skip_whitespace();
207 206
 			$this->state = 'version_equals';
208
-		}
209
-		else
207
+		} else
210 208
 		{
211 209
 			$this->state = false;
212 210
 		}
@@ -219,8 +217,7 @@  discard block
 block discarded – undo
219 217
 			$this->position++;
220 218
 			$this->skip_whitespace();
221 219
 			$this->state = 'version_value';
222
-		}
223
-		else
220
+		} else
224 221
 		{
225 222
 			$this->state = false;
226 223
 		}
@@ -234,13 +231,11 @@  discard block
 block discarded – undo
234 231
 			if ($this->has_data())
235 232
 			{
236 233
 				$this->state = 'encoding_name';
237
-			}
238
-			else
234
+			} else
239 235
 			{
240 236
 				$this->state = 'emit';
241 237
 			}
242
-		}
243
-		else
238
+		} else
244 239
 		{
245 240
 			$this->state = false;
246 241
 		}
@@ -253,8 +248,7 @@  discard block
 block discarded – undo
253 248
 			$this->position += 8;
254 249
 			$this->skip_whitespace();
255 250
 			$this->state = 'encoding_equals';
256
-		}
257
-		else
251
+		} else
258 252
 		{
259 253
 			$this->state = 'standalone_name';
260 254
 		}
@@ -267,8 +261,7 @@  discard block
 block discarded – undo
267 261
 			$this->position++;
268 262
 			$this->skip_whitespace();
269 263
 			$this->state = 'encoding_value';
270
-		}
271
-		else
264
+		} else
272 265
 		{
273 266
 			$this->state = false;
274 267
 		}
@@ -282,13 +275,11 @@  discard block
 block discarded – undo
282 275
 			if ($this->has_data())
283 276
 			{
284 277
 				$this->state = 'standalone_name';
285
-			}
286
-			else
278
+			} else
287 279
 			{
288 280
 				$this->state = 'emit';
289 281
 			}
290
-		}
291
-		else
282
+		} else
292 283
 		{
293 284
 			$this->state = false;
294 285
 		}
@@ -301,8 +292,7 @@  discard block
 block discarded – undo
301 292
 			$this->position += 10;
302 293
 			$this->skip_whitespace();
303 294
 			$this->state = 'standalone_equals';
304
-		}
305
-		else
295
+		} else
306 296
 		{
307 297
 			$this->state = false;
308 298
 		}
@@ -315,8 +305,7 @@  discard block
 block discarded – undo
315 305
 			$this->position++;
316 306
 			$this->skip_whitespace();
317 307
 			$this->state = 'standalone_value';
318
-		}
319
-		else
308
+		} else
320 309
 		{
321 310
 			$this->state = false;
322 311
 		}
@@ -345,13 +334,11 @@  discard block
 block discarded – undo
345 334
 			if ($this->has_data())
346 335
 			{
347 336
 				$this->state = false;
348
-			}
349
-			else
337
+			} else
350 338
 			{
351 339
 				$this->state = 'emit';
352 340
 			}
353
-		}
354
-		else
341
+		} else
355 342
 		{
356 343
 			$this->state = false;
357 344
 		}
Please login to merge, or discard this patch.
wp/wp-includes/SimplePie/Registry.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -176,8 +176,7 @@
 block discarded – undo
176 176
 		if (!method_exists($class, '__construct'))
177 177
 		{
178 178
 			$instance = new $class;
179
-		}
180
-		else
179
+		} else
181 180
 		{
182 181
 			$reflector = new ReflectionClass($class);
183 182
 			$instance = $reflector->newInstanceArgs($parameters);
Please login to merge, or discard this patch.
wp/wp-includes/SimplePie/Parse/Date.php 1 patch
Braces   +8 added lines, -16 removed lines patch added patch discarded remove patch
@@ -673,8 +673,7 @@  discard block
 block discarded – undo
673 673
 		if (is_callable($callback))
674 674
 		{
675 675
 			$this->user[] = $callback;
676
-		}
677
-		else
676
+		} else
678 677
 		{
679 678
 			trigger_error('User-supplied function must be a valid callback', E_USER_WARNING);
680 679
 		}
@@ -736,8 +735,7 @@  discard block
 block discarded – undo
736 735
 				{
737 736
 					$timezone = 0 - $timezone;
738 737
 				}
739
-			}
740
-			else
738
+			} else
741 739
 			{
742 740
 				$timezone = 0;
743 741
 			}
@@ -781,8 +779,7 @@  discard block
 block discarded – undo
781 779
 					{
782 780
 						$position++;
783 781
 						continue;
784
-					}
785
-					elseif (isset($string[$position]))
782
+					} elseif (isset($string[$position]))
786 783
 					{
787 784
 						switch ($string[$position])
788 785
 						{
@@ -795,14 +792,12 @@  discard block
 block discarded – undo
795 792
 								break;
796 793
 						}
797 794
 						$position++;
798
-					}
799
-					else
795
+					} else
800 796
 					{
801 797
 						break;
802 798
 					}
803 799
 				}
804
-			}
805
-			else
800
+			} else
806 801
 			{
807 802
 				$output .= '(';
808 803
 			}
@@ -881,8 +876,7 @@  discard block
 block discarded – undo
881 876
 			if ($match[4] < 50)
882 877
 			{
883 878
 				$match[4] += 2000;
884
-			}
885
-			elseif ($match[4] < 1000)
879
+			} elseif ($match[4] < 1000)
886 880
 			{
887 881
 				$match[4] += 1900;
888 882
 			}
@@ -891,8 +885,7 @@  discard block
 block discarded – undo
891 885
 			if ($match[7] !== '')
892 886
 			{
893 887
 				$second = $match[7];
894
-			}
895
-			else
888
+			} else
896 889
 			{
897 890
 				$second = 0;
898 891
 			}
@@ -954,8 +947,7 @@  discard block
 block discarded – undo
954 947
 			if ($match[4] < 50)
955 948
 			{
956 949
 				$match[4] += 2000;
957
-			}
958
-			else
950
+			} else
959 951
 			{
960 952
 				$match[4] += 1900;
961 953
 			}
Please login to merge, or discard this patch.
wp/wp-includes/SimplePie/Item.php 1 patch
Braces   +126 added lines, -253 removed lines patch added patch discarded remove patch
@@ -214,24 +214,19 @@  discard block
 block discarded – undo
214 214
 			if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'id'))
215 215
 			{
216 216
 				return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
217
-			}
218
-			elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'id'))
217
+			} elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'id'))
219 218
 			{
220 219
 				return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
221
-			}
222
-			elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'guid'))
220
+			} elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'guid'))
223 221
 			{
224 222
 				return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
225
-			}
226
-			elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_11, 'identifier'))
223
+			} elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_11, 'identifier'))
227 224
 			{
228 225
 				return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
229
-			}
230
-			elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_10, 'identifier'))
226
+			} elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_10, 'identifier'))
231 227
 			{
232 228
 				return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
233
-			}
234
-			elseif (isset($this->data['attribs'][SIMPLEPIE_NAMESPACE_RDF]['about']))
229
+			} elseif (isset($this->data['attribs'][SIMPLEPIE_NAMESPACE_RDF]['about']))
235 230
 			{
236 231
 				return $this->sanitize($this->data['attribs'][SIMPLEPIE_NAMESPACE_RDF]['about'], SIMPLEPIE_CONSTRUCT_TEXT);
237 232
 			}
@@ -239,8 +234,7 @@  discard block
 block discarded – undo
239 234
 		if ($fn === false)
240 235
 		{
241 236
 			return null;
242
-		}
243
-		elseif (!is_callable($fn))
237
+		} elseif (!is_callable($fn))
244 238
 		{
245 239
 			trigger_error('User-supplied function $fn must be callable', E_USER_WARNING);
246 240
 			$fn = 'md5';
@@ -264,32 +258,25 @@  discard block
 block discarded – undo
264 258
 			if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'title'))
265 259
 			{
266 260
 				$this->data['title'] = $this->sanitize($return[0]['data'], $this->registry->call('Misc', 'atom_10_construct_type', array($return[0]['attribs'])), $this->get_base($return[0]));
267
-			}
268
-			elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'title'))
261
+			} elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'title'))
269 262
 			{
270 263
 				$this->data['title'] = $this->sanitize($return[0]['data'], $this->registry->call('Misc', 'atom_03_construct_type', array($return[0]['attribs'])), $this->get_base($return[0]));
271
-			}
272
-			elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_10, 'title'))
264
+			} elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_10, 'title'))
273 265
 			{
274 266
 				$this->data['title'] = $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_MAYBE_HTML, $this->get_base($return[0]));
275
-			}
276
-			elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_090, 'title'))
267
+			} elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_090, 'title'))
277 268
 			{
278 269
 				$this->data['title'] = $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_MAYBE_HTML, $this->get_base($return[0]));
279
-			}
280
-			elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'title'))
270
+			} elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'title'))
281 271
 			{
282 272
 				$this->data['title'] = $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_MAYBE_HTML, $this->get_base($return[0]));
283
-			}
284
-			elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_11, 'title'))
273
+			} elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_11, 'title'))
285 274
 			{
286 275
 				$this->data['title'] = $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
287
-			}
288
-			elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_10, 'title'))
276
+			} elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_10, 'title'))
289 277
 			{
290 278
 				$this->data['title'] = $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
291
-			}
292
-			else
279
+			} else
293 280
 			{
294 281
 				$this->data['title'] = null;
295 282
 			}
@@ -318,49 +305,39 @@  discard block
 block discarded – undo
318 305
 		    ($return = $this->sanitize($tags[0]['data'], $this->registry->call('Misc', 'atom_10_construct_type', array($tags[0]['attribs'])), $this->get_base($tags[0]))))
319 306
 		{
320 307
 			return $return;
321
-		}
322
-		elseif (($tags = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'summary')) &&
308
+		} elseif (($tags = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'summary')) &&
323 309
 		        ($return = $this->sanitize($tags[0]['data'], $this->registry->call('Misc', 'atom_03_construct_type', array($tags[0]['attribs'])), $this->get_base($tags[0]))))
324 310
 		{
325 311
 			return $return;
326
-		}
327
-		elseif (($tags = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_10, 'description')) &&
312
+		} elseif (($tags = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_10, 'description')) &&
328 313
 		        ($return = $this->sanitize($tags[0]['data'], SIMPLEPIE_CONSTRUCT_MAYBE_HTML, $this->get_base($tags[0]))))
329 314
 		{
330 315
 			return $return;
331
-		}
332
-		elseif (($tags = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'description')) &&
316
+		} elseif (($tags = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'description')) &&
333 317
 		        ($return = $this->sanitize($tags[0]['data'], SIMPLEPIE_CONSTRUCT_HTML, $this->get_base($tags[0]))))
334 318
 		{
335 319
 			return $return;
336
-		}
337
-		elseif (($tags = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_11, 'description')) &&
320
+		} elseif (($tags = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_11, 'description')) &&
338 321
 		        ($return = $this->sanitize($tags[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT)))
339 322
 		{
340 323
 			return $return;
341
-		}
342
-		elseif (($tags = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_10, 'description')) &&
324
+		} elseif (($tags = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_10, 'description')) &&
343 325
 		        ($return = $this->sanitize($tags[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT)))
344 326
 		{
345 327
 			return $return;
346
-		}
347
-		elseif (($tags = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'summary')) &&
328
+		} elseif (($tags = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'summary')) &&
348 329
 		        ($return = $this->sanitize($tags[0]['data'], SIMPLEPIE_CONSTRUCT_HTML, $this->get_base($tags[0]))))
349 330
 		{
350 331
 			return $return;
351
-		}
352
-		elseif (($tags = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'subtitle')) &&
332
+		} elseif (($tags = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'subtitle')) &&
353 333
 		        ($return = $this->sanitize($tags[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT)))
354 334
 		{
355 335
 			return $return;
356
-		}
357
-		elseif (($tags = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_090, 'description')) &&
336
+		} elseif (($tags = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_090, 'description')) &&
358 337
 		        ($return = $this->sanitize($tags[0]['data'], SIMPLEPIE_CONSTRUCT_HTML)))
359 338
 		{
360 339
 			return $return;
361
-		}
362
-
363
-		elseif (!$description_only)
340
+		} elseif (!$description_only)
364 341
 		{
365 342
 			return $this->get_content(true);
366 343
 		}
@@ -388,18 +365,15 @@  discard block
 block discarded – undo
388 365
 		    ($return = $this->sanitize($tags[0]['data'], $this->registry->call('Misc', 'atom_10_content_construct_type', array($tags[0]['attribs'])), $this->get_base($tags[0]))))
389 366
 		{
390 367
 			return $return;
391
-		}
392
-		elseif (($tags = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'content')) &&
368
+		} elseif (($tags = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'content')) &&
393 369
 		        ($return = $this->sanitize($tags[0]['data'], $this->registry->call('Misc', 'atom_03_construct_type', array($tags[0]['attribs'])), $this->get_base($tags[0]))))
394 370
 		{
395 371
 			return $return;
396
-		}
397
-		elseif (($tags = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_10_MODULES_CONTENT, 'encoded')) &&
372
+		} elseif (($tags = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_10_MODULES_CONTENT, 'encoded')) &&
398 373
 		        ($return = $this->sanitize($tags[0]['data'], SIMPLEPIE_CONSTRUCT_HTML, $this->get_base($tags[0]))))
399 374
 		{
400 375
 			return $return;
401
-		}
402
-		elseif (!$content_only)
376
+		} elseif (!$content_only)
403 377
 		{
404 378
 			return $this->get_description(true);
405 379
 		}
@@ -422,8 +396,7 @@  discard block
 block discarded – undo
422 396
 			if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'thumbnail'))
423 397
 			{
424 398
 				$this->data['thumbnail'] = $return[0]['attribs'][''];
425
-			}
426
-			else
399
+			} else
427 400
 			{
428 401
 				$this->data['thumbnail'] = null;
429 402
 			}
@@ -489,8 +462,7 @@  discard block
 block discarded – undo
489 462
 			if (isset($category['attribs']['']['domain']))
490 463
 			{
491 464
 				$scheme = $this->sanitize($category['attribs']['']['domain'], SIMPLEPIE_CONSTRUCT_TEXT);
492
-			}
493
-			else
465
+			} else
494 466
 			{
495 467
 				$scheme = null;
496 468
 			}
@@ -690,12 +662,10 @@  discard block
 block discarded – undo
690 662
 		if (!empty($authors))
691 663
 		{
692 664
 			return array_unique($authors);
693
-		}
694
-		elseif (($source = $this->get_source()) && ($authors = $source->get_authors()))
665
+		} elseif (($source = $this->get_source()) && ($authors = $source->get_authors()))
695 666
 		{
696 667
 			return $authors;
697
-		}
698
-		elseif ($authors = $this->feed->get_authors())
668
+		} elseif ($authors = $this->feed->get_authors())
699 669
 		{
700 670
 			return $authors;
701 671
 		}
@@ -716,12 +686,10 @@  discard block
 block discarded – undo
716 686
 		if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'rights'))
717 687
 		{
718 688
 			return $this->sanitize($return[0]['data'], $this->registry->call('Misc', 'atom_10_construct_type', array($return[0]['attribs'])), $this->get_base($return[0]));
719
-		}
720
-		elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_11, 'rights'))
689
+		} elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_11, 'rights'))
721 690
 		{
722 691
 			return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
723
-		}
724
-		elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_10, 'rights'))
692
+		} elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_10, 'rights'))
725 693
 		{
726 694
 			return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
727 695
 		}
@@ -750,32 +718,25 @@  discard block
 block discarded – undo
750 718
 			if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'published'))
751 719
 			{
752 720
 				$this->data['date']['raw'] = $return[0]['data'];
753
-			}
754
-			elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'pubDate'))
721
+			} elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'pubDate'))
755 722
 			{
756 723
 				$this->data['date']['raw'] = $return[0]['data'];
757
-			}
758
-			elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_11, 'date'))
724
+			} elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_11, 'date'))
759 725
 			{
760 726
 				$this->data['date']['raw'] = $return[0]['data'];
761
-			}
762
-			elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_10, 'date'))
727
+			} elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_10, 'date'))
763 728
 			{
764 729
 				$this->data['date']['raw'] = $return[0]['data'];
765
-			}
766
-			elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'updated'))
730
+			} elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'updated'))
767 731
 			{
768 732
 				$this->data['date']['raw'] = $return[0]['data'];
769
-			}
770
-			elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'issued'))
733
+			} elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'issued'))
771 734
 			{
772 735
 				$this->data['date']['raw'] = $return[0]['data'];
773
-			}
774
-			elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'created'))
736
+			} elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'created'))
775 737
 			{
776 738
 				$this->data['date']['raw'] = $return[0]['data'];
777
-			}
778
-			elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'modified'))
739
+			} elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'modified'))
779 740
 			{
780 741
 				$this->data['date']['raw'] = $return[0]['data'];
781 742
 			}
@@ -784,8 +745,7 @@  discard block
 block discarded – undo
784 745
 			{
785 746
 				$parser = $this->registry->call('Parse_Date', 'get');
786 747
 				$this->data['date']['parsed'] = $parser->parse($this->data['date']['raw']);
787
-			}
788
-			else
748
+			} else
789 749
 			{
790 750
 				$this->data['date'] = null;
791 751
 			}
@@ -833,8 +793,7 @@  discard block
 block discarded – undo
833 793
 			{
834 794
 				$parser = $this->registry->call('Parse_Date', 'get');
835 795
 				$this->data['updated']['parsed'] = $parser->parse($this->data['updated']['raw']);
836
-			}
837
-			else
796
+			} else
838 797
 			{
839 798
 				$this->data['updated'] = null;
840 799
 			}
@@ -876,8 +835,7 @@  discard block
 block discarded – undo
876 835
 		if (!$date_format)
877 836
 		{
878 837
 			return $this->sanitize($this->get_date(''), SIMPLEPIE_CONSTRUCT_TEXT);
879
-		}
880
-		elseif (($date = $this->get_date('U')) !== null && $date !== false)
838
+		} elseif (($date = $this->get_date('U')) !== null && $date !== false)
881 839
 		{
882 840
 			return strftime($date_format, $date);
883 841
 		}
@@ -938,8 +896,7 @@  discard block
 block discarded – undo
938 896
 		if ($link !== null)
939 897
 		{
940 898
 			return $link;
941
-		}
942
-		elseif ($enclosure !== null)
899
+		} elseif ($enclosure !== null)
943 900
 		{
944 901
 			return $enclosure->get_link();
945 902
 		}
@@ -1026,13 +983,11 @@  discard block
 block discarded – undo
1026 983
 					{
1027 984
 						$this->data['links'][SIMPLEPIE_IANA_LINK_RELATIONS_REGISTRY . $key] = array_merge($this->data['links'][$key], $this->data['links'][SIMPLEPIE_IANA_LINK_RELATIONS_REGISTRY . $key]);
1028 985
 						$this->data['links'][$key] =& $this->data['links'][SIMPLEPIE_IANA_LINK_RELATIONS_REGISTRY . $key];
1029
-					}
1030
-					else
986
+					} else
1031 987
 					{
1032 988
 						$this->data['links'][SIMPLEPIE_IANA_LINK_RELATIONS_REGISTRY . $key] =& $this->data['links'][$key];
1033 989
 					}
1034
-				}
1035
-				elseif (substr($key, 0, 41) === SIMPLEPIE_IANA_LINK_RELATIONS_REGISTRY)
990
+				} elseif (substr($key, 0, 41) === SIMPLEPIE_IANA_LINK_RELATIONS_REGISTRY)
1036 991
 				{
1037 992
 					$this->data['links'][substr($key, 41)] =& $this->data['links'][$key];
1038 993
 				}
@@ -1138,8 +1093,7 @@  discard block
 block discarded – undo
1138 1093
 					}
1139 1094
 					$captions_parent[] = $this->registry->create('Caption', array($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text));
1140 1095
 				}
1141
-			}
1142
-			elseif ($captions = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'text'))
1096
+			} elseif ($captions = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'text'))
1143 1097
 			{
1144 1098
 				foreach ($captions as $caption)
1145 1099
 				{
@@ -1189,8 +1143,7 @@  discard block
 block discarded – undo
1189 1143
 				if (isset($category['attribs']['']['scheme']))
1190 1144
 				{
1191 1145
 					$scheme = $this->sanitize($category['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT);
1192
-				}
1193
-				else
1146
+				} else
1194 1147
 				{
1195 1148
 					$scheme = 'http://search.yahoo.com/mrss/category_schema';
1196 1149
 				}
@@ -1212,8 +1165,7 @@  discard block
 block discarded – undo
1212 1165
 				if (isset($category['attribs']['']['scheme']))
1213 1166
 				{
1214 1167
 					$scheme = $this->sanitize($category['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT);
1215
-				}
1216
-				else
1168
+				} else
1217 1169
 				{
1218 1170
 					$scheme = 'http://search.yahoo.com/mrss/category_schema';
1219 1171
 				}
@@ -1265,8 +1217,7 @@  discard block
 block discarded – undo
1265 1217
 					$copyright_label = $this->sanitize($copyright[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
1266 1218
 				}
1267 1219
 				$copyrights_parent = $this->registry->create('Copyright', array($copyright_url, $copyright_label));
1268
-			}
1269
-			elseif ($copyright = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'copyright'))
1220
+			} elseif ($copyright = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'copyright'))
1270 1221
 			{
1271 1222
 				$copyright_url = null;
1272 1223
 				$copyright_label = null;
@@ -1296,8 +1247,7 @@  discard block
 block discarded – undo
1296 1247
 					if (isset($credit['attribs']['']['scheme']))
1297 1248
 					{
1298 1249
 						$credit_scheme = $this->sanitize($credit['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT);
1299
-					}
1300
-					else
1250
+					} else
1301 1251
 					{
1302 1252
 						$credit_scheme = 'urn:ebu';
1303 1253
 					}
@@ -1307,8 +1257,7 @@  discard block
 block discarded – undo
1307 1257
 					}
1308 1258
 					$credits_parent[] = $this->registry->create('Credit', array($credit_role, $credit_scheme, $credit_name));
1309 1259
 				}
1310
-			}
1311
-			elseif ($credits = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'credit'))
1260
+			} elseif ($credits = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'credit'))
1312 1261
 			{
1313 1262
 				foreach ($credits as $credit)
1314 1263
 				{
@@ -1322,8 +1271,7 @@  discard block
 block discarded – undo
1322 1271
 					if (isset($credit['attribs']['']['scheme']))
1323 1272
 					{
1324 1273
 						$credit_scheme = $this->sanitize($credit['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT);
1325
-					}
1326
-					else
1274
+					} else
1327 1275
 					{
1328 1276
 						$credit_scheme = 'urn:ebu';
1329 1277
 					}
@@ -1346,8 +1294,7 @@  discard block
 block discarded – undo
1346 1294
 				{
1347 1295
 					$description_parent = $this->sanitize($description_parent[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
1348 1296
 				}
1349
-			}
1350
-			elseif ($description_parent = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'description'))
1297
+			} elseif ($description_parent = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'description'))
1351 1298
 			{
1352 1299
 				if (isset($description_parent[0]['data']))
1353 1300
 				{
@@ -1397,15 +1344,13 @@  discard block
 block discarded – undo
1397 1344
 					if (isset($hash['attribs']['']['algo']))
1398 1345
 					{
1399 1346
 						$algo = $this->sanitize($hash['attribs']['']['algo'], SIMPLEPIE_CONSTRUCT_TEXT);
1400
-					}
1401
-					else
1347
+					} else
1402 1348
 					{
1403 1349
 						$algo = 'md5';
1404 1350
 					}
1405 1351
 					$hashes_parent[] = $algo.':'.$value;
1406 1352
 				}
1407
-			}
1408
-			elseif ($hashes_iterator = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'hash'))
1353
+			} elseif ($hashes_iterator = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'hash'))
1409 1354
 			{
1410 1355
 				foreach ($hashes_iterator as $hash)
1411 1356
 				{
@@ -1418,8 +1363,7 @@  discard block
 block discarded – undo
1418 1363
 					if (isset($hash['attribs']['']['algo']))
1419 1364
 					{
1420 1365
 						$algo = $this->sanitize($hash['attribs']['']['algo'], SIMPLEPIE_CONSTRUCT_TEXT);
1421
-					}
1422
-					else
1366
+					} else
1423 1367
 					{
1424 1368
 						$algo = 'md5';
1425 1369
 					}
@@ -1443,8 +1387,7 @@  discard block
 block discarded – undo
1443 1387
 					}
1444 1388
 				}
1445 1389
 				unset($temp);
1446
-			}
1447
-			elseif ($keywords = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'keywords'))
1390
+			} elseif ($keywords = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'keywords'))
1448 1391
 			{
1449 1392
 				if (isset($keywords[0]['data']))
1450 1393
 				{
@@ -1455,8 +1398,7 @@  discard block
 block discarded – undo
1455 1398
 					}
1456 1399
 				}
1457 1400
 				unset($temp);
1458
-			}
1459
-			elseif ($keywords = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'keywords'))
1401
+			} elseif ($keywords = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'keywords'))
1460 1402
 			{
1461 1403
 				if (isset($keywords[0]['data']))
1462 1404
 				{
@@ -1467,8 +1409,7 @@  discard block
 block discarded – undo
1467 1409
 					}
1468 1410
 				}
1469 1411
 				unset($temp);
1470
-			}
1471
-			elseif ($keywords = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'keywords'))
1412
+			} elseif ($keywords = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'keywords'))
1472 1413
 			{
1473 1414
 				if (isset($keywords[0]['data']))
1474 1415
 				{
@@ -1492,8 +1433,7 @@  discard block
 block discarded – undo
1492 1433
 				{
1493 1434
 					$player_parent = $this->sanitize($player_parent[0]['attribs']['']['url'], SIMPLEPIE_CONSTRUCT_IRI);
1494 1435
 				}
1495
-			}
1496
-			elseif ($player_parent = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'player'))
1436
+			} elseif ($player_parent = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'player'))
1497 1437
 			{
1498 1438
 				if (isset($player_parent[0]['attribs']['']['url']))
1499 1439
 				{
@@ -1511,8 +1451,7 @@  discard block
 block discarded – undo
1511 1451
 					if (isset($rating['attribs']['']['scheme']))
1512 1452
 					{
1513 1453
 						$rating_scheme = $this->sanitize($rating['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT);
1514
-					}
1515
-					else
1454
+					} else
1516 1455
 					{
1517 1456
 						$rating_scheme = 'urn:simple';
1518 1457
 					}
@@ -1522,8 +1461,7 @@  discard block
 block discarded – undo
1522 1461
 					}
1523 1462
 					$ratings_parent[] = $this->registry->create('Rating', array($rating_scheme, $rating_value));
1524 1463
 				}
1525
-			}
1526
-			elseif ($ratings = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'explicit'))
1464
+			} elseif ($ratings = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'explicit'))
1527 1465
 			{
1528 1466
 				foreach ($ratings as $rating)
1529 1467
 				{
@@ -1535,8 +1473,7 @@  discard block
 block discarded – undo
1535 1473
 					}
1536 1474
 					$ratings_parent[] = $this->registry->create('Rating', array($rating_scheme, $rating_value));
1537 1475
 				}
1538
-			}
1539
-			elseif ($ratings = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'rating'))
1476
+			} elseif ($ratings = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'rating'))
1540 1477
 			{
1541 1478
 				foreach ($ratings as $rating)
1542 1479
 				{
@@ -1545,8 +1482,7 @@  discard block
 block discarded – undo
1545 1482
 					if (isset($rating['attribs']['']['scheme']))
1546 1483
 					{
1547 1484
 						$rating_scheme = $this->sanitize($rating['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT);
1548
-					}
1549
-					else
1485
+					} else
1550 1486
 					{
1551 1487
 						$rating_scheme = 'urn:simple';
1552 1488
 					}
@@ -1556,8 +1492,7 @@  discard block
 block discarded – undo
1556 1492
 					}
1557 1493
 					$ratings_parent[] = $this->registry->create('Rating', array($rating_scheme, $rating_value));
1558 1494
 				}
1559
-			}
1560
-			elseif ($ratings = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'explicit'))
1495
+			} elseif ($ratings = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'explicit'))
1561 1496
 			{
1562 1497
 				foreach ($ratings as $rating)
1563 1498
 				{
@@ -1597,8 +1532,7 @@  discard block
 block discarded – undo
1597 1532
 					}
1598 1533
 					$restrictions_parent[] = $this->registry->create('Restriction', array($restriction_relationship, $restriction_type, $restriction_value));
1599 1534
 				}
1600
-			}
1601
-			elseif ($restrictions = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'block'))
1535
+			} elseif ($restrictions = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'block'))
1602 1536
 			{
1603 1537
 				foreach ($restrictions as $restriction)
1604 1538
 				{
@@ -1611,8 +1545,7 @@  discard block
 block discarded – undo
1611 1545
 					}
1612 1546
 					$restrictions_parent[] = $this->registry->create('Restriction', array($restriction_relationship, $restriction_type, $restriction_value));
1613 1547
 				}
1614
-			}
1615
-			elseif ($restrictions = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'restriction'))
1548
+			} elseif ($restrictions = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'restriction'))
1616 1549
 			{
1617 1550
 				foreach ($restrictions as $restriction)
1618 1551
 				{
@@ -1633,8 +1566,7 @@  discard block
 block discarded – undo
1633 1566
 					}
1634 1567
 					$restrictions_parent[] = $this->registry->create('Restriction', array($restriction_relationship, $restriction_type, $restriction_value));
1635 1568
 				}
1636
-			}
1637
-			elseif ($restrictions = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'block'))
1569
+			} elseif ($restrictions = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'block'))
1638 1570
 			{
1639 1571
 				foreach ($restrictions as $restriction)
1640 1572
 				{
@@ -1651,8 +1583,7 @@  discard block
 block discarded – undo
1651 1583
 			if (is_array($restrictions_parent))
1652 1584
 			{
1653 1585
 				$restrictions_parent = array_values(array_unique($restrictions_parent));
1654
-			}
1655
-			else
1586
+			} else
1656 1587
 			{
1657 1588
 				$restrictions_parent = array(new SimplePie_Restriction('allow', null, 'default'));
1658 1589
 			}
@@ -1667,8 +1598,7 @@  discard block
 block discarded – undo
1667 1598
 						$thumbnails_parent[] = $this->sanitize($thumbnail['attribs']['']['url'], SIMPLEPIE_CONSTRUCT_IRI);
1668 1599
 					}
1669 1600
 				}
1670
-			}
1671
-			elseif ($thumbnails = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'thumbnail'))
1601
+			} elseif ($thumbnails = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'thumbnail'))
1672 1602
 			{
1673 1603
 				foreach ($thumbnails as $thumbnail)
1674 1604
 				{
@@ -1686,8 +1616,7 @@  discard block
 block discarded – undo
1686 1616
 				{
1687 1617
 					$title_parent = $this->sanitize($title_parent[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
1688 1618
 				}
1689
-			}
1690
-			elseif ($title_parent = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'title'))
1619
+			} elseif ($title_parent = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'title'))
1691 1620
 			{
1692 1621
 				if (isset($title_parent[0]['data']))
1693 1622
 				{
@@ -1780,8 +1709,7 @@  discard block
 block discarded – undo
1780 1709
 							if (isset($content['attribs']['']['duration']))
1781 1710
 							{
1782 1711
 								$duration = $this->sanitize($content['attribs']['']['duration'], SIMPLEPIE_CONSTRUCT_TEXT);
1783
-							}
1784
-							else
1712
+							} else
1785 1713
 							{
1786 1714
 								$duration = $duration_parent;
1787 1715
 							}
@@ -1861,8 +1789,7 @@  discard block
 block discarded – undo
1861 1789
 								{
1862 1790
 									$captions = array_values(array_unique($captions));
1863 1791
 								}
1864
-							}
1865
-							elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['text']))
1792
+							} elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['text']))
1866 1793
 							{
1867 1794
 								foreach ($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['text'] as $caption)
1868 1795
 								{
@@ -1897,8 +1824,7 @@  discard block
 block discarded – undo
1897 1824
 								{
1898 1825
 									$captions = array_values(array_unique($captions));
1899 1826
 								}
1900
-							}
1901
-							else
1827
+							} else
1902 1828
 							{
1903 1829
 								$captions = $captions_parent;
1904 1830
 							}
@@ -1918,8 +1844,7 @@  discard block
 block discarded – undo
1918 1844
 									if (isset($category['attribs']['']['scheme']))
1919 1845
 									{
1920 1846
 										$scheme = $this->sanitize($category['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT);
1921
-									}
1922
-									else
1847
+									} else
1923 1848
 									{
1924 1849
 										$scheme = 'http://search.yahoo.com/mrss/category_schema';
1925 1850
 									}
@@ -1944,8 +1869,7 @@  discard block
 block discarded – undo
1944 1869
 									if (isset($category['attribs']['']['scheme']))
1945 1870
 									{
1946 1871
 										$scheme = $this->sanitize($category['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT);
1947
-									}
1948
-									else
1872
+									} else
1949 1873
 									{
1950 1874
 										$scheme = 'http://search.yahoo.com/mrss/category_schema';
1951 1875
 									}
@@ -1959,12 +1883,10 @@  discard block
 block discarded – undo
1959 1883
 							if (is_array($categories) && is_array($categories_parent))
1960 1884
 							{
1961 1885
 								$categories = array_values(array_unique(array_merge($categories, $categories_parent)));
1962
-							}
1963
-							elseif (is_array($categories))
1886
+							} elseif (is_array($categories))
1964 1887
 							{
1965 1888
 								$categories = array_values(array_unique($categories));
1966
-							}
1967
-							elseif (is_array($categories_parent))
1889
+							} elseif (is_array($categories_parent))
1968 1890
 							{
1969 1891
 								$categories = array_values(array_unique($categories_parent));
1970 1892
 							}
@@ -1983,8 +1905,7 @@  discard block
 block discarded – undo
1983 1905
 									$copyright_label = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
1984 1906
 								}
1985 1907
 								$copyrights = $this->registry->create('Copyright', array($copyright_url, $copyright_label));
1986
-							}
1987
-							elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright']))
1908
+							} elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright']))
1988 1909
 							{
1989 1910
 								$copyright_url = null;
1990 1911
 								$copyright_label = null;
@@ -1997,8 +1918,7 @@  discard block
 block discarded – undo
1997 1918
 									$copyright_label = $this->sanitize($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
1998 1919
 								}
1999 1920
 								$copyrights = $this->registry->create('Copyright', array($copyright_url, $copyright_label));
2000
-							}
2001
-							else
1921
+							} else
2002 1922
 							{
2003 1923
 								$copyrights = $copyrights_parent;
2004 1924
 							}
@@ -2018,8 +1938,7 @@  discard block
 block discarded – undo
2018 1938
 									if (isset($credit['attribs']['']['scheme']))
2019 1939
 									{
2020 1940
 										$credit_scheme = $this->sanitize($credit['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT);
2021
-									}
2022
-									else
1941
+									} else
2023 1942
 									{
2024 1943
 										$credit_scheme = 'urn:ebu';
2025 1944
 									}
@@ -2033,8 +1952,7 @@  discard block
 block discarded – undo
2033 1952
 								{
2034 1953
 									$credits = array_values(array_unique($credits));
2035 1954
 								}
2036
-							}
2037
-							elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['credit']))
1955
+							} elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['credit']))
2038 1956
 							{
2039 1957
 								foreach ($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['credit'] as $credit)
2040 1958
 								{
@@ -2048,8 +1966,7 @@  discard block
 block discarded – undo
2048 1966
 									if (isset($credit['attribs']['']['scheme']))
2049 1967
 									{
2050 1968
 										$credit_scheme = $this->sanitize($credit['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT);
2051
-									}
2052
-									else
1969
+									} else
2053 1970
 									{
2054 1971
 										$credit_scheme = 'urn:ebu';
2055 1972
 									}
@@ -2063,8 +1980,7 @@  discard block
 block discarded – undo
2063 1980
 								{
2064 1981
 									$credits = array_values(array_unique($credits));
2065 1982
 								}
2066
-							}
2067
-							else
1983
+							} else
2068 1984
 							{
2069 1985
 								$credits = $credits_parent;
2070 1986
 							}
@@ -2073,12 +1989,10 @@  discard block
 block discarded – undo
2073 1989
 							if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['description']))
2074 1990
 							{
2075 1991
 								$description = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['description'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
2076
-							}
2077
-							elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['description']))
1992
+							} elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['description']))
2078 1993
 							{
2079 1994
 								$description = $this->sanitize($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['description'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
2080
-							}
2081
-							else
1995
+							} else
2082 1996
 							{
2083 1997
 								$description = $description_parent;
2084 1998
 							}
@@ -2097,8 +2011,7 @@  discard block
 block discarded – undo
2097 2011
 									if (isset($hash['attribs']['']['algo']))
2098 2012
 									{
2099 2013
 										$algo = $this->sanitize($hash['attribs']['']['algo'], SIMPLEPIE_CONSTRUCT_TEXT);
2100
-									}
2101
-									else
2014
+									} else
2102 2015
 									{
2103 2016
 										$algo = 'md5';
2104 2017
 									}
@@ -2108,8 +2021,7 @@  discard block
 block discarded – undo
2108 2021
 								{
2109 2022
 									$hashes = array_values(array_unique($hashes));
2110 2023
 								}
2111
-							}
2112
-							elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['hash']))
2024
+							} elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['hash']))
2113 2025
 							{
2114 2026
 								foreach ($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['hash'] as $hash)
2115 2027
 								{
@@ -2122,8 +2034,7 @@  discard block
 block discarded – undo
2122 2034
 									if (isset($hash['attribs']['']['algo']))
2123 2035
 									{
2124 2036
 										$algo = $this->sanitize($hash['attribs']['']['algo'], SIMPLEPIE_CONSTRUCT_TEXT);
2125
-									}
2126
-									else
2037
+									} else
2127 2038
 									{
2128 2039
 										$algo = 'md5';
2129 2040
 									}
@@ -2133,8 +2044,7 @@  discard block
 block discarded – undo
2133 2044
 								{
2134 2045
 									$hashes = array_values(array_unique($hashes));
2135 2046
 								}
2136
-							}
2137
-							else
2047
+							} else
2138 2048
 							{
2139 2049
 								$hashes = $hashes_parent;
2140 2050
 							}
@@ -2155,8 +2065,7 @@  discard block
 block discarded – undo
2155 2065
 								{
2156 2066
 									$keywords = array_values(array_unique($keywords));
2157 2067
 								}
2158
-							}
2159
-							elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['keywords']))
2068
+							} elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['keywords']))
2160 2069
 							{
2161 2070
 								if (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['keywords'][0]['data']))
2162 2071
 								{
@@ -2171,8 +2080,7 @@  discard block
 block discarded – undo
2171 2080
 								{
2172 2081
 									$keywords = array_values(array_unique($keywords));
2173 2082
 								}
2174
-							}
2175
-							else
2083
+							} else
2176 2084
 							{
2177 2085
 								$keywords = $keywords_parent;
2178 2086
 							}
@@ -2181,12 +2089,10 @@  discard block
 block discarded – undo
2181 2089
 							if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['player']))
2182 2090
 							{
2183 2091
 								$player = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['player'][0]['attribs']['']['url'], SIMPLEPIE_CONSTRUCT_IRI);
2184
-							}
2185
-							elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['player']))
2092
+							} elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['player']))
2186 2093
 							{
2187 2094
 								$player = $this->sanitize($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['player'][0]['attribs']['']['url'], SIMPLEPIE_CONSTRUCT_IRI);
2188
-							}
2189
-							else
2095
+							} else
2190 2096
 							{
2191 2097
 								$player = $player_parent;
2192 2098
 							}
@@ -2201,8 +2107,7 @@  discard block
 block discarded – undo
2201 2107
 									if (isset($rating['attribs']['']['scheme']))
2202 2108
 									{
2203 2109
 										$rating_scheme = $this->sanitize($rating['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT);
2204
-									}
2205
-									else
2110
+									} else
2206 2111
 									{
2207 2112
 										$rating_scheme = 'urn:simple';
2208 2113
 									}
@@ -2216,8 +2121,7 @@  discard block
 block discarded – undo
2216 2121
 								{
2217 2122
 									$ratings = array_values(array_unique($ratings));
2218 2123
 								}
2219
-							}
2220
-							elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['rating']))
2124
+							} elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['rating']))
2221 2125
 							{
2222 2126
 								foreach ($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['rating'] as $rating)
2223 2127
 								{
@@ -2226,8 +2130,7 @@  discard block
 block discarded – undo
2226 2130
 									if (isset($rating['attribs']['']['scheme']))
2227 2131
 									{
2228 2132
 										$rating_scheme = $this->sanitize($rating['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT);
2229
-									}
2230
-									else
2133
+									} else
2231 2134
 									{
2232 2135
 										$rating_scheme = 'urn:simple';
2233 2136
 									}
@@ -2241,8 +2144,7 @@  discard block
 block discarded – undo
2241 2144
 								{
2242 2145
 									$ratings = array_values(array_unique($ratings));
2243 2146
 								}
2244
-							}
2245
-							else
2147
+							} else
2246 2148
 							{
2247 2149
 								$ratings = $ratings_parent;
2248 2150
 							}
@@ -2273,8 +2175,7 @@  discard block
 block discarded – undo
2273 2175
 								{
2274 2176
 									$restrictions = array_values(array_unique($restrictions));
2275 2177
 								}
2276
-							}
2277
-							elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['restriction']))
2178
+							} elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['restriction']))
2278 2179
 							{
2279 2180
 								foreach ($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['restriction'] as $restriction)
2280 2181
 								{
@@ -2299,8 +2200,7 @@  discard block
 block discarded – undo
2299 2200
 								{
2300 2201
 									$restrictions = array_values(array_unique($restrictions));
2301 2202
 								}
2302
-							}
2303
-							else
2203
+							} else
2304 2204
 							{
2305 2205
 								$restrictions = $restrictions_parent;
2306 2206
 							}
@@ -2316,8 +2216,7 @@  discard block
 block discarded – undo
2316 2216
 								{
2317 2217
 									$thumbnails = array_values(array_unique($thumbnails));
2318 2218
 								}
2319
-							}
2320
-							elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['thumbnail']))
2219
+							} elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['thumbnail']))
2321 2220
 							{
2322 2221
 								foreach ($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['thumbnail'] as $thumbnail)
2323 2222
 								{
@@ -2327,8 +2226,7 @@  discard block
 block discarded – undo
2327 2226
 								{
2328 2227
 									$thumbnails = array_values(array_unique($thumbnails));
2329 2228
 								}
2330
-							}
2331
-							else
2229
+							} else
2332 2230
 							{
2333 2231
 								$thumbnails = $thumbnails_parent;
2334 2232
 							}
@@ -2337,12 +2235,10 @@  discard block
 block discarded – undo
2337 2235
 							if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['title']))
2338 2236
 							{
2339 2237
 								$title = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['title'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
2340
-							}
2341
-							elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['title']))
2238
+							} elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['title']))
2342 2239
 							{
2343 2240
 								$title = $this->sanitize($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['title'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
2344
-							}
2345
-							else
2241
+							} else
2346 2242
 							{
2347 2243
 								$title = $title_parent;
2348 2244
 							}
@@ -2402,8 +2298,7 @@  discard block
 block discarded – undo
2402 2298
 						if (isset($content['attribs']['']['duration']))
2403 2299
 						{
2404 2300
 							$duration = $this->sanitize($content['attribs']['']['duration'], SIMPLEPIE_CONSTRUCT_TEXT);
2405
-						}
2406
-						else
2301
+						} else
2407 2302
 						{
2408 2303
 							$duration = $duration_parent;
2409 2304
 						}
@@ -2485,8 +2380,7 @@  discard block
 block discarded – undo
2485 2380
 							{
2486 2381
 								$captions = array_values(array_unique($captions));
2487 2382
 							}
2488
-						}
2489
-						else
2383
+						} else
2490 2384
 						{
2491 2385
 							$captions = $captions_parent;
2492 2386
 						}
@@ -2506,8 +2400,7 @@  discard block
 block discarded – undo
2506 2400
 								if (isset($category['attribs']['']['scheme']))
2507 2401
 								{
2508 2402
 									$scheme = $this->sanitize($category['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT);
2509
-								}
2510
-								else
2403
+								} else
2511 2404
 								{
2512 2405
 									$scheme = 'http://search.yahoo.com/mrss/category_schema';
2513 2406
 								}
@@ -2521,16 +2414,13 @@  discard block
 block discarded – undo
2521 2414
 						if (is_array($categories) && is_array($categories_parent))
2522 2415
 						{
2523 2416
 							$categories = array_values(array_unique(array_merge($categories, $categories_parent)));
2524
-						}
2525
-						elseif (is_array($categories))
2417
+						} elseif (is_array($categories))
2526 2418
 						{
2527 2419
 							$categories = array_values(array_unique($categories));
2528
-						}
2529
-						elseif (is_array($categories_parent))
2420
+						} elseif (is_array($categories_parent))
2530 2421
 						{
2531 2422
 							$categories = array_values(array_unique($categories_parent));
2532
-						}
2533
-						else
2423
+						} else
2534 2424
 						{
2535 2425
 							$categories = null;
2536 2426
 						}
@@ -2549,8 +2439,7 @@  discard block
 block discarded – undo
2549 2439
 								$copyright_label = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
2550 2440
 							}
2551 2441
 							$copyrights = $this->registry->create('Copyright', array($copyright_url, $copyright_label));
2552
-						}
2553
-						else
2442
+						} else
2554 2443
 						{
2555 2444
 							$copyrights = $copyrights_parent;
2556 2445
 						}
@@ -2570,8 +2459,7 @@  discard block
 block discarded – undo
2570 2459
 								if (isset($credit['attribs']['']['scheme']))
2571 2460
 								{
2572 2461
 									$credit_scheme = $this->sanitize($credit['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT);
2573
-								}
2574
-								else
2462
+								} else
2575 2463
 								{
2576 2464
 									$credit_scheme = 'urn:ebu';
2577 2465
 								}
@@ -2585,8 +2473,7 @@  discard block
 block discarded – undo
2585 2473
 							{
2586 2474
 								$credits = array_values(array_unique($credits));
2587 2475
 							}
2588
-						}
2589
-						else
2476
+						} else
2590 2477
 						{
2591 2478
 							$credits = $credits_parent;
2592 2479
 						}
@@ -2595,8 +2482,7 @@  discard block
 block discarded – undo
2595 2482
 						if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['description']))
2596 2483
 						{
2597 2484
 							$description = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['description'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
2598
-						}
2599
-						else
2485
+						} else
2600 2486
 						{
2601 2487
 							$description = $description_parent;
2602 2488
 						}
@@ -2615,8 +2501,7 @@  discard block
 block discarded – undo
2615 2501
 								if (isset($hash['attribs']['']['algo']))
2616 2502
 								{
2617 2503
 									$algo = $this->sanitize($hash['attribs']['']['algo'], SIMPLEPIE_CONSTRUCT_TEXT);
2618
-								}
2619
-								else
2504
+								} else
2620 2505
 								{
2621 2506
 									$algo = 'md5';
2622 2507
 								}
@@ -2626,8 +2511,7 @@  discard block
 block discarded – undo
2626 2511
 							{
2627 2512
 								$hashes = array_values(array_unique($hashes));
2628 2513
 							}
2629
-						}
2630
-						else
2514
+						} else
2631 2515
 						{
2632 2516
 							$hashes = $hashes_parent;
2633 2517
 						}
@@ -2648,8 +2532,7 @@  discard block
 block discarded – undo
2648 2532
 							{
2649 2533
 								$keywords = array_values(array_unique($keywords));
2650 2534
 							}
2651
-						}
2652
-						else
2535
+						} else
2653 2536
 						{
2654 2537
 							$keywords = $keywords_parent;
2655 2538
 						}
@@ -2660,8 +2543,7 @@  discard block
 block discarded – undo
2660 2543
 							if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['player'][0]['attribs']['']['url'])) {
2661 2544
 								$player = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['player'][0]['attribs']['']['url'], SIMPLEPIE_CONSTRUCT_IRI);
2662 2545
 							}
2663
-						}
2664
-						else
2546
+						} else
2665 2547
 						{
2666 2548
 							$player = $player_parent;
2667 2549
 						}
@@ -2676,8 +2558,7 @@  discard block
 block discarded – undo
2676 2558
 								if (isset($rating['attribs']['']['scheme']))
2677 2559
 								{
2678 2560
 									$rating_scheme = $this->sanitize($rating['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT);
2679
-								}
2680
-								else
2561
+								} else
2681 2562
 								{
2682 2563
 									$rating_scheme = 'urn:simple';
2683 2564
 								}
@@ -2691,8 +2572,7 @@  discard block
 block discarded – undo
2691 2572
 							{
2692 2573
 								$ratings = array_values(array_unique($ratings));
2693 2574
 							}
2694
-						}
2695
-						else
2575
+						} else
2696 2576
 						{
2697 2577
 							$ratings = $ratings_parent;
2698 2578
 						}
@@ -2723,8 +2603,7 @@  discard block
 block discarded – undo
2723 2603
 							{
2724 2604
 								$restrictions = array_values(array_unique($restrictions));
2725 2605
 							}
2726
-						}
2727
-						else
2606
+						} else
2728 2607
 						{
2729 2608
 							$restrictions = $restrictions_parent;
2730 2609
 						}
@@ -2742,8 +2621,7 @@  discard block
 block discarded – undo
2742 2621
 							{
2743 2622
 								$thumbnails = array_values(array_unique($thumbnails));
2744 2623
 							}
2745
-						}
2746
-						else
2624
+						} else
2747 2625
 						{
2748 2626
 							$thumbnails = $thumbnails_parent;
2749 2627
 						}
@@ -2752,8 +2630,7 @@  discard block
 block discarded – undo
2752 2630
 						if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['title']))
2753 2631
 						{
2754 2632
 							$title = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['title'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
2755
-						}
2756
-						else
2633
+						} else
2757 2634
 						{
2758 2635
 							$title = $title_parent;
2759 2636
 						}
@@ -2795,8 +2672,7 @@  discard block
 block discarded – undo
2795 2672
 					if (isset($link['attribs']['']['title']))
2796 2673
 					{
2797 2674
 						$title = $this->sanitize($link['attribs']['']['title'], SIMPLEPIE_CONSTRUCT_TEXT);
2798
-					}
2799
-					else
2675
+					} else
2800 2676
 					{
2801 2677
 						$title = $title_parent;
2802 2678
 					}
@@ -2910,8 +2786,7 @@  discard block
 block discarded – undo
2910 2786
 		if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'lat'))
2911 2787
 		{
2912 2788
 			return (float) $return[0]['data'];
2913
-		}
2914
-		elseif (($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_GEORSS, 'point')) && preg_match('/^((?:-)?[0-9]+(?:\.[0-9]+)) ((?:-)?[0-9]+(?:\.[0-9]+))$/', trim($return[0]['data']), $match))
2789
+		} elseif (($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_GEORSS, 'point')) && preg_match('/^((?:-)?[0-9]+(?:\.[0-9]+)) ((?:-)?[0-9]+(?:\.[0-9]+))$/', trim($return[0]['data']), $match))
2915 2790
 		{
2916 2791
 			return (float) $match[1];
2917 2792
 		}
@@ -2936,12 +2811,10 @@  discard block
 block discarded – undo
2936 2811
 		if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'long'))
2937 2812
 		{
2938 2813
 			return (float) $return[0]['data'];
2939
-		}
2940
-		elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'lon'))
2814
+		} elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'lon'))
2941 2815
 		{
2942 2816
 			return (float) $return[0]['data'];
2943
-		}
2944
-		elseif (($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_GEORSS, 'point')) && preg_match('/^((?:-)?[0-9]+(?:\.[0-9]+)) ((?:-)?[0-9]+(?:\.[0-9]+))$/', trim($return[0]['data']), $match))
2817
+		} elseif (($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_GEORSS, 'point')) && preg_match('/^((?:-)?[0-9]+(?:\.[0-9]+)) ((?:-)?[0-9]+(?:\.[0-9]+))$/', trim($return[0]['data']), $match))
2945 2818
 		{
2946 2819
 			return (float) $match[2];
2947 2820
 		}
Please login to merge, or discard this patch.