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

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