Code Duplication    Length = 3-3 lines in 2 locations

src/Chamilo/CourseBundle/Component/CourseCopy/CourseRestorer.php 2 locations

@@ 933-935 (lines=3) @@
930
                            error_log('Course copy generated an ignorable error while trying to copy '.$this->course->backup_path.'/'.$document->path.': origin file not readable');
931
                        }
932
                        // Issue with destination directories?
933
                        if (!is_dir(dirname($path.$document->path))) {
934
                            error_log('Course copy generated an ignorable error while trying to copy '.$this->course->backup_path.'/'.$document->path.' to '.dirname($path.$document->path).': destination directory not found');
935
                        }
936
                        if (!is_writeable(dirname($path.$document->path))) {
937
                            error_log('Course copy generated an ignorable error while trying to copy '.$this->course->backup_path.'/'.$document->path.' to '.dirname($path.$document->path).': destination directory not writable');
938
                        }
@@ 936-938 (lines=3) @@
933
                        if (!is_dir(dirname($path.$document->path))) {
934
                            error_log('Course copy generated an ignorable error while trying to copy '.$this->course->backup_path.'/'.$document->path.' to '.dirname($path.$document->path).': destination directory not found');
935
                        }
936
                        if (!is_writeable(dirname($path.$document->path))) {
937
                            error_log('Course copy generated an ignorable error while trying to copy '.$this->course->backup_path.'/'.$document->path.' to '.dirname($path.$document->path).': destination directory not writable');
938
                        }
939
                    }
940
                } // end file doesn't exist
941
            }