Code Duplication    Length = 6-6 lines in 2 locations

lib/backend.php 1 location

@@ 303-308 (lines=6) @@
300
							$requery = true;
301
						}
302
						// We moved the rename down here to overcome the OC issue
303
						if ($this->endsWith($tmpfile, ".html")) {
304
							$tmpfile = substr($tmpfile, 0, -1);
305
							if (!Filesystem::file_exists($FOLDER . "/" . $tmpfile)) {
306
								Filesystem::rename($FOLDER . "/" . $file, $FOLDER . "/" . $tmpfile);
307
							}
308
						}
309
					}
310
				}
311
			}

lib/Service/OwnNoteService.php 1 location

@@ 371-376 (lines=6) @@
368
							$requery = true;
369
						}
370
						// We moved the rename down here to overcome the OC issue
371
						if ($this->utils->endsWith($tmpfile, ".html")) {
372
							$tmpfile = substr($tmpfile, 0, -1);
373
							if (!Filesystem::file_exists($FOLDER . "/" . $tmpfile)) {
374
								Filesystem::rename($FOLDER . "/" . $file, $FOLDER . "/" . $tmpfile);
375
							}
376
						}
377
					}
378
				}
379
			}