Code Duplication    Length = 8-14 lines in 2 locations

web_interface/astpp/system/core/Loader.php 1 location

@@ 762-775 (lines=14) @@
759
			$_ci_ext = pathinfo($_ci_view, PATHINFO_EXTENSION);
760
			$_ci_file = ($_ci_ext == '') ? $_ci_view.'.php' : $_ci_view;
761
762
			foreach ($this->_ci_view_paths as $view_file => $cascade)
763
			{
764
				if (file_exists($view_file.$_ci_file))
765
				{
766
					$_ci_path = $view_file.$_ci_file;
767
					$file_exists = TRUE;
768
					break;
769
				}
770
771
				if ( ! $cascade)
772
				{
773
					break;
774
				}
775
			}
776
		}
777
778
		if ( ! $file_exists && ! file_exists($_ci_path))

web_interface/astpp/application/third_party/MX/Loader.php 1 location

@@ 311-318 (lines=8) @@
308
			$_ci_path = '';
309
			$_ci_file = strpos($_ci_view, '.') ? $_ci_view : $_ci_view.EXT;
310
			
311
			foreach ($this->_ci_view_paths as $path => $cascade) {				
312
				if (file_exists($view = $path.$_ci_file)) {
313
					$_ci_path = $view;
314
					break;
315
				}
316
				
317
				if ( ! $cascade) break;
318
			}
319
			
320
		} elseif (isset($_ci_path)) {
321