Code Duplication    Length = 2-2 lines in 2 locations

lib/backend.php 1 location

@@ 320-321 (lines=2) @@
317
				foreach ($results as $result) {
318
					if ($result['deleted'] == 0) {
319
						$tmpfile = $result['name'] . ".htm";
320
						if ($result['grouping'] != '')
321
							$tmpfile = '[' . $result['grouping'] . '] ' . $result['name'] . '.htm';
322
						$filefound = false;
323
						foreach ($filearr as $f) {
324
							if ($f == $tmpfile) {

lib/Service/OwnNoteService.php 1 location

@@ 392-393 (lines=2) @@
389
					}
390
					if ($result['deleted'] == 0) {
391
						$tmpfile = $result['name'] . ".htm";
392
						if ($result['grouping'] != '')
393
							$tmpfile = '[' . $result['grouping'] . '] ' . $result['name'] . '.htm';
394
						$filefound = false;
395
						foreach ($filearr as $f) {
396
							if ($f == $tmpfile) {