Code Duplication    Length = 8-8 lines in 2 locations

Sources/Subs-Editor.php 2 locations

@@ 1227-1234 (lines=8) @@
1224
				if ($isBlockLevelTag)
1225
				{
1226
					// Are there inline elements still open?
1227
					if (!empty($inlineElements))
1228
					{
1229
						// Close all the inline tags, a block tag is coming...
1230
						$parts[$i] .= '[/' . implode('][/', array_reverse($inlineElements)) . ']';
1231
1232
						// Now open them again, we're inside the block tag now.
1233
						$parts[$i + 5] = '[' . implode('][', array_keys($inlineElements)) . ']' . $parts[$i + 5];
1234
					}
1235
1236
					$blockElements[] = $tag;
1237
				}
@@ 1333-1340 (lines=8) @@
1330
					}
1331
1332
					// Inline elements are still left opened?
1333
					if (!empty($inlineElements))
1334
					{
1335
						// Close them first..
1336
						$parts[$i] .= '[/' . implode('][/', array_reverse($inlineElements)) . ']';
1337
1338
						// Then reopen them.
1339
						$parts[$i + 5] = '[' . implode('][', array_keys($inlineElements)) . ']' . $parts[$i + 5];
1340
					}
1341
				}
1342
				// Inline tag.
1343
				else