Code Duplication    Length = 9-9 lines in 2 locations

Sources/Subs.php 2 locations

@@ 1898-1906 (lines=9) @@
1895
					}
1896
1897
					// The idea is, if we are LOOKING for a block level tag, we can close them on the way.
1898
					if (strlen($look_for) > 0 && isset($bbc_codes[$look_for[0]]))
1899
					{
1900
						foreach ($bbc_codes[$look_for[0]] as $temp)
1901
							if ($temp['tag'] == $look_for)
1902
							{
1903
								$block_level = !empty($temp['block_level']);
1904
								break;
1905
							}
1906
					}
1907
1908
					if ($block_level !== true)
1909
					{
@@ 1928-1936 (lines=9) @@
1925
			}
1926
			elseif (!empty($to_close) && $tag['tag'] != $look_for)
1927
			{
1928
				if ($block_level === null && isset($look_for[0], $bbc_codes[$look_for[0]]))
1929
				{
1930
					foreach ($bbc_codes[$look_for[0]] as $temp)
1931
						if ($temp['tag'] == $look_for)
1932
						{
1933
							$block_level = !empty($temp['block_level']);
1934
							break;
1935
						}
1936
				}
1937
1938
				// We're not looking for a block level tag (or maybe even a tag that exists...)
1939
				if (!$block_level)