Code Duplication    Length = 9-9 lines in 2 locations

Sources/Subs.php 2 locations

@@ 2078-2086 (lines=9) @@
2075
					}
2076
2077
					// The idea is, if we are LOOKING for a block level tag, we can close them on the way.
2078
					if (strlen($look_for) > 0 && isset($bbc_codes[$look_for[0]]))
2079
					{
2080
						foreach ($bbc_codes[$look_for[0]] as $temp)
2081
							if ($temp['tag'] == $look_for)
2082
							{
2083
								$block_level = !empty($temp['block_level']);
2084
								break;
2085
							}
2086
					}
2087
2088
					if ($block_level !== true)
2089
					{
@@ 2108-2116 (lines=9) @@
2105
			}
2106
			elseif (!empty($to_close) && $tag['tag'] != $look_for)
2107
			{
2108
				if ($block_level === null && isset($look_for[0], $bbc_codes[$look_for[0]]))
2109
				{
2110
					foreach ($bbc_codes[$look_for[0]] as $temp)
2111
						if ($temp['tag'] == $look_for)
2112
						{
2113
							$block_level = !empty($temp['block_level']);
2114
							break;
2115
						}
2116
				}
2117
2118
				// We're not looking for a block level tag (or maybe even a tag that exists...)
2119
				if (!$block_level)