Code Duplication    Length = 9-9 lines in 2 locations

Sources/Subs.php 2 locations

@@ 2171-2179 (lines=9) @@
2168
					}
2169
2170
					// The idea is, if we are LOOKING for a block level tag, we can close them on the way.
2171
					if (strlen($look_for) > 0 && isset($bbc_codes[$look_for[0]]))
2172
					{
2173
						foreach ($bbc_codes[$look_for[0]] as $temp)
2174
							if ($temp['tag'] == $look_for)
2175
							{
2176
								$block_level = !empty($temp['block_level']);
2177
								break;
2178
							}
2179
					}
2180
2181
					if ($block_level !== true)
2182
					{
@@ 2201-2209 (lines=9) @@
2198
			}
2199
			elseif (!empty($to_close) && $tag['tag'] != $look_for)
2200
			{
2201
				if ($block_level === null && isset($look_for[0], $bbc_codes[$look_for[0]]))
2202
				{
2203
					foreach ($bbc_codes[$look_for[0]] as $temp)
2204
						if ($temp['tag'] == $look_for)
2205
						{
2206
							$block_level = !empty($temp['block_level']);
2207
							break;
2208
						}
2209
				}
2210
2211
				// We're not looking for a block level tag (or maybe even a tag that exists...)
2212
				if (!$block_level)