Code Duplication    Length = 3-3 lines in 2 locations

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

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