Code Duplication    Length = 9-10 lines in 2 locations

Sources/Subs-Package.php 2 locations

@@ 2530-2539 (lines=10) @@
2527
					'filename' => $working_file
2528
				);
2529
			}
2530
			else
2531
			{
2532
				$actions[] = array(
2533
					'type' => 'missing',
2534
					'filename' => $working_file
2535
				);
2536
2537
				$working_file = null;
2538
				$everything_found = false;
2539
			}
2540
2541
			// Can't be searching for something...
2542
			$working_search = null;
@@ 2547-2555 (lines=9) @@
2544
		// Search for a specific string.
2545
		elseif (($code_match[1] == 'search' || $code_match[1] == 'search for') && $working_file !== null)
2546
		{
2547
			if ($working_search !== null)
2548
			{
2549
				$actions[] = array(
2550
					'type' => 'error',
2551
					'filename' => $working_file
2552
				);
2553
2554
				$everything_found = false;
2555
			}
2556
2557
			$working_search = $code_match[2];
2558
		}