Code Duplication    Length = 3-3 lines in 2 locations

dev/SapphireTestReporter.php 2 locations

@@ 331-333 (lines=3) @@
328
		// loop through the exception trace to find the original exception
329
		for($i = 0; $i < count($trace); $i++) {
330
331
			if(array_key_exists('file', $trace[$i])) {
332
				if(stristr($trace[$i]['file'], $testName.'.php') != false) return $trace[$i];
333
			}
334
			if(array_key_exists('file:protected', $trace[$i])) {
335
				if(stristr($trace[$i]['file:protected'], $testName.'.php') != false) return $trace[$i];
336
			}
@@ 334-336 (lines=3) @@
331
			if(array_key_exists('file', $trace[$i])) {
332
				if(stristr($trace[$i]['file'], $testName.'.php') != false) return $trace[$i];
333
			}
334
			if(array_key_exists('file:protected', $trace[$i])) {
335
				if(stristr($trace[$i]['file:protected'], $testName.'.php') != false) return $trace[$i];
336
			}
337
		}
338
	}
339