Code Duplication    Length = 3-3 lines in 2 locations

main/coursecopy/classes/CourseRestorer.class.php 2 locations

@@ 929-931 (lines=3) @@
926
                            ) {
927
								error_log('Course copy generated an ignoreable error while trying to copy '.$this->course->backup_path.'/'.$document->path.': file not found');
928
							}
929
							if (!is_dir(dirname($path.$document->path))) {
930
								error_log('Course copy generated an ignoreable error while trying to copy to '.dirname($path.$document->path).': directory not found');
931
							}
932
							if (!is_writeable(dirname($path.$document->path))) {
933
								error_log('Course copy generated an ignoreable error while trying to copy to '.dirname($path.$document->path).': directory not writeable');
934
							}
@@ 932-934 (lines=3) @@
929
							if (!is_dir(dirname($path.$document->path))) {
930
								error_log('Course copy generated an ignoreable error while trying to copy to '.dirname($path.$document->path).': directory not found');
931
							}
932
							if (!is_writeable(dirname($path.$document->path))) {
933
								error_log('Course copy generated an ignoreable error while trying to copy to '.dirname($path.$document->path).': directory not writeable');
934
							}
935
						}
936
					} // end file doesn't exist
937
				}