Code Duplication    Length = 9-9 lines in 2 locations

Sources/Subs.php 2 locations

@@ 2145-2153 (lines=9) @@
2142
					}
2143
2144
					// The idea is, if we are LOOKING for a block level tag, we can close them on the way.
2145
					if (strlen($look_for) > 0 && isset($bbc_codes[$look_for[0]]))
2146
					{
2147
						foreach ($bbc_codes[$look_for[0]] as $temp)
2148
							if ($temp['tag'] == $look_for)
2149
							{
2150
								$block_level = !empty($temp['block_level']);
2151
								break;
2152
							}
2153
					}
2154
2155
					if ($block_level !== true)
2156
					{
@@ 2175-2183 (lines=9) @@
2172
			}
2173
			elseif (!empty($to_close) && $tag['tag'] != $look_for)
2174
			{
2175
				if ($block_level === null && isset($look_for[0], $bbc_codes[$look_for[0]]))
2176
				{
2177
					foreach ($bbc_codes[$look_for[0]] as $temp)
2178
						if ($temp['tag'] == $look_for)
2179
						{
2180
							$block_level = !empty($temp['block_level']);
2181
							break;
2182
						}
2183
				}
2184
2185
				// We're not looking for a block level tag (or maybe even a tag that exists...)
2186
				if (!$block_level)